Problem with htc one x

Hi,
My app crashes on htc one x which is running on nvidia tegra 3 cpu.
Here is the error:

10-15 11:01:51.416: E/AndroidRuntime(16651): FATAL EXCEPTION: GLThread 4165
10-15 11:01:51.416: E/AndroidRuntime(16651): java.lang.IllegalArgumentException: No configs match configSpec
10-15 11:01:51.416: E/AndroidRuntime(16651): 	at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:867)
10-15 11:01:51.416: E/AndroidRuntime(16651): 	at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1028)
10-15 11:01:51.416: E/AndroidRuntime(16651): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1405)
10-15 11:01:51.416: E/AndroidRuntime(16651): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1244)

All my searches leads to issues with android emulator, but I’m getting this error on a real device.
I’m using cocos2d-x V3.7 and I haven’t manually set stencil buffer either. It is using default values of the framework.
Does anyone have any idea what is the cause of this issue?

Thanks

What’s your format setup? RGBA8888 with a 16bit depth buffer? What’s the setting of the stencil buffer?

Post your config spec. Not all devices support the same formats.

Try RGBA8888, Depth16 and Stencil8.

What are the specs of this device? IIRC Tegra 3 only supports a 16bit Z-Buffer and a 8bit Stencil buffer.

The standard values in AppDelegate.cpp are:

GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};

Change the 24 to 16.

Tegra 4 supports a 24bit Z-Buffer.

Hi,
Thanks for your reply,
I’m afraid that { 8, 8, 8, 8, 16, 8 } doesn’t work either.
Also, I have even tried { 8, 8, 8, 8, 16, 0 }, but it still throws the same error.

Thanks