Crash on iOS

I’m getting a crash on iOS in my game. Long shot, but any idea what could cause this?

PComp version 0.39 build (null)
Uncaught Signal
si_signo    11
si_code     2
si_value    0
si_errno    0
si_addr     0x68D05471
si_status   0
Stack trace:n
   0 - 0   GameName                               0x00119c77 _ZL15GASignalHandleriP9__siginfoPv + 206
   1 - 1   libsystem_platform.dylib            0x1c834259 _sigtramp + 24
   2 - 2   GameName                               0x003196c5 _ZN7dmSound16PlatformFinalizeEv + 26
   3 - 3   GameName                               0x0030d7b3 _ZN7dmSound8FinalizeEv + 26
   4 - 4   GameName                               0x0016bea7 _ZN8dmEngine6DeleteEPNS_6EngineE + 184
   5 - 5   GameName                               0x0016eafd _Z14dmEngineCreateiPPc + 86
   6 - 6   GameName                               0x002f1de5 -[AppDelegate appUpdate] + 82
   7 - 7   QuartzCore                          0x1fd4c9f1 <redacted> + 112
   8 - 8   QuartzCore                          0x1fd4c839 <redacted> + 608
   9 - 9   IOMobileFramebuffer                 0x1f1eb1bf <redacted> + 88
  10 - 10  IOKit                               0x1d204a7f IODispatchCalloutFromCFMessage + 236
  11 - 11  CoreFoundation                      0x1cf5cc19 <redacted> + 128
  12 - 12  CoreFoundation                      0x1cf7065f <redacted> + 34
  13 - 13  CoreFoundation                      0x1cf6febd <redacted> + 338
  14 - 14  CoreFoundation                      0x1cf6deab <redacted> + 994
  15 - 15  CoreFoundation                      0x1cec11af CFRunLoopRunSpecific + 470
  16 - 16  CoreFoundation                      0x1cec0fd1 CFRunLoopRunInMode + 104
  17 - 17  GraphicsServices                    0x1e66bb41 GSEventRunModal + 80
  18 - 18  UIKit                               0x22249a53 UIApplicationMain + 150
  19 - 19  GameName                               0x0016ed9d _Z11engine_mainiPPc + 160
  20 - 20  libdyld.dylib                       0x1c6ae4eb <redacted> + 2

You need to provide more info. When does it happen? Are you using extensions? Log files? (https://defold.com/manuals/getting-help/#log-files)

2 Likes

It seems we assert on something when shutting down the engine… I’ll have a look to see what that could be.

1 Like

Spot on. It happens when the app is forced closed and the immediately opened again. I can’t replicate this on my slightly older devices. It happens on a new iPhone 11.

Since I don’t have a device that can replicate it to hand, I was hoping the crash that came through to GameAnalytics might help to narrow it down. Under normal circumstances I would just go to the office and stress test on a real device!

My best guess, and it’s a guess, is that something is being written or sent at the point of shutdown and it’s not finished by the time the new instance of the game is started.

Edit: The dependencies. Hope you’re sitting down.