[MCPE-17693] Force close if Android app backgrounded while loading textures at startup Created: 26/Oct/16  Updated: 28/Dec/17  Resolved: 28/Dec/17

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 0.16.0
Fix Version/s: None

Type: Bug
Reporter: Zhuowei Zhang
Resolution: Invalid Votes: 1
Labels: None

Confirmation Status: Unconfirmed
Platform: Tablet - Android - Asus Nexus 7

 Description   

To reproduce:

1) open Minecraft PE (preferably on a slower device, like the Nexus 7 (2012))
2) immediately after the title screen shows up, press the Multitask button to put Minecraft PE into the background
3) tap on Minecraft PE to bring it back to the foreground

Expected result: MCPE goes back into the foreground

Actual result: MCPE crashes as it tries to access a TextureAtlas that isn't loaded in MinecraftClient::onAppResume

F/libc ( 4941): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 4959 (Thread-237)
I/DEBUG ( 139): request->uid:10057 > property debug.db.uid:0; NOT waiting for gdb.
I/DEBUG ( 139): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 139): Build fingerprint: 'google/nakasi/grouper:5.1/LMY47D/1743759:user/release-keys'
I/DEBUG ( 139): Revision: '0'
I/DEBUG ( 139): ABI: 'arm'
I/DEBUG ( 139): pid: 4941, tid: 4959, name: Thread-237 >>> com.mojang.minecraftpe <<<
I/DEBUG ( 139): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG ( 139): r0 00000000 r1 00004000 r2 00000000 r3 00000000
I/DEBUG ( 139): r4 5f43dc60 r5 00000000 r6 5f441a2c r7 6c237d34
I/DEBUG ( 139): r8 7023adc0 r9 6c128428 sl 7bfe0c48 fp 6c12855c
I/DEBUG ( 139): ip 00000001 sp 6c237c20 lr 00000000 pc 6ac2f0c8 cpsr 600b0030
I/DEBUG ( 139):
I/DEBUG ( 139): backtrace:
I/DEBUG ( 139): #00 pc 007a60c8 /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so (_ZN15MinecraftClient12onAppResumedEv+159)
I/DEBUG ( 139): #01 pc 00d742df /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so (_ZN11AppPlatform15_fireAppResumedEv+26)
I/DEBUG ( 139): #02 pc 0118dce3 /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so (_Z17engine_handle_cmdP11android_appi+466)
I/DEBUG ( 139): #03 pc 01193553 /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so
I/DEBUG ( 139): #04 pc 0118d74d /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so (android_main+732)
I/DEBUG ( 139): #05 pc 01193499 /data/app/com.mojang.minecraftpe-1/lib/arm/libminecraftpe.so
I/DEBUG ( 139): #06 pc 0001354b /system/lib/libc.so (ZL15_pthread_startPv+30)
I/DEBUG ( 139): #07 pc 00011477 /system/lib/libc.so (__start_thread+6)



 Comments   
Comment by [Mojang] Mega_Spud (Jay Wells) [ 28/Dec/17 ]

Thank you for your report!

Crashes such as these are now logged automatically, so will be investigated further by the development team internally.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Comment by Zeb [ 24/Nov/17 ]

zhuowei, sorry for taking so long to respond... please do test on the Nexus 7 to see if this issue is still occurring in 1.2.5.52 and/or 1.2.6.2.

Comment by Zhuowei Zhang [ 22/Aug/17 ]

@SuperGeniusZeb I can't trigger it on 1.2.0b22 on a Nexus 6P anymore, but maybe that device is too fast; I can check on the Nexus 7 again if you want.

Comment by Zeb [ 25/Mar/17 ]

Is this still happening as of 1.0.4.11 (1.0.4 official release) and/or 1.0.6.0 (1.0.6 build 1)?

Generated at Sat Jan 11 15:16:27 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.