Skip to content

cocos2dx v3.3rc0 The labelTest, layoutTest,labelTestNew will cause freeze on Android L #9114

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

Closed
aeonmine opened this issue Nov 14, 2014 · 9 comments
Assignees
Milestone

Comments

@aeonmine
Copy link
Contributor

in cocos2dx v3.3rc0 The labelTest, layoutTest, labelTestNew can not work on Android L,

and the files exported from cocosstudio 1.5 json and cocosstudio 2.0 csb when using bitmap font in design will cause freeze on Android L

please fix this as soon as ..

in cocos2dx v3.2 it works fine.

@aeonmine aeonmine changed the title The labelTest, layoutTest,labelTestNew cause freeze on Android L cocos2dx v3.3rc0 The labelTest, layoutTest,labelTestNew will cause freeze on Android L Nov 14, 2014
@aeonmine
Copy link
Contributor Author

i think the issue is caused by BmFont

@aeonmine
Copy link
Contributor Author

I tested in cocos2dx v3.3rc0
all using BMFont can not work on Android L

@aeonmine
Copy link
Contributor Author

I change the cocos2dx v3.3 rc0 Application.mk to cocos2dx v3.2 it works fine
and the httpclient also works fine

I guess the APP_LDFLAGS := -latomic in cocos2dx v3.3 rc0 has a problem

thanks

@aeonmine
Copy link
Contributor Author

@minggo
For BMFont and Httpclient Crash on Android L
I fixed it by use cocos2dx v3.2 Androidk instedof cocos2dx v3.3rc0 Androidk

ex:
Android.MK in cocos2dx v3.3 rc0 (this will crash on Android L)

          APP_STL := c++_static
          NDK_TOOLCHAIN_VERSION=clang 
           APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
           APP_LDFLAGS := -latomic   this line may caused issue
           ifeq ($(NDK_DEBUG),1)
               APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
               APP_OPTIM := debug
            else
            APP_CPPFLAGS += -DNDEBUG
            APP_OPTIM := release
            endif

Android.MK in cocos2dx v3.2 (this works fine )

         NDK_TOOLCHAIN_VERSION=4.8
         APP_STL := gnustl_static
         APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
         APP_CPPFLAGS += -fexceptions 

@jgod
Copy link
Contributor

jgod commented Nov 19, 2014

Hey I'm running into this freeze now with v3.3.rc0.
You said it might be -latomic but these lines are also changed (seem pretty drastic):

APP_STL := c++_static
NDK_TOOLCHAIN_VERSION=clang 

I'm working on a massive project that takes a while to recompile, any assistance to narrow it down is greatly appreciated!

I'll see if the sample projects will behave in my env in the meantime.

@jgod
Copy link
Contributor

jgod commented Nov 19, 2014

Some testing with release at HEAD (I forked it and added a couple things but it's pretty much the same):
Using ndk-r9d

  • Created new project "LabelTest"
  • Left default .mk files
  • Text-based .fnt freezes, Binary-based .fnt doesn't (confirming this)

@minggo minggo modified the milestones: v3.3, v3.3rc1 Nov 24, 2014
@aeonmine
Copy link
Contributor Author

this line also had a problem

NDK_TOOLCHAIN_VERSION=clang
->
NDK_TOOLCHAIN_VERSION=4.8

@WenhaiLin
Copy link
Contributor

This issue is cause by 'sscanf' function. The specific reasons is unclear

@WenhaiLin
Copy link
Contributor

This issue should be fixed in NDK r10c. For more information : https://code.google.com/p/android/issues/detail?id=77988

@minggo minggo closed this as completed Nov 27, 2014
@walzer walzer modified the milestones: v3.3rc1, v3.3 Apr 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants