• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

iOS Weird game crashes we see in Firebase crashlytics

B

booksmaster

Guest
Hello!
We keep receiving two types of crash reports in FB crashlytics. We are unable to determine the source of it.
Crashed: com.apple.main-thread
0 transportbuilding_world 0x100229320 CHashMap<char const*, int, 7>::Delete(char const*) + 80 (yoyo_unordered_hash.h:80)
1 transportbuilding_world 0x100229308 CHashMap<char const*, int, 7>::Delete(char const*) + 123 (yoyo_unordered_hash.h:123)
2 transportbuilding_world 0x1002292cc Sprite_Delete(int) + 855 (Sprite_Main.cpp:855)
3 transportbuilding_world 0x10012d020 F_SpriteDelete(RValue&, CInstance*, CInstance*, int, RValue*) + 1004 (Function_Resource.cpp:1004)
4 transportbuilding_world 0x100250518 DoCallLibrary(unsigned int, unsigned char*, unsigned char const*, VMExec*) + 168 (VM_Exec.cpp:168)
5 transportbuilding_world 0x100252a50 VM::ExecRelease(VMExec&, RValue*) + 10205 (VM_Exec.cpp:10205)
6 transportbuilding_world 0x100252890 VM::Exec(CCode*, YYObjectBase*, YYObjectBase*, RValue*, YYObjectBase*, int, RValue*, int, YYObjectBase*) + 10105 (VM_Exec.cpp:10105)
7 transportbuilding_world 0x1000cdf94 ExecuteIt(CInstance*, CInstance*, CCode*, RValue*, int) + 1496 (Code_Main.cpp:1496)
8 transportbuilding_world 0x1000ce0a8 Code_Execute(CInstance*, CInstance*, CCode*, RValue*, int) + 1517 (Code_Main.cpp:1517)
9 transportbuilding_world 0x1000d8334 CEvent::Execute(CInstance*, CInstance*) + 188 (Event_Class.cpp:188)
10 transportbuilding_world 0x1000d854c Perform_Event_Object_ASync(CInstance*, CInstance*, int, int, int) + 679 (Event_Main.cpp:679)
11 transportbuilding_world 0x1001d4644 CRoom::~CRoom() + 2324 (Room_Class.cpp:2324)
12 transportbuilding_world 0x1001ef384 cARRAY_CLASS<CRoom*>::~cARRAY_CLASS() + 119 (cARRAY_CLASS.h:119)
13 libsystem_c.dylib 0x1913e2fd0 __cxa_finalize_ranges + 392
14 libsystem_c.dylib 0x19138c370 exit + 24
15 UIKit 0x19838520c +[_UIAlertManager hideAlertsForTermination] + 490
16 UIKit 0x19858754c __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke.2098 + 792
17 UIKit 0x19858ad5c _runAfterCACommitDeferredBlocks + 292
18 UIKit 0x19857cb10 _cleanUpAfterCAFlushAndRunDeferredBlocks + 560
19 UIKit 0x1982eb854 _afterCACommitHandler + 168
20 CoreFoundation 0x19244b7dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x19244940c __CFRunLoopDoObservers + 372
22 CoreFoundation 0x19244989c __CFRunLoopRun + 1024
23 CoreFoundation 0x192378048 CFRunLoopRunSpecific + 444
24 GraphicsServices 0x193dfe198 GSEventRunModal + 180
25 UIKit 0x1983642fc -[UIApplication _run] + 684
26 UIKit 0x19835f034 UIApplicationMain + 208
27 transportbuilding_world 0x1002d9688 main + 15 (main.m:15)
Crashed: com.apple.main-thread
0 transportbuilding_world 0x100fd9320 CHashMap<char const*, int, 7>::Delete(char const*) + 80 (yoyo_unordered_hash.h:80)
1 transportbuilding_world 0x100fd9308 CHashMap<char const*, int, 7>::Delete(char const*) + 123 (yoyo_unordered_hash.h:123)
2 transportbuilding_world 0x100fd92cc Sprite_Delete(int) + 855 (Sprite_Main.cpp:855)
3 transportbuilding_world 0x100edd020 F_SpriteDelete(RValue&, CInstance*, CInstance*, int, RValue*) + 1004 (Function_Resource.cpp:1004)
4 transportbuilding_world 0x101000518 DoCallLibrary(unsigned int, unsigned char*, unsigned char const*, VMExec*) + 168 (VM_Exec.cpp:168)
5 transportbuilding_world 0x101002a50 VM::ExecRelease(VMExec&, RValue*) + 10205 (VM_Exec.cpp:10205)
6 transportbuilding_world 0x101002890 VM::Exec(CCode*, YYObjectBase*, YYObjectBase*, RValue*, YYObjectBase*, int, RValue*, int, YYObjectBase*) + 10105 (VM_Exec.cpp:10105)
7 transportbuilding_world 0x100e7df94 ExecuteIt(CInstance*, CInstance*, CCode*, RValue*, int) + 1496 (Code_Main.cpp:1496)
8 transportbuilding_world 0x100e7e0a8 Code_Execute(CInstance*, CInstance*, CCode*, RValue*, int) + 1517 (Code_Main.cpp:1517)
9 transportbuilding_world 0x100e88334 CEvent::Execute(CInstance*, CInstance*) + 188 (Event_Class.cpp:188)
10 transportbuilding_world 0x100e8854c Perform_Event_Object_ASync(CInstance*, CInstance*, int, int, int) + 679 (Event_Main.cpp:679)
11 transportbuilding_world 0x100f84644 CRoom::~CRoom() + 2324 (Room_Class.cpp:2324)
12 transportbuilding_world 0x100f9f384 cARRAY_CLASS<CRoom*>::~cARRAY_CLASS() + 119 (cARRAY_CLASS.h:119)
13 libsystem_c.dylib 0x1bd54cbb4 __cxa_finalize_ranges + 384
14 libsystem_c.dylib 0x1bd54cec4 exit + 24
15 UIKitCore 0x1ea24bfec -[UIApplication terminateWithSuccess] + 466
16 UIKitCore 0x1e9b07d7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 + 344
17 UIKitCore 0x1ea2500ac _runAfterCACommitDeferredBlocks + 296
18 UIKitCore 0x1ea23ebfc _cleanUpAfterCAFlushAndRunDeferredBlocks + 352
19 UIKitCore 0x1ea26ba6c _afterCACommitHandler + 116
20 CoreFoundation 0x1bd9e84fc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x1bd9e3224 __CFRunLoopDoObservers + 412
22 CoreFoundation 0x1bd9e37a0 __CFRunLoopRun + 1228
23 CoreFoundation 0x1bd9e2fb4 CFRunLoopRunSpecific + 436
24 GraphicsServices 0x1bfbe479c GSEventRunModal + 104
25 UIKitCore 0x1ea244c38 UIApplicationMain + 212
26 transportbuilding_world 0x101089688 main + 15 (main.m:15)
27 libdyld.dylib 0x1bd4a68e0 start + 4

The only thing we know it happens when user is killing the game from the running apps list(swipe up two times). It reproduces 100%
Please yoyo stuff help! IDE 481 runtime 378

PS Your bug report page is 404 now.
PPS If it is possible we are agree to pay reasonable amount of dollars for your online assistance with this bug as our ratings keep falling and our over 100k IOS users are not happy.
 
Last edited by a moderator:
B

booksmaster

Guest
We believe it is related to the fact that GMS doesn't put the game on pause when it looses focus.
 
B

booksmaster

Guest
Ok. If anyone encounters same crap the solution is NOT USING CLEANUP EVENT UNDER IOS. Coz if you do the game will crash once you try to kill it from the running apps list. The object with cleanup event must exists in order to get the crash. The code you have in cleanup event makes no difference.
 

rIKmAN

Member
Ok. If anyone encounters same crap the solution is NOT USING CLEANUP EVENT UNDER IOS. Coz if you do the game will crash once you try to kill it from the running apps list. The object with cleanup event must exists in order to get the crash. The code you have in cleanup event makes no difference.
This sounds like something you should report as a bug so YYG are aware of the issue.

You can report a bug from the IDE in the menu at the top: Help > Report a Bug.
 
Top