defold
defold copied to clipboard
Game crash on iOS when screen auto-locks
Describe the bug Running a TestFlight build of the game, when the screen locks due to the phone's auto-lock settings, the system will sometimes report that the app has crashed.
To Reproduce (REQUIRED)
- Set the device auto-lock timeout to a low value, e.g. 1 minute
- (Unconfirmed) enable low power mode
- Run the game
- Wait for the screen to lock
- Unlock the phone and observe that the game has crashes
Defold version:
- Version [e.g. 1.2.185]
Platforms (REQUIRED):
- Platforms: iOS
- OS: iOS 13.6
- Device: iPhone 7 Plus
Logs (OPTIONAL): crash_report.txt
I have updated reproduction steps from the team member who sees this bug. It appears that resuming the game from sleep causes it to freeze, and then trying to resume it a second time causes the crash.
- Play the game with battery saver on, and a short auto-lock time
- Wait for the screen to lock
- Press the home button to wake it up
- See if the game is responsive (if it is, try again)
- Press the home button again to return to the iOS home screen
- Select the game icon to resume it
- Crash
At step 4, apparently the game is not responsive to input, and Spine animations have ceased, but music continues.
Thank you for the clear steps. We will look into this soon!
By the way, does it also happen on iOS 14 devices, or only 13?
We only have confirmed crash reports on a single iOS 13 device. That user has downloaded some Defold games from the App Store which run ok and don't show this behaviour. I can't reproduce on my iPhone 6S running iOS 13.4
@dri-richard is this still an issue for you?
I’ve asked the team member who reported this to verify, he’s away today so I’ll report back ASAP.
- Which extensions are used?
- Can this be reproduced with a project without extensions?
- Can you share a sample project?
- Which extensions are used?
defold-input defold-orthographic extension-push/ monarch extension-firebase extension-firebase-analytics extension-facebook/archive extension-adinfo/archive DefAppsFlyer/archive
Can this be reproduced with a project without extensions?
We haven't tried. This bug has only been reproduced by a remote-working artist, so distributing builds for him to test is non-trivial. He has seen this issue in at least one other Defold game - Travel Blast.
Can you share a sample project?
I'd need to spend half a day working with the artist mentioned above to create a minimal project, and we don't currently have time to do so.