I'm currently experiencing a problem when running my game on the iPad, which causes the iPad to suddenly stop responding and then reboot. It's not simply crashing out of the game, but, each and every time, causes the device to reboot itself.
I had seen this happen 3 or 4 times over the last month but I could never recreate it deliberately. It may be that some of the changes I made recently have sensitized it, because now it's happening more frequently. Unfortunately, there is no crash log generated on the device when it crashes in this way. So there's no information to be had from that source.
Based on posts here and the Apple dev forums, I've been examining the Unity internal profiler and the Xcode leaks instrument looking for memory problems. I don't see anything that looks problematic, though I must admit to not being very experienced using either of these tools. Below are the last couple of profiler stanzas just before a crash. The app will crash/reboot arbitrarily. I don't even have to be using it at the time. If I just start it up and let it sit there, eventually it will crash--it may take 5 minutes or 30+ minutes before the crash.
iPhone Unity internal profiler stats:
cpu-player> min: 4.4 max: 46.1 avg: 28.5
cpu-ogles-drv> min: 1.0 max: 8.8 avg: 1.7
cpu-waits-gpu> min: 0.9 max: 39.8 avg: 12.2
cpu-present> min: 0.2 max: 27.7 avg: 3.5
frametime> min: 15.1 max: 61.7 avg: 36.7
draw-call #> min: 18 max: 20 avg: 18 | batched: 46
tris #> min: 774 max: 1116 avg: 1053 | batched: 203
verts #> min: 1548 max: 2232 avg: 2106 | batched: 406
player-detail> physx: 0.7 animation: 0.0 culling 0.0 skinning: 0.0 batching: 0.2 render: 12.3 fixed-update-count: 0 .. 4
mono-scripts> update: 2.1 fixedUpdate: 0.0 coroutines: 0.2
mono-memory> used heap: 1650688 allocated heap: 2953216 max number of collections: 0 collection total duration: 0.0
----------------------------------------
iPhone Unity internal profiler stats:
cpu-player> min: 27.1 max: 32.0 avg: 29.3
cpu-ogles-drv> min: 1.1 max: 1.7 avg: 1.3
cpu-waits-gpu> min: 5.2 max: 20.7 avg: 13.1
cpu-present> min: 0.2 max: 5.9 avg: 3.8
frametime> min: 35.1 max: 37.6 avg: 36.1
draw-call #> min: 18 max: 19 avg: 18 | batched: 46
tris #> min: 1086 max: 1116 avg: 1100 | batched: 193
verts #> min: 2172 max: 2232 avg: 2200 | batched: 387
player-detail> physx: 0.7 animation: 0.0 culling 0.0 skinning: 0.0 batching: 0.1 render: 11.9 fixed-update-count: 1 .. 2
mono-scripts> update: 2.6 fixedUpdate: 0.0 coroutines: 0.1
mono-memory> used heap: 1654784 allocated heap: 2953216 max number of collections: 0 collection total duration: 0.0
----------------------------------------
Watchdog has expired. Remote device was disconnected? Debugging session terminated.
Watchdog has expired. Remote device was disconnected? Debugging session terminated.
The Debugger has exited due to signal 15 (SIGTERM).The Debugger has exited due to signal 15 (SIGTERM).
I'm running with Unity3.1 Pro + iOS Pro and iOS 3.2.2 on the device.
It's got me stumped... Any suggestions on how to proceed to get to the bottom of this would be most welcome!
Thanks, Mal