I develop new title, and decided do build it for ios 9.1. (iphone 6)
On android all working perfectly.
But on ios game became freezing in 2-3 minutes, and do crash after.
I long time tried to find crap in my code (thanks to corona team, I greatly improved my code :))
But bug was not fixed.
I decided make new build from old working game. Builded succesfully, but … bug has appeared in that game.
Therefore I made new empty project with endless cycles creating and destroying random rotating (transitions) cubes, and launched this “shit” on iphone.
And in 5 min … I have got the same freeze!
But I solved this problem by UNCHECKING MONETIZATION when I do build for iOS.
main.lua
display.setStatusBar(display.HiddenStatusBar) local function start() local a local mr = math.random function a() local b = display.newImageRect( "nul.png", mr(30,100), mr(30,100) ) b.x, b.y = mr(100,500), mr(100,500) transition.to( b, { time = 3000, rotation = 360, onComplete = function() b:removeSelf(); b = nil; a() end } ) end a() end timer.performWithDelay( 100, start )
Oct 30 18:18:57 Nikolays-iPhone-6 syncdefaultsd[376] <Notice>: (Note ) marked “com.me.keyvalueservice” topic as “enabled” on <APSConnection: 0x154e1d550>
Oct 30 18:18:58 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1611.01min. Need active time in 4295.22min. Remaining retry interval: 0.000000min.
Oct 30 18:18:58 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918338.9) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:18:58 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:18:59 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1632.45min. Need active time in 4344.19min. Remaining retry interval: 0.000000min.
Oct 30 18:19:00 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918340.0) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:00 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:01 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1652.97min. Need active time in 4391.00min. Remaining retry interval: 0.000000min.
Oct 30 18:19:01 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918341.1) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:01 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:01 Nikolays-iPhone-6 locationd[64] <Notice>: Location icon should now be in state ‘Active’
Oct 30 18:19:02 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1672.62min. Need active time in 4435.80min. Remaining retry interval: 0.000000min.
Oct 30 18:19:02 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918342.2) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:02 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:24 Nikolays-iPhone-6 locationd[64] <Notice>: Location icon should now be in state ‘Inactive’
PS. I have tried to downgrade xcode for 9.0 - the same situation
Hey! So your saying on android this isn’t happening? What about on the simulator? What i’m thinking you should do is put print statements in all your code and see if there’s a memory leak… The simulator has lots a ram so it could run something that on phone would crash…
Try this… I have debugged this and this should work perfect…
local function start() local mr = math.random function spawnFirst() local b = display.newImageRect( "bob.png", mr(30,100), mr(30,100) ) b.x = mr(0,320) b.y = mr(0,570) local function remove() display.remove(b) spawnFirst() end transition.to( b, { time = 1000, rotation = 360, onComplete = remove }) end spawnFirst() end timer.performWithDelay( 100, start, 1 )
Ok give me 20 min… I’m going to go build it for my iPad…
And please follow the forum #1 rule… “Be Polite”… I’m sorry if i’m not giving you the best and correct answer right away… I haven’t been to sleep for over 32 hours and that’s getting to me already… So please be patient or there might be a problem.
Oct 30 18:18:57 Nikolays-iPhone-6 syncdefaultsd[376] <Notice>: (Note ) marked “com.me.keyvalueservice” topic as “enabled” on <APSConnection: 0x154e1d550>
Oct 30 18:18:58 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1611.01min. Need active time in 4295.22min. Remaining retry interval: 0.000000min.
Oct 30 18:18:58 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918338.9) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:18:58 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:18:59 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1632.45min. Need active time in 4344.19min. Remaining retry interval: 0.000000min.
Oct 30 18:19:00 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918340.0) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:00 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:01 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1652.97min. Need active time in 4391.00min. Remaining retry interval: 0.000000min.
Oct 30 18:19:01 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918341.1) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:01 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:01 Nikolays-iPhone-6 locationd[64] <Notice>: Location icon should now be in state ‘Active’
Oct 30 18:19:02 Nikolays-iPhone-6 timed[62] <Notice>: (Note ) CoreTime: Want active time in 1672.62min. Need active time in 4435.80min. Remaining retry interval: 0.000000min.
Oct 30 18:19:02 Nikolays-iPhone-6 UserEventAgent[26] <Error>: validateAndAddDefaults(com.apple.timed): End Time (inf) > now (467918342.2) + BACKGROUND_TASK_AGENT_JOB_WINDOW_MAX_TIME_FROM_NOW_SEC (3024000.0) + BACKGROUND_TASK_AGENT_JOB_TIME_ERROR_MARGIN (300.0)
Oct 30 18:19:02 Nikolays-iPhone-6 timed[62] <Notice>: (Error) CoreTime: Error requesting proactive time check job
Oct 30 18:19:24 Nikolays-iPhone-6 locationd[64] <Notice>: Location icon should now be in state ‘Inactive’
PS. I have tried to downgrade xcode for 9.0 - the same situation
Hey! So your saying on android this isn’t happening? What about on the simulator? What i’m thinking you should do is put print statements in all your code and see if there’s a memory leak… The simulator has lots a ram so it could run something that on phone would crash…
Try this… I have debugged this and this should work perfect…
local function start() local mr = math.random function spawnFirst() local b = display.newImageRect( "bob.png", mr(30,100), mr(30,100) ) b.x = mr(0,320) b.y = mr(0,570) local function remove() display.remove(b) spawnFirst() end transition.to( b, { time = 1000, rotation = 360, onComplete = remove }) end spawnFirst() end timer.performWithDelay( 100, start, 1 )