Dan, thanks for the reply but I was able to get my hands on a Samsung Moment, confirm the issue, and provide a fix. This particular problem was caused by a call to glDrawArrays. In FRG, I use glDrawArrays with GL_LINES to draw parts of the in-game UI. One of the calls to glDrawArrays passed an odd number for the 3rd parameter of glDrawArrays. Effectively I was asking to draw a number of lines plus one point. Apparently this doesn't cause issues on a HTC Dream, Magic, Hero, Nexus One, or Moto Droid. On the Samsung Moment, the phone display freezes probably due to the CPU being pegged (I confirmed that when freeze occurs, logcat still logs "CPU pegged?" messages).
Definitely a bad error on my part. Dan, if you wish to see the bug in action, search Android Market for "FRG Lite". Watch out you'll have to pull the phone battery once it freezes. Shaun, a while ago I ran into one other crash bug on the Samsung Moment which was caused by my EGLConfig selection routine. FRG tests available EGLConfigs by creating a small GLSurfaceView in the splash screen. In it, I run a custom EGLConfig chooser and check if the resulting config is hardware accelerated or not. If software rendering is used, I display a warning for the user and disable sound and music in hopes that the game will still run adequately. My original EGLConfig selection resulted in EGL_SLOW_CONFIGs (i.e. software renderer) being chosen for the Moment. After the splash screen is finished, FRG would crash with a segfault. My guess is the Moment fails horribly in cleaning up a software-rendered surface. To fix this issue I had to make sure my EGLConfig routine didn't ignore unknown EGL_CONFIG_CAVEAT values, i.e., for hardware acceleration on the Samsung Moment, you must choose the EGLConfig that has EGL_CONFIG_CAVEAT that is not EGL_NONE, EGL_SLOW_CONFIG, nor EGL_NON_CONFORMANT_CONFIG. Not sure if you'd have this problem as your game would segfault without fail upon cleaning up any OpenGL surface. You also have to be using your own EGLConfig chooser for the bug to possibly happen. I have limited time with the Samsung Moment tomorrow but after I test out my fixes for awhile, I'll take a look at ongPay! and see how it behaves. On Feb 16, 11:07 pm, dan raaka <[email protected]> wrote: > what game is this ? can you give the class name of your app for me to search > > -Dan > > On Sat, Feb 13, 2010 at 6:28 PM, ernestw <[email protected]> wrote: > > Hi all - I'm currently getting some problem comments from people > > claiming that my game FRG crashes on the Samsung Moment immediately > > when a bullet hits an enemy. Anybody have a Samsung Moment who could > > help me figure out the issue? I'd use DeviceAnywhere but their > > Samsung Moment has been offline for the past 1.5 weeks. :-\ > > > Thanks in advance. > > > Ernest Woo > > Woo Games > > http://www.woogames.com > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

