cocos2d-x v3.0rc0 does not show anything on physical device

cocos2d-x v3.0rc0 does not show anything on physical device
0.0 0


I’m trying to switch from cocos2d-x v2 to v3 but I’m facing a critical issue.

My android device does not show anything but a black screen (not even the fps counter) when I start any cocos2d-x v3.0 application (neither HelloWorld, nor cpp-tests, nor my own application). I can see all the messages in logcat, the application is running, but nothing displayed on the screen.
It worked fine with v2.3 of cocos2d-x, and it’s working fine in the simulator with either v2.3 or v3.0.

The device is an HTC-Leo with an Android 4.3 ROM, and here is the engine log:

gl.supports_vertex_array_object: true
gl.supports_BGRA8888: false
gl.supports_ATITC: trye
gl.supports_S3TC: false
cocos2d.x.version: 3.0-rc0
gl.supports_discard_framebuffer: false
cocos2d.x.compiled_with_profiler: false
gl.supports_PVRTC: false
cocos2d.x.build_type: DEBUG
gl.renderer: Adreno (TM) 200
gl.supports_ETC1: true
cocos2d.x.compiled_with_gl_state_cache: true
gl.version: OpenGL ES 2.0 AU_LINUX_ANDROID_JB. (CL2644550)
gl.supports_NPOT: true
gl.max_texture_units: 20
gl.vendor: Qualcomm
gl.max_texture_size: 4096

Any idea?


Any other log for it?
Any other device has the problem?
We are testing it on as many devices as possible, and haven’t reproduced it until now.


#4449 is created for it.

And we found it happens on xiaomi 1s(a Chinese brand) too. And we found that

  • orientation is set landscape, if it is set to portrait, then not problem
  • there is not problem when enter it at second time
  • NDK sample that use NativeActivity also has the problem

Now, we don’t know how to resolve it, it seems it is the driver problem. And from now on, only two types of devices have this problem.



sorry I didn’t answer before, I don’t get any emails for my watched threads anymore, and I don’t know why. Fortunately I checked my notifications on the forum and saw I got many of them.

Regarding your questions, there were nothing more in the log (well, except for the cocos2d engine start message, and the messages of my game itself that was running… but all black). It’s working fine on a galaxyS4 and another device I could borrow.


Now we use Java Activity as v2.x did to resolve the issue.


Thanks, good to hear! :smiley: