Android: Apps quit when orientation changes (75d)
Monkey Forums/Monkey Bug Reports/Android: Apps quit when orientation changes (75d)
| ||
Is this normal? I've run bananas\hitoro\rockout.monkey to be sure it's not my faulty code, and when it runs and I rotate the Huawai U8500 (Android 2.1) one or two times, the app will just quit without leaving any hints in the LogCat. Tried rotating it with the Youtube app, Youtube doesn't quit. |
| ||
I don't know the current problem or a solution, but... we had a similar problem some versions ago (V69?). As a reaction Mark added a new entry to the AndroidManifest.xml: As I remember it was "screensize"... android:configChanges="keyboardHidden|orientation|screenSize" this helped in my code... Normally now it should be default in V75... |
| ||
Sadly didn't help me. My current situation is this: Using Monkey 75d + Huawai U8500 running Android 2.1, using #ANDROID_SCREEN_ORIENTATION="user": rotate from landscape to portrait => app disappears, is "Computing..." forever. This is displayed in Settings/Manage Applications, and "force stop" does not stop it, but uninstalling stops it. PS: it was only computing the applications size. The same happens when: - pressing the backbutton or - tapping my closebutton (calls EndApp) |
| ||
simplest test case (maybe needs android 2.1 + Huawai U8500) to trigger it: Cls is to blame! ... I think. maybe. This project quits after about 5 orientation changes (the more processing load, the less tries are needed, my game quits after 1 or 2 changes): #ANDROID_SCREEN_ORIENTATION="user" Import mojo Class Test Extends App Method OnCreate() SetUpdateRate 30 End Method OnRender() Cls 255,255,255 ' needed to make it quit Local q:Float = 55678 For Local i = 0 To 46565 ' maybe put more cpu load to trigger it q *= 467463 q /= 67435 q /= 67435 q /= 67435 q /= 67435 q *= 467463 q *= 467463 q *= 467463 q = 9 q +=1 Next End End Function Main() New Test End PS: ok, my workaround is this, makes my app no more quit: GLES11.glClear( GLES11.GL_COLOR_BUFFER_BIT ); //|GLES11.GL_DEPTH_BUFFER_BIT ); PS2: well, at least fewer times -.- PS3: retested it with my game: GL_DEPTH_BUFFER_BIT => quits after 2 orientation changes without GL_DEPTH_BUFFER_BIT => withstood 30 orientation changes (i stopped testing *g) so, no voodoo |
| ||
Nice find! Will fix, although it's really a driver bug IMO - as per the gles1.1 glClear docs... > If a buffer is not present, then a glClear directed at that buffer has no effect. |