Page 1 of 1

[SOLVED] iOS game crashes on startup after days of play

Posted: Mon Apr 10, 2017 6:27 pm
by tardigrade
[SOLVED: free apple dev account restricts app to 7 days of use]

Hi,
I'm working on a love2d game for PC and mobile and trying to make a stable build for iOS. I've gone through the steps with Xcode and love 0.10.2 to make an iOS build and it works great on my phone for a few days. After about a week of having the app on my phone it starts crashing on startup (white screen while opening the app and immediately closes). The game runs well on PC and android.

If I build+run from Xcode again it uploads a new build to the phone and I can't reproduce the problem for another week. I've looked into the Device Logs but cannot find logs for when I open the app (and it crashes immediately). There is a log from a while ago for love saying this:
Date/Time: 2017-03-23 17:15:32 -0400
OS Version: iPhone OS 10.0.1 (Build 14A403)
Architecture: arm64
Report Version: 19

Command: love
Path: /var/containers/Bundle/Application/2AF6D41E-C80B-4EA3-8431-35CD4E7539D9/love.app/love
Version: 0.10.1 (1.0)
Parent: launchd [1]
PID: 341

Event: wakeups
Wakeups: 45007 wakeups over the last 183 seconds (246 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Duration: 183.21s
Steps: 37
(I've attached the full log if that is useful)

Could it have started crashing when this log occurred and now shutdowns without spawning new logs? Is the problem actually related to 'wakeups' and how can that be fixed? Is there away to determine the cause of a crash as it happens?

If anyone has any info that would be very helpful :3

Re: iOS game crashes on startup after days of play

Posted: Tue Apr 11, 2017 12:33 am
by tardigrade
I'm noticing now that that log mentions love 0.10.1 which I was using before I updated to 0.10.2. That means that I may not have a log at all for why it is crashing on startup.

Re: iOS game crashes on startup after days of play

Posted: Tue Apr 11, 2017 9:50 am
by bio1712
Hello.
Do you have an Apple Developer paid account?
Otherwise you have to deploy your app every 7 days.

Re: iOS game crashes on startup after days of play

Posted: Tue Apr 11, 2017 3:04 pm
by tardigrade
wow thanks bio1712! I had no idea about that requirement, it should really provide a message when this happens.

Re: [SOLVED] iOS game crashes on startup after days of play

Posted: Tue Apr 11, 2017 8:34 pm
by bio1712
Yeah but this is not a LÖVE issue, It happens with every iOS application signed with a free account.