[fixed]HelloWorld_Android crashes sometimes after resuming

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
stoneageartisans
Posts: 4
Joined: Thu May 18, 2017 11:30 pm
Contact:

[fixed]HelloWorld_Android crashes sometimes after resuming

Post by stoneageartisans »

I'm testing the HelloWorld_Android example on a mobile phone running Android 5.1.

Sometimes (but not always!) after going back into the HelloWorld_Android app after the HOME key was pressed it will crash with the following error message:

Unfortunately,
HelloWorldMobile has
stopped.

If I return to the app after the BACK key was pressed, this never happens. I made a simple "hello world" Irrlicht app and it has the same behavior.

I can't really find any mention via Google of apps using NativeActivity doing this exact thing after the HOME key is pressed, but from what I did see it seems like there are some issues in android_native_app_glue.

Thanks for any input.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: HelloWorld_Android crashes sometimes after resuming

Post by CuteAlien »

Hm, yeah - I can reproduce it. Moving this one to bug-reports. Can't remember having that in the past, so maybe some newer bug.

Crash:

Code: Select all

 
I/Irrlicht(10786): Android command APP_CMD_SAVE_STATE
I/Irrlicht(10786): Android command APP_CMD_PAUSE
I/Irrlicht(10786): Android command APP_CMD_STOP
I/Irrlicht(10786): Android command APP_CMD_LOST_FOCUS
I/Irrlicht(10786): Android command APP_CMD_TERM_WINDOW
I/Irrlicht(10786): Android command APP_CMD_RESUME
I/Irrlicht(10786): Android command APP_CMD_INIT_WINDOW
--------- beginning of crash
I/DEBUG   (  272): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  272): Build fingerprint: 'motorola/falcon_retde/falcon_umts:5.0.2/LXB22.46-28.1/1:user/release-keys'
I/DEBUG   (  272): Revision: 'p3c0'
I/DEBUG   (  272): ABI: 'arm'
I/DEBUG   (  272): pid: 10786, tid: 10816, name: Thread-1047  >>> com.irrlicht.example <<<
I/DEBUG   (  272): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG   (  272):     r0 b72ee998  r1 00000009  r2 a6a90628  r3 00000000
I/DEBUG   (  272):     r4 b72ee9a0  r5 00000000  r6 00000000  r7 b6bd478b
I/DEBUG   (  272):     r8 b72e5480  r9 b72e5480  sl b6f80e45  fp a6a906cc
I/DEBUG   (  272):     ip a712cc5c  sp a6a90618  lr b6bd47a3  pc 00000000  cpsr a00f0010
I/DEBUG   (  272): 
I/DEBUG   (  272): backtrace:
I/DEBUG   (  272):     #00 pc 00000000  <unknown>
I/DEBUG   (  272):     #01 pc 000387a1  /system/lib/libgui.so (android::Surface::hook_perform(ANativeWindow*, int, ...)+22)
I/DEBUG   (  272):     #02 pc 00008ea9  /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+14)
I/DEBUG   (  272):     #03 pc 001cf628  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so (irr::video::CEGLManager::generateSurface()+1288)
I/DEBUG   (  272):     #04 pc 001a7710  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so (irr::CIrrDeviceAndroid::handleAndroidCommand(android_app*, int)+460)
I/DEBUG   (  272):     #05 pc 0057c4c4  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so
I/DEBUG   (  272):     #06 pc 001a6fc4  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so (irr::CIrrDeviceAndroid::run()+112)
I/DEBUG   (  272):     #07 pc 001a1e44  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so (mainloop(irr::IrrlichtDevice*, irr::gui::IGUIStaticText*)+652)
I/DEBUG   (  272):     #08 pc 001a298c  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so (android_main+2792)
I/DEBUG   (  272):     #09 pc 0057c608  /data/app/com.irrlicht.example-1/lib/arm/libHelloWorldMobile.so
I/DEBUG   (  272):     #10 pc 00015e63  /system/lib/libc.so (__pthread_start(void*)+30)
I/DEBUG   (  272):     #11 pc 00013e37  /system/lib/libc.so (__start_thread+6)
I/DEBUG   (  272): 
I/DEBUG   (  272): Tombstone written to: /data/tombstones/tombstone_02
 
Thanks for the report.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
stoneageartisans
Posts: 4
Joined: Thu May 18, 2017 11:30 pm
Contact:

Re: HelloWorld_Android crashes sometimes after resuming

Post by stoneageartisans »

Thanks for looking into it.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: HelloWorld_Android crashes sometimes after resuming

Post by CuteAlien »

Should be fixed now in svn (r5463). Looks to me like an accidentally introduced code change (but I'll check with author).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
stoneageartisans
Posts: 4
Joined: Thu May 18, 2017 11:30 pm
Contact:

Re: [fixed]HelloWorld_Android crashes sometimes after resumi

Post by stoneageartisans »

A storm Saturday night knocked out my power, phone, and internet. The latter was finally restored today. I will update my repo, rebuild, and test. Thanks!
Post Reply