This is with XCode 3.2.4 (also was happening with XCode 3.2.3).
I’ve been getting very consistent crash behavior in between scene loading, and after clearing up one bizarre issue with my code, I’ve come across a SIGABRT on the device that looks even weirder.
I don’t really see any references to my code, but I do see references to garbage collection and EditorExtension.h. I don’t know why this would be causing errors. Anyone have any hints? Here’s a complete ‘thread apply all bt’ backtrace:
beastboxing(3001,0x3e9097c8) malloc: *** error for object 0x8d3b334: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Program received signal: “SIGABRT”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.)
warning: .o file "/Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/Libraries/libiPhone-lib.a(misc.o)" more recent than executable timestamp in "/Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/build/beastboxing.app/beastboxing"
warning: Could not open OSO file /Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/Libraries/libiPhone-lib.a(misc.o) to scan for pubtypes for objfile /Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/build/beastboxing.app/beastboxing
warning: .o file "/Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/Libraries/libiPhone-lib.a(security.o)" more recent than executable timestamp in "/Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/build/beastboxing.app/beastboxing"
warning: Could not open OSO file /Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/Libraries/libiPhone-lib.a(security.o) to scan for pubtypes for objfile /Users/gluk/Development/Unity/Monster Boxing/Monster Boxing/UnityPlayer/build/beastboxing.app/beastboxing
(gdb) thread apply all bt
Thread 7 (thread 13827):
#0 0x352748dc in __semwait_signal ()
#1 0x35229a4c in _pthread_cond_wait ()
#2 0x35229638 in pthread_cond_wait ()
#3 0x3329b3d2 in -[NSCondition wait] ()
#4 0x332723ec in -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] ()
#5 0x33272048 in -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] ()
#6 0x0000ca4c in -[AppController startRendering:] () at iostream:76
#7 0x33265c9c in -[NSThread main] ()
#8 0x332ea9e0 in __NSThread__main__ ()
#9 0x3527598c in _pthread_start ()
#10 0x3526b0ec in thread_start ()
Thread 6 (thread 13571):
#0 0x351fc658 in mach_msg_trap ()
#1 0x351fe72a in mach_msg ()
#2 0x350f0724 in AURemoteIO::IOThread::Entry ()
#3 0x3502ec8c in CAPThread::Entry ()
#4 0x3527598c in _pthread_start ()
#5 0x3526b0ec in thread_start ()
Thread 5 (thread 13315):
#0 0x351fc6a8 in semaphore_wait_trap ()
#1 0x35229da4 in semaphore_wait ()
#2 0x0054a500 in finalizer_thread (unused=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/mono/metadata/gc.c:1014
#3 0x005b057c in start_wrapper (data=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/mono/metadata/threads.c:657
#4 0x005e794c in thread_start_routine (args=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/mono/io-layer/wthreads.c:286
#5 0x00516f48 in GC_start_routine (arg=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/libgc/pthread_support.c:1390
#6 0x3527598c in _pthread_start ()
#7 0x3526b0ec in thread_start ()
Thread 4 (thread 13059):
#0 0x351fc658 in mach_msg_trap ()
#1 0x351fe72a in mach_msg ()
#2 0x005e83cc in mach_exception_thread (arg=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/mono/mini/mini-darwin.c:248
#3 0x00516f48 in GC_start_routine (arg=<value temporarily unavailable, due to optimizations>) at /Users/mantasp/work/unity/unity-mono/External/Mono/mono/libgc/pthread_support.c:1390
#4 0x3527598c in _pthread_start ()
#5 0x3526b0ec in thread_start ()
Thread 3 (thread 12803):
#0 0x351fc658 in mach_msg_trap ()
#1 0x351fe72a in mach_msg ()
#2 0x313cb2ce in __CFRunLoopServiceMachPort ()
#3 0x313cd588 in __CFRunLoopRun ()
#4 0x313768ea in CFRunLoopRunSpecific ()
#5 0x313767f2 in CFRunLoopRunInMode ()
#6 0x3013805c in RunWebThread ()
#7 0x3527598c in _pthread_start ()
#8 0x3526b0ec in thread_start ()
Thread 2 (thread 12291):
#0 0x35228c4c in kevent ()
#1 0x352d1e4c in _dispatch_mgr_invoke ()
#2 0x352d189c in _dispatch_queue_invoke ()
#3 0x352d1a3c in _dispatch_worker_thread2 ()
#4 0x35275d88 in _pthread_wqthread ()
#5 0x3526efd4 in start_wqthread ()
Thread 1 (thread 11523):
#0 0x352741d0 in __kill ()
#1 0x352741c6 in kill ()
#2 0x352741b8 in raise ()
#3 0x35288700 in abort ()
#4 0x352789e4 in szone_error ()
#5 0x35278ade in free_list_checksum_botch ()
#6 0x352005c2 in tiny_free_list_remove_ptr ()
#7 0x3527a724 in szone_free_definite_size ()
#8 0x351fd79e in free ()
#9 0x32a3e01a in operator delete ()
#10 0x004ae210 in GarbageCollectorOld::CollectWithRoots () at EditorExtension.h:46
#11 0x004abd2c in PreloadAndGarbageCollectSharedAssets () at EditorExtension.h:46
#12 0x004acc84 in GameReleaseLoadLevel () at EditorExtension.h:46
#13 0x00475bc8 in LevelLoading::LoadLevel () at EditorExtension.h:46
#14 0x004760c4 in LevelLoading::LoadLevelIfWanted () at EditorExtension.h:46
#15 0x004763d8 in PlayerLoop () at EditorExtension.h:46
#16 0x004f860c in UnityPlayerLoop () at EditorExtension.h:46
#17 0x0000c93c in -[AppController Repaint] () at iostream:76
#18 0x313807fe in -[NSObject(NSObject) performSelector:withObject:] ()
#19 0x332eabbc in __NSThreadPerformPerform ()
#20 0x313caa8c in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#21 0x313cc76e in __CFRunLoopDoSources0 ()
#22 0x313cd50a in __CFRunLoopRun ()
#23 0x313768ea in CFRunLoopRunSpecific ()
#24 0x313767f2 in CFRunLoopRunInMode ()
#25 0x329f36ee in GSEventRunModal ()
#26 0x329f379a in GSEventRun ()
#27 0x316692a6 in -[UIApplication _run] ()
#28 0x31667e16 in UIApplicationMain ()
#29 0x0000d680 in main () at iostream:76
(gdb)