Game Exiting on Galaxy Nexus and Nexus S

I don’t have those phones personally so I can’t test some of those cases, but users say it happens right on startup. You can try the version of our app GoNinja in the google play store. [import]uid: 135827 topic_id: 26169 reply_id: 110553[/import]

So far, I’m unable to reproduce this crash. I re-tested build 828 on the following devices:

  • HTC Inspire 4G
  • HTC Nexus One
  • HTC PC36100
  • Kindle Fire
  • Motorola Droid
  • Motorola Droid 2
  • Motorola Xoom
  • Nook Tablet
  • Nook Color
  • Samsung Galaxy Nexus
  • Samsung Galaxy S2
  • Samsung Nexus S
  • Sony Ericsson Xperia

It’s possible that this is a very specific device issue that only happens on a Droid X2 and Samsung Exhibit… or more likely a particular line of GPU that they use. I don’t have those devices to test with, and because of that, it’s hard to say if this issue is new or if it has always existed.

So, the next step is to find a way for us to reproduce this issue for ourselves so that we can resolve it. If you know any Corona developers that have one of these devices, then please let us know so that we can work with them. That would be the fastest route to go at the moment. [import]uid: 32256 topic_id: 26169 reply_id: 110918[/import]

Thanks for all the work so far Joshua. I’ve been watching our logs in Flurry and I did see a couple people play it without issue on the Droid X2, but we did get another report recently of a crash with the Samsung Exhibit.

I signed up for PerfectoMobile and ran it on a bunch of devices, but annoyingly, they didn’t have the Samsung Exhibit or the Droid X2.

I’ll keep searching for a way to reproduce this. [import]uid: 135827 topic_id: 26169 reply_id: 110920[/import]

Yeah, I checked the Samsung Lab.Dev website, but they don’t have the Exhibit available either. [import]uid: 32256 topic_id: 26169 reply_id: 110923[/import]

I am also having the below failure on Android (do not know the device details).
SwapGLSurfaceView$EglHelper.createSurface()

I am using 797 daily. Any idea which build fixes this problem ?

Thanks!
[import]uid: 63121 topic_id: 26169 reply_id: 111916[/import]

Meany Birds,

Your crash is actually different than the one mentioned by Jon and George. Their customers are getting an IllegalArgumentException on the OpenGL thread and we haven’t figured out how to reproduce it yet. You are getting an OpenGL “createSurface” crash which was fixed in build 819. Please see the following forum post for more details…
http://developer.anscamobile.com/forum/2012/05/11/game-exiting-galaxy-nexus-and-nexus-s#comment-109588
[import]uid: 32256 topic_id: 26169 reply_id: 111918[/import]

HiJoshua… It seems you are really very quick :slight_smile:
Thank a lot for your help. You are really helpful. I will use that build for my next update.
By the way, do you have any information like, when does that failure occurs, and what’s the impact of it on the game? I mean, does it happen on opening a popup? If so, will it crash the game when user clicks that popup? [import]uid: 63121 topic_id: 26169 reply_id: 111925[/import]

Meany Birds,

The crash that you were seeing was only known to happen on Nook Color upon application startup, and would only happen with apps built with build 797 through 818. It’s possible that it would crash on other Android devices that use the same GPU that the Nook Color did, although I’ve never received reports of this crash on any other device.

The Droid X2 and Samsung Exhibit crash that Jon and George have brought up occurs on the newest daily builds, but we do not know if it crashes on the old Corona builds too. That is, we do not know if our newest code changes in Corona has caused this crash or if the crash has always been there. We do not have these specific devices to test with. We have not been able to reproduce this issue on the devices that we have so far. This issue is on our “investigate” list because we do not know what the root cause is yet. We just know it crashes on startup on these devices. [import]uid: 32256 topic_id: 26169 reply_id: 112231[/import]

Hi, Joshua

I’ve found another device which crash that Jon and George have brought up on the daily build 833 the latest one.
(the crash occur when startup)

The device is LG Optimus 3D ( LG-SU760)

I’m supposed to launch my app this week, but can’t because of this problem.
I hope you to solve this problem soon.

Following is the error log that LG Optimus 3D issued when the crash occur at startup.

06-19 06:39:12.273: E/AndroidRuntime(3616): FATAL EXCEPTION: GLThread 11
06-19 06:39:12.273: E/AndroidRuntime(3616): java.lang.RuntimeException: createWindowSurface failed
06-19 06:39:12.273: E/AndroidRuntime(3616): at android.opengl.derived.SwapGLSurfaceView$EglHelper.createSurface(SwapGLSurfaceView.java:691)
06-19 06:39:12.273: E/AndroidRuntime(3616): at android.opengl.derived.SwapGLSurfaceView$EglHelper.createSurface(SwapGLSurfaceView.java:715)
06-19 06:39:12.273: E/AndroidRuntime(3616): at android.opengl.derived.SwapGLSurfaceView$GLThread.guardedRun(SwapGLSurfaceView.java:936)
06-19 06:39:12.273: E/AndroidRuntime(3616): at android.opengl.derived.SwapGLSurfaceView$GLThread.run(SwapGLSurfaceView.java:809)
06-19 06:39:12.281: W/ActivityManager(2329): Force finishing activity com.shiconal.amazingyaongi/com.ansca.corona.CoronaActivity
06-19 06:39:12.500: E/ActivityManager(2329): Btips test >>> restart package locked package name:com.lge.sizechangable.favoritecontacts
[import]uid: 104920 topic_id: 26169 reply_id: 112273[/import]

iamarej,

Do you have an LG Optimus 3D to test with? Are you able to reproduce this crash yourself? If so, then I may have to call upon you to help me test a solution for this issue. At the moment, we can’t reproduce this crash on our end.

I’m noticing that all of the devices that have been mentioned on this forum thread use a PowerVR SGX530/540. That’s a pretty big clue. Suggests that we have a GPU issue/bug that we have to work-around on our end. [import]uid: 32256 topic_id: 26169 reply_id: 112383[/import]

Joshua,

Of course you can call on me at any time.
my e-mail address is
iamarej(at)gmail.com

I’m eager to solve this problem too.
[import]uid: 104920 topic_id: 26169 reply_id: 112432[/import]

iamarej,

Thanks for volunteering! I’ll contact you in the next couple of weeks once I’m ready to re-look at this issue. I just have to finish my current commitments first.

Oh, and I edited your post to protect your e-mail address from spambots if you don’t mind. I have your contact info written down on my end, so thanks for that. [import]uid: 32256 topic_id: 26169 reply_id: 112557[/import]

Everyone,

We’ve managed to isolate this issue. This crash only happens on devices having Android OS 4.0.3 or higher and the device must have a PowerVR GPU… such as the Galaxy Nexus and the brand new Nexus 7. The crash happens when you exit or suspend the app… and it only happens if your app displays one other activity/window such as the video player, OpenFeint, mail, sms, etc. Our sample app “Media/StreamingVideo” that is included with the Corona SDK triggers this issue on the above mentioned devices every time.

We have a fix for this issue. The fix will be made available in daily build #847, tomorrow.
Thank you for informing us about this issue… and for your patience. It was definitely not an easy issue to track down. The information that you all provided us was a big help to us in narrowing it down. [import]uid: 32256 topic_id: 26169 reply_id: 114868[/import]

I’m experiencing the OpenGL “createSurface” crash on a Samsung Nexus S, Android 2.3.1 using Corona build 912. Is there something I’m missing? It looks like this issue may not be totally resolved? [import]uid: 43692 topic_id: 26169 reply_id: 124135[/import]

Paul,

I’m quite positive this issue was fixed a long time ago. Perhaps your app is not being built against build #912? Do you have a “custom build ID” in your “build.settings” file? If so, then you should remove it so that your project will build with the build number that your Corona Simulator is using.

Also, try running one of the sample apps that is included with the Corona SDK to see if you get the same crash. The “Hardware/DeviceInfo” project may be a good choice because it will also tell you which build # that your app was built against. [import]uid: 32256 topic_id: 26169 reply_id: 124203[/import]

I’ve managed to get it working OK on the Nexus S by updating Android from 2.3.1 to 2.3.3. [import]uid: 43692 topic_id: 26169 reply_id: 124372[/import]

Hmm… if an update fixed it, then it sounds like it was a device specific bug then. There’s never a dull moment on the Android front. [import]uid: 32256 topic_id: 26169 reply_id: 124420[/import]

I’m experiencing the OpenGL “createSurface” crash on a Samsung Nexus S, Android 2.3.1 using Corona build 912. Is there something I’m missing? It looks like this issue may not be totally resolved? [import]uid: 43692 topic_id: 26169 reply_id: 124135[/import]

Paul,

I’m quite positive this issue was fixed a long time ago. Perhaps your app is not being built against build #912? Do you have a “custom build ID” in your “build.settings” file? If so, then you should remove it so that your project will build with the build number that your Corona Simulator is using.

Also, try running one of the sample apps that is included with the Corona SDK to see if you get the same crash. The “Hardware/DeviceInfo” project may be a good choice because it will also tell you which build # that your app was built against. [import]uid: 32256 topic_id: 26169 reply_id: 124203[/import]

I’ve managed to get it working OK on the Nexus S by updating Android from 2.3.1 to 2.3.3. [import]uid: 43692 topic_id: 26169 reply_id: 124372[/import]