freezing on the iOS device, but not in either Corona or iOS simulator

Guys,

I have a function that calls:

transition.to(g, {time=navRec.time, xScale = .05, yScale = .05, alpha = .2, onComplete=postTransCleanup})

When it’s done, it calls postTransCleanup (the “onComplete” listener).

postTransCleanup calls a function that includes:

timer.performWithDelay(time, doNextTrans, 1)

“doNextTrans” starts a new transition running…perhaps thats the problem but I explicitly put it in the time performWithDelay because I suspected a DIRECT call could create the problem I’ve been seeing

This sequence (or something else within it) is freezing my app and consuming a massive amount of memory (until iOS terminates the process) on the actual device (5s), but I’m having no such problems in EITHER simulator…

Has anyone else seen this before?

Any of you engineers at Corona have reason to think sequence this would cause such a problem??

I’ll put together a very simple test case to confirm this is the problematic sequence but that might take some time…

Oh, Corona version is:   2014.2324 (2014.5.28)

Thanks

Dewey

ok, it seems it’s not the transition at all, but something else causing this.

xCode console (at time of crash) shows:

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.991035]: Enable WoW requested by “apsd”

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.991891]: Unable to dispatch WowStateChanged message to client softwareupdatese (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992038]: Unable to dispatch WowStateChanged message to client assistantd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992189]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992305]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992418]: Unable to dispatch WowStateChanged message to client itunesstored (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992541]: Unable to dispatch WowStateChanged message to client lockdownd (268435460)

Jun  6 14:25:18 dgiphone UserEventAgent[15] <Notice>: jetsam: kernel termination snapshot being created

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442407 wlan.A[7867] AppleBCMWLANNetManager::checkRealTimeTraffic():  now 36457.442399458 num entries 4

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442419 wlan.A[7868] AppleBCMWLANCore::dumpWmeCounters():  per TIDs tx counters: 50841 21054 0 0 0 694 1779 0, per TIDs rx counters: 19257 100549 0 0 0 20 63 0 

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442426 wlan.A[7869] AppleBCMWLANCore::dumpWmeCounters():                AWDL: Tx 46 0 0 0 0 0 0 0,                   Rx: 0 0 0 0 0 0 0 0 

Jun  6 14:25:18 dgiphone com.apple.launchd[1] (UIKitApplication:com.pathoz.chickchat[0x80f3][1174]) <Notice>: (UIKitApplication:com.pathoz.chickchat[0x80f3]) Exited: Killed: 9

Jun  6 14:25:18 dgiphone backboardd[31] <Warning>: Application ‘UIKitApplication:com.pathoz.chickchat[0x80f3]’ exited abnormally with signal 9: Killed: 9

Jun  6 14:25:18 dgiphone ReportCrash[1177] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2014-06-06-142518.ips using uid: 0 gid: 0, synthetic_euid: 0 egid: 0

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 1, connected: 1, subflow state changed, removing subflow [cid=3, state=Disconnected, ifindex=9, errno = 53 (Software caused connection abort)]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 2, connected: 1, added new subflow [cid=4, state=Waiting, ifindex=9]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 1, connected: 1, subflow state changed, removing subflow [cid=4, state=Disconnected, ifindex=9, errno = 61 (Connection refused)]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 0, connected: 0, subflow state changed, removing subflow [cid=2, state=Disconnected, ifindex=2, errno = 61 (Connection refused)]

Jun  6 14:25:19 dgiphone assistantd[71] <Error>: tcp_connection_destination_subflow_add MPTCP_ERROR: 10 connectx failed for [cid=5, state=Allocated, ifindex=2]: 54 - Connection reset by peer

getting closer — I can bypass the whole crash if I comment out the code thats creating my native fields

I’m creating them off screen and then moving them on-screen during the transition sequence described above and something related to that is the source of my heartache :wink:

anyone have experience in this area??

Can we get a look at that code?

I’d have to send you my whole project and it’s really quite large…I suspect it would be fairly difficult for you guys to debug or work with it, but if you really want it, please email me directly and we can work out how to best help you find the problem

I’ve fixed my issue by just waiting until the screen is in-place before adding my native fields…

As long as you have a solution, no, you don’t need to send us code.

Rob

ok, it seems it’s not the transition at all, but something else causing this.

xCode console (at time of crash) shows:

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.991035]: Enable WoW requested by “apsd”

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.991891]: Unable to dispatch WowStateChanged message to client softwareupdatese (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992038]: Unable to dispatch WowStateChanged message to client assistantd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992189]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992305]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992418]: Unable to dispatch WowStateChanged message to client itunesstored (268435460)

Jun  6 14:24:20 dgiphone wifid[40] <Error>: WiFi:[423775460.992541]: Unable to dispatch WowStateChanged message to client lockdownd (268435460)

Jun  6 14:25:18 dgiphone UserEventAgent[15] <Notice>: jetsam: kernel termination snapshot being created

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442407 wlan.A[7867] AppleBCMWLANNetManager::checkRealTimeTraffic():  now 36457.442399458 num entries 4

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442419 wlan.A[7868] AppleBCMWLANCore::dumpWmeCounters():  per TIDs tx counters: 50841 21054 0 0 0 694 1779 0, per TIDs rx counters: 19257 100549 0 0 0 20 63 0 

Jun  6 14:25:18 dgiphone kernel[0] <Debug>: 036457.442426 wlan.A[7869] AppleBCMWLANCore::dumpWmeCounters():                AWDL: Tx 46 0 0 0 0 0 0 0,                   Rx: 0 0 0 0 0 0 0 0 

Jun  6 14:25:18 dgiphone com.apple.launchd[1] (UIKitApplication:com.pathoz.chickchat[0x80f3][1174]) <Notice>: (UIKitApplication:com.pathoz.chickchat[0x80f3]) Exited: Killed: 9

Jun  6 14:25:18 dgiphone backboardd[31] <Warning>: Application ‘UIKitApplication:com.pathoz.chickchat[0x80f3]’ exited abnormally with signal 9: Killed: 9

Jun  6 14:25:18 dgiphone ReportCrash[1177] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2014-06-06-142518.ips using uid: 0 gid: 0, synthetic_euid: 0 egid: 0

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 1, connected: 1, subflow state changed, removing subflow [cid=3, state=Disconnected, ifindex=9, errno = 53 (Software caused connection abort)]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 2, connected: 1, added new subflow [cid=4, state=Waiting, ifindex=9]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 1, connected: 1, subflow state changed, removing subflow [cid=4, state=Disconnected, ifindex=9, errno = 61 (Connection refused)]

Jun  6 14:25:19 dgiphone assistantd[71] <Notice>: connection 10 total: 0, connected: 0, subflow state changed, removing subflow [cid=2, state=Disconnected, ifindex=2, errno = 61 (Connection refused)]

Jun  6 14:25:19 dgiphone assistantd[71] <Error>: tcp_connection_destination_subflow_add MPTCP_ERROR: 10 connectx failed for [cid=5, state=Allocated, ifindex=2]: 54 - Connection reset by peer

getting closer — I can bypass the whole crash if I comment out the code thats creating my native fields

I’m creating them off screen and then moving them on-screen during the transition sequence described above and something related to that is the source of my heartache :wink:

anyone have experience in this area??

Can we get a look at that code?

I’d have to send you my whole project and it’s really quite large…I suspect it would be fairly difficult for you guys to debug or work with it, but if you really want it, please email me directly and we can work out how to best help you find the problem

I’ve fixed my issue by just waiting until the screen is in-place before adding my native fields…

As long as you have a solution, no, you don’t need to send us code.

Rob