Test about Fatal signal 11 (SIGSEGV)

Cocos2d-x will crash on Android 4.0.3 platform, some guys have same problem, and I take few hours make some test…

I use NDK r8 and Cocos2d-0.1.0-x-0.12.0,Mac Os,

Test1.
just import the ‘HelloWorld’ project and run on Eclipse will be fine.

Test2.
1.Convert the ‘HelloWorld’ project to a C/C++ Project (File > New> Other -> C/C*+ -> Convert to a C/C*+ Project(Adds C/C++ Nature)
2.Do a lots works in Properties (setting C/C++Build ,Bash,#include,Source Location…)
3.Clean, Build All and Debug …. Sorry, The Fatal signal 11 error show

Test3.

1.create a new android project by create-android-project.sh (use Android 2.2)
2.build_native.sh
3.In Eclipse, create new Android project from Existing Code
4.build project & run , Same error happened.

Test4.
same thing like Test3, but this time, I choices Android 4.0.3
1.create a new android project by create-android-project.sh (use Android 4.0.3)
2.build_native.sh
3.In Eclipse, create new Android project from Existing Code
but some error about R. happen, I can’t resolved it, so I give up the Test4.

Test5.
I try another way to complete the Test4.
1.Create an new android project (4.0.3) directly in Eclipse (Not use create-andoird-project.sh),
2.Copy file org.cocos2dx.lib’s *.java from project Test4 to the new project
3.Copy the layout from Test4
4.build project & run , Same error happened.

I really wish my game can run on Android 4.0.3, Please try on my way and give us some help, Thanks

I am using android-ndk -r8 and cocos2d-1.0.1-x-0.13.0-beta and mac os lion 10.7.4

I have attempted test 2 and test 4 by Atwood Yen and got the same Fatal Signal 11 error in android 4.0.3

Hoping that someone has solution for it.

Thanks

Chetan Rana wrote:

I am using android-ndk -r8 and cocos2d-1.0.1-x-0.13.0-beta and mac os lion 10.7.4
>
I have attempted test 2 and test 4 by Atwood Yen and got the same Fatal Signal 11 error in android 4.0.3
>
Hoping that someone has solution for it.
>
Thanks

I think it is a serious problem about Cocos2d-x in Android platform, But, no one give us a answer or respond until now…
So, I just keep my test.

Test6.
This time, I download the cocos2d-2.0-x-2.0.2, think maybe my problem can be solved in new version,
./create-android-project.sh have some different about the environment value ‘NDK-ROOT’, fixed and create successful.
choose 2.2 this time, build & run OK.

Test7.
same works like before, convert the project to c/c++ project , build & run —> it work too…

So, this Fatal 11 error may be just happen in cocos2d-1.0.1-x-0.12.0 version.
but, Help! Help! I really need opengl es1’s cocos2d instead es2.