libsystem_kernel.dylib Crash

My app occasionally hangs and gets killed by iOS. Using device console I have not been able to get any good information on what’s happening. My attempts to reproduce the issue using simplified test cases is getting nowhere. Looking through the device crash logs I noticed that the files look pretty similar.

  Exception Type:  EXC\_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note:  EXC\_CORPSE\_NOTIFY Triggered by Thread:  0   Application Specific Information: abort() called   Filtered syslog: None found   Last Exception Backtrace: (0x1823d7164 0x181620528 0x1823d70ac 0x10208847c 0x18beb7130 0x18beb6bf0 0x18be9b3f0 0x18be9aa90 0x18c5fb4f0 0x18c6d3380 0x18c3c5c74 0x18c185cc8 0x18c02eca4 0x18c033298 0x18bb0ba14 0x18b9c2b50 0x18c01cb08 0x18c01c678 0x18c01b7d4 0x18b9c0e5c 0x18b991e7c 0x18c2e730c 0x18c2e9898 0x18c2e27b0 0x18237f77c 0x18237f6fc 0x18237ef84 0x18237cb5c 0x18229cc58 0x184148f84 0x18b9f55c4 0x10207790c 0x181dbc56c)   Thread 0 name:  Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0   libsystem\_kernel.dylib        0x0000000181eec2e8 0x181eca000 + 140008 1   libsystem\_pthread.dylib        0x00000001820012f8 0x181ffe000 + 13048 2   libsystem\_c.dylib              0x0000000181e5afbc 0x181df8000 + 405436 3   libc++abi.dylib                0x00000001815f8068 0x1815f6000 + 8296 4   libc++abi.dylib                0x00000001815f8210 0x1815f6000 + 8720 5   libobjc.A.dylib                0x0000000181620810 0x181618000 + 34832 6   libc++abi.dylib                0x000000018161054c 0x1815f6000 + 107852 7   libc++abi.dylib                0x0000000181610158 0x1815f6000 + 106840 8   libobjc.A.dylib                0x00000001816206e8 0x181618000 + 34536 9   CoreFoundation                0x000000018229ccc4 0x182294000 + 36036 10  GraphicsServices              0x0000000184148f84 0x18413e000 + 44932 11  UIKit                          0x000000018b9f55c4 0x18b982000 + 472516 12  Headings                      0x000000010207790c 0x102070000 + 30988 13  libdyld.dylib                  0x0000000181dbc56c 0x181dbb000 + 5484

Headings is the name of the app. I’m assuming that that means that the kernel has either had an assert fail or I’ve got a memory leak. Does anyone know that to look for? The crash occurs when I press a button which removes a headings event listener and tells composer to transition to a new scene.

I’m using 3238

Sounds like this is reproducible. Perhaps it would be best to package your project up in a .zip file and file a bug report.

Rob

I have ruled out texture memory issues. The number of display objects and texture memory remain constant. I am also not seeing low memory warnings. I now have a sneaking suspicion that this crash is caused by the zip plugin. When the crash happens the code opens a scene which requires a module which requires the zip plugin. Removing this dependency on the plugin seems to remove the problem. 

This isn’t happening all the time, but seems to predictably happen on a live server build on the device after a synchronisation. I could be wrong, but I’ll see if I can look into it. 

I’ve been able to consistently reproduce this issue now!

[lua]

local zip = require “plugin.zip”

local rect=display.newRect(display.contentCenterX, display.contentCenterY, 200, 200)

Runtime:addEventListener(“enterFrame”,function(event)

  rect.rotation=event.time*0.01

end)

[/lua]

If you build the above as a live server build it will run fine when you first install it. Touch the file to cause the project to sync and build will freeze and until iOS kills it.

Have you filed a bug report on it yet?  Can you post the caseID back here when you’re done?

Thanks

Rob

It looks like one did: 

#13897829

Sounds like this is reproducible. Perhaps it would be best to package your project up in a .zip file and file a bug report.

Rob

I have ruled out texture memory issues. The number of display objects and texture memory remain constant. I am also not seeing low memory warnings. I now have a sneaking suspicion that this crash is caused by the zip plugin. When the crash happens the code opens a scene which requires a module which requires the zip plugin. Removing this dependency on the plugin seems to remove the problem. 

This isn’t happening all the time, but seems to predictably happen on a live server build on the device after a synchronisation. I could be wrong, but I’ll see if I can look into it. 

I’ve been able to consistently reproduce this issue now!

[lua]

local zip = require “plugin.zip”

local rect=display.newRect(display.contentCenterX, display.contentCenterY, 200, 200)

Runtime:addEventListener(“enterFrame”,function(event)

  rect.rotation=event.time*0.01

end)

[/lua]

If you build the above as a live server build it will run fine when you first install it. Touch the file to cause the project to sync and build will freeze and until iOS kills it.

Have you filed a bug report on it yet?  Can you post the caseID back here when you’re done?

Thanks

Rob

It looks like one did: 

#13897829