Thanks for all your posts and details about the GC crashing... that information is invaluable and saved me a lot of time!From GMS 2.3.1 runtime release notes:
In-Game: Some projects crash silently when changing rooms if garbage collector is enabled
Apparently it is fixed.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.donkeysoft.wordwowfree <<<
backtrace:
#00 pc 0000000000000004 <unknown>
#00 pc 000000000010b98c /data/app/com.donkeysoft.wordwowfree-1/lib/arm/libyoyo.so (MarkAndSweepGen(int, int, bool)+2116)
#00 pc 000000000010d17c /data/app/com.donkeysoft.wordwowfree-1/lib/arm/libyoyo.so (DoGenerationalGC(int)+332)
#00 pc 000000000025b240 /data/app/com.donkeysoft.wordwowfree-1/lib/arm/libyoyo.so (DoAStep()+1236)
#00 pc 000000000025b990 /data/app/com.donkeysoft.wordwowfree-1/lib/arm/libyoyo.so (MainLoop_Process()+1392)
#00 pc 000000000037bb3c /data/app/com.donkeysoft.wordwowfree-1/lib/arm/libyoyo.so (Java_com_yoyogames_runner_RunnerJNILib_Process+1016)
#00 pc 000000000219db6b /data/app/com.donkeysoft.wordwowfree-1/oat/arm/base.odex (offset 0x2143000)
gc_enable(false);
gc_collect();
Please report on how it affects stability of the game. I also plan to try the manual gc_collect() out, but might take a while.Awesome @Tornado ! Thanks very much. I'll try the manual gc_collect() and see if that brings down the exceptions that I'm seeing, and remove the instance_destroy commands from the room_end.
Much appreciated!
at java.lang.Object.wait (Native method)
at java.lang.Object.wait (Object.java:442)
at java.lang.Object.wait (Object.java:568)
at android.opengl.GLSurfaceView$GLThread.onPause (GLSurfaceView.java:1725)
at android.opengl.GLSurfaceView.onPause (GLSurfaceView.java:579)
at com.gaming_apps.water_physics_simulation.RunnerActivity.onPause (RunnerActivity.java:849)
at android.app.Activity.performPause (Activity.java:8144)
at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1508)
at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:4947)
at android.app.ActivityThread.performPauseActivity (ActivityThread.java:4908)
at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:4860)
at android.app.servertransaction.PauseActivityItem.execute (PauseActivityItem.java:46)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2261)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:8107)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)