Please note I’m not “spamming” the back button. I simply start the app, and exit via back button with double-press (I have a key listener requiring two quick presses to exit, in order to avoid accidental exit).
I’ve experimented with os.exit() now, in the system exit event handler. Seems to trigger a crash rather than an ANR. Feels like it happens less often than the ANR. Don’t know if those backtraces will have anything useful, but I found it interesting to see the following after Corona reports the applicationExit:
a) chromium. I guess a webview for the ads?
B) Two network requests left hanging.
I’m a bit tired so these things might be completely unrelated and simply caused by the unclean exit. But perhaps something related to the ad plugin is not cleaned up in certain situations.
12-11 21:21:42.094 1610 1610 I Corona : /DUMP: [System] applicationExit (@D:\Dropbox\Code\workspace-Corona\DevProjects\Pop Balloons Rewarded unlock\main.lua:func:280)
12-11 21:21:42.104 1610 2049 E chromium : [ERROR:gl_fence_egl.cc(34)] Failed to get EGLSync attribute. error code:12300
12-11 21:21:42.104 1610 1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1
12-11 21:21:42.115 1610 1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1
12-11 21:21:42.137 1610 1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=2 refcnt=2
12-11 21:21:42.264 948 1198 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@477a37c)
12-11 21:21:42.265 948 4258 I ActivityManager: Process se.appfamily.balloonpopfree (pid 1610) has died: cch CEM
12-11 21:21:42.265 948 1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
12-11 21:21:42.265 948 1545 I WindowManager: WIN DEATH: Window{13c268d u0 se.appfamily.balloonpopfree/com.ansca.corona.CoronaActivity}
12-11 21:21:42.266 948 1401 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@8a89405)
12-11 21:21:42.266 1827 1827 I cr_ChildProcessService: Destroying ChildProcessService pid=1827
12-11 21:21:42.267 948 1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
12-11 21:21:42.269 948 4258 I ActivityManager: Killing 1827:com.android.chrome:sandboxed_process0/u0a672i12 (adj 0): isolated not needed
12-11 21:21:42.270 948 969 W ActivityManager: setHasOverlayUi called on unknown pid: 1610
12-11 21:21:42.296 948 964 W zygote64: failed to open /acct/uid_99012/pid_1827/cgroup.procs: No such file or directory
12-11 21:21:46.721 948 961 E memtrack: Couldn’t load memtrack module
12-11 21:21:46.721 948 961 W android.os.Debug: failed to get memory consumption info: -1