-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[v 3.11] crash on Android 2.3 #15891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please, add more info like:
The more info you add, the easier for us to reproduce it and fix it. thanks. |
@ricardoquesada It's a Samsung GT-S5360. running Android 2.3.6 It's crashing when launching the app, nothing special about it, except it is using SDKBOX/Facebook. |
@frranck if we can't reproduce the bug, we won't be able to fix it. |
@ricardoquesada sorry this is very weird but I ran into some problems compiling the tests:
|
@frranck did you have chipmunk in |
@minggo thanks, I was missing the dependancies. |
I also use r11c, and don't have a problem. Which project did you build? |
@minggo I'm trying to build cpp-tests |
@frranck any update? |
@minggo No, I pull the latest cocos2d-x version and still can't compile the tests;
|
@frranck did you updated 3rd party libraries by using |
@minggo Yes I did that, and just did it again: same problem. :( |
I just synchronized to v3, and run
|
@minggo Just did the whole process you described and I still get the exact same error. |
@frranck Sorry, i have no idea, the problem may be the deps is not correct, but you use |
But i also use NDK r11c and don't have any problem. |
@minggo OK so I gave up with the tests, and tried a new project
|
@frranck does it crash on other devices? I will try to find a device with Android 2.3.6. |
@minggo Yes It's working fine on a Moto G. |
So it is device dependent, then it is more hard to fix. |
@frranck about the |
@minggo cocos2d-x v2 used to work on that device... Can you try on any Android 2.3.x device ? |
I'm facing same issue reported on first comment. I'm testing on a Samsung GT-S5830C v2.3.6-GINGERBREAD with NDK-r10c. With v3.7 and NDK-r9d everything was ok for android 2.3 devices. |
@frranck I think i know the issue. Because static __inline__ int abs(int __n) {
return (__n < 0) ? -__n : __n;
} and defined in Android API 21 is extern int abs(int) __pure2; So if you build with Android API 20+, and run under Android 5.0(API 21), then it will have problem. If you want to fix your problem, then you can work around it by compiling with API 19 or lower. Of course, i will use |
I send #16080 to fix it. |
I'm still getting same error for samsung/GT-S5830C/GT-S5830C:2.3.6/GINGERBREAD. It could be a Empty test for v3.12 with ndkr11c:
Log: log.txt |
setSystemVisibility is invoked like this if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
| View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
} As you can see, it is only executed when |
Yes, this code in Cocos2dActivity is not executed. I don't know why there is an error before Cocos2dActivity code being executed. |
I tested with NDK-r9d and NDK-r10c. There are a lot of warnings and my game is very buggy with both, but I can generate apk file and run it. There is also |
@minggo Sorry I got confused, there was no compilation issue, and I still get the "cannot locate |
@frranck did you apply my commit? |
@minggo I did a git pull in cocos2d-x, isn't it in master already ? |
@frranck yep, it is merged into v3 branch. It is strange, there is not codes using And are you sure your game used correct engine since new project will copy engine. |
We update cocos2dx to today's latest git clone version( with #16080 fixed). + NDK R10E |
try and try... @minggo any comments? |
@minggo Just created a new app, still get the "abs" crash. |
I tried HTC Sense 2.3.7, no crash. |
|
Is there any crash in newest version? I will close this issue since i think they are fixed. |
@minggo I don't have the phone to test at the moment, but I've never seen this fixed... Could anyone here test it ? |
@minggo I just did the test with cocos2d-x-3.13.1 and it stills crashes. Could we please reopen this bug ? |
@frranck could you please provide a test case? And please describe your environments:
|
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have this crash on Android 2.3, though it's working fine on more recent android versions:
how to troubleshout this ?
The text was updated successfully, but these errors were encountered: