Hi,
I’m configuring AnalyticsFlurry in my app (iOS and Android), is the first plugin then I’m configuring also PluginProtocol. In iOS is all ok, in Android I’ve the following SIGSEGV in several devices:
"07-03 10:36:13.921: A/libc(4861): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4929 (Thread-3794)
When the app is executing the following statement:
plugin = cocos2d::plugin::PluginManager::getInstance()->loadPlugin("AnalyticsFlurry");
This is my Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
LOCAL_SRC_FILES := ...
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../libs/Box2D
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static box2d_static cocos_lua_static PluginProtocolStatic
include $(BUILD_SHARED_LIBRARY)
$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions) \
$(call import-module,external/Box2D) \
$(call import-module,scripting/lua/proj.android) \
$(call import-module,protocols/android)
And this is my Application.mk:
APP_STL := gnustl_static
APP_CPPFLAGS += -frtti -DCOCOS2D_DEBUG=1
Some notes:
- I’m using cocos2dx 2.1.4
- the Analytics sample works correctly in these devices
- before the SIGSEGV I’ve the following log: “07-03 10:50:37.490: D/PluginFactory(628): Java class name of plugin AnalyticsFlurry is : org/cocos2dx/plugin/AnalyticsFlurry”
Any suggestion?
Thanks.
Giannandrea