iOS crash on screen lock

Hello!

I found out that (at least) our game crashes on iOS every time when user locks screen while game is on foreground. There is no problem if user first goes to the home and then locks the screen. I have tried with the latest iOS version 13.1.3 and latest Defold Editor version 1.2.163 (c28205a592e244e55d5c9e939777ad1dfc08adb1) but it made no difference. On Android everything is working well and I think that this was not happening long time ago.

I tested also with a blank mobile project, but it does not crash. In our actual game the crash is not dependant in which screen you are and for example our achievement screen does not have any heavy graphics or things like that but still the game crashes there.

Any ideas what we could try?

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Application Specific Information: abort() called

and the rest of the stack is an attachment. crashlog.pdf (150.5 KB)

Thank you for your help!

This is likely a native extension causing a problem. Please provide additional information about which extensions you are using.

Thank you for very fast reply!

We are using these dependencies and haven’t implemented any own native code.

https://github.com/defold/extension-firebase/archive/master.zip
https://github.com/AGulev/defreview/archive/master.zip
https://github.com/defold/extension-firebase-core/archive/master.zip
https://github.com/defold/extension-gps/archive/master.zip

The problem is with the firebase extension or one of the dependencies. I get it to crash in the same way in the sample project where DefReview isn’t included.

default	09:05:45.171478 +0200	extensionfirebaseanalytics	*** Assertion failure in void _prepareForCAFlush(UIApplication *__strong)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3899.22.15/UIApplication.m:2914
default	09:05:45.172680 +0200	extensionfirebaseanalytics	*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unexpected start state'

Investigating.

1 Like

Hi! Any news on this issue?

Yes, we have a fix coming up next week, in the 1.2.164 release (probably tuesday)

5 Likes