Fatal signal 11 (SIGSEGV) during loadPlugin("AnalyticsFlurry") in Android

Fatal signal 11 (SIGSEGV) during loadPlugin("AnalyticsFlurry") in Android
0.0 0


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_PATH)/../../Classes \

LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static box2d_static cocos_lua_static PluginProtocolStatic


$(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

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?




Have you found the problem? I’m stuck in the same point


I had this problem before, because i forgot to i forget to add this line LOCAL_SRC_FILES := hellocpp/main.cpp \ to jni/Android.mk file also you should change your hellocpp/main.cpp like the hellocpp/main.cpp of the HelloPlugins.