FBRetainCycleDetector
FBRetainCycleDetector copied to clipboard
FBRetainCycleDetector Crashing
I have same issue. I have Integrated FBMemory Profiler In our App till now it is good it shows Retain Cycles. Recently we have update to Swift 4.0 compiling Our App from Xcode 9.2 With FBMemoryProfiler when I'm Clicking on RetainCycle Button App is Crashing.
Can you post the full logs showing the symbolication stacktrace of the threads?
@Megra Here is the logs Exception Type: EXC_CRASH (SIGSEGV) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: Sell [2095] Triggered by Thread: 0
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_pthread.dylib 0x0000000180d8c968 pthread_get_stacksize_np$VARIANT$mp + 36 1 libsystem_c.dylib 0x0000000180b8bae0 _thread_stack_pcs + 60 2 libsystem_c.dylib 0x0000000180b8bae0 _thread_stack_pcs + 60 3 libsystem_c.dylib 0x0000000180b9f5a8 thread_stack_pcs + 16 4 libsystem_malloc.dylib 0x0000000180cc12d0 __enter_stack_into_table_while_locked + 68 5 libsystem_malloc.dylib 0x0000000180cc1890 __disk_stack_logging_log_stack + 620 6 libsystem_kernel.dylib 0x0000000180c586d8 mach_vm_map + 236 7 libsystem_malloc.dylib 0x0000000180cba7bc mvm_allocate_pages + 224 8 libsystem_malloc.dylib 0x0000000180cb21dc large_malloc + 136 9 libsystem_malloc.dylib 0x0000000180cadcfc szone_malloc_should_clear + 260 10 libsystem_malloc.dylib 0x0000000180cb0b48 malloc_zone_memalign + 240 11 libobjc.A.dylib 0x00000001803cb288 (anonymous namespace)::AutoreleasePoolPage::autoreleaseFullPage(objc_object*, + 160392 (anonymous namespace)::AutoreleasePoolPage*) + 48 12 CoreFoundation 0x00000001810289f4 _CFAutoreleasePoolPush + 16 13 CoreFoundation 0x000000018103c6f0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 416 14 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 15 GapSDK 0x000000010369b370 0x103644000 + 357232 16 UIKit 0x000000018aa11d68 -[UIScrollView hitTest:withEvent:] + 60 17 UIKit 0x000000018a8d9408 -[UITableView hitTest:withEvent:] + 184 18 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 19 UIKit 0x000000018a75708c __38-[UIView+ 299148 (Geometry) hitTest:withEvent:]_block_invoke + 128 20 CoreFoundation 0x000000018103c70c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 444 21 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 22 GapSDK 0x000000010369b370 0x103644000 + 357232 23 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 24 UIKit 0x000000018a75708c __38-[UIView+ 299148 (Geometry) hitTest:withEvent:]_block_invoke + 128 25 CoreFoundation 0x000000018103c70c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 444 26 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 27 GapSDK 0x000000010369b370 0x103644000 + 357232 28 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 29 UIKit 0x000000018a75708c __38-[UIView+ 299148 (Geometry) hitTest:withEvent:]_block_invoke + 128 30 CoreFoundation 0x000000018103c70c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 444 31 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 32 GapSDK 0x000000010369b370 0x103644000 + 357232 33 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 34 UIKit 0x000000018a75708c __38-[UIView+ 299148 (Geometry) hitTest:withEvent:]_block_invoke + 128 35 CoreFoundation 0x000000018103c70c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 444 36 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 37 GapSDK 0x000000010369b370 0x103644000 + 357232 38 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 39 UIKit 0x000000018a75708c __38-[UIView+ 299148 (Geometry) hitTest:withEvent:]_block_invoke + 128 40 CoreFoundation 0x000000018103c70c -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 444 41 UIKit 0x000000018a756bc8 -[UIView+ 297928 (Geometry) hitTest:withEvent:] + 440 42 GapSDK 0x000000010369b370 0x103644000 + 357232 43 UIKit 0x000000018a9f87e4 -[UIView+ 3057636 (Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 92 44 UIKit 0x000000018a9dd650 -[UIWindow _hitTestLocation:inScene:withWindowServerHitTestWindow:event:] + 144 45 UIKit 0x000000018a9dd3a4 __70+[UIWindow _hitTestToPoint:forEvent:windowServerHitTestWindow:screen:]_block_invoke + 156 46 UIKit 0x000000018a722364 +[UIWindow _topVisibleWindowPassingTest:] + 396 47 UIKit 0x000000018a9dd29c +[UIWindow _hitTestToPoint:forEvent:windowServerHitTestWindow:screen:] + 248 48 UIKit 0x000000018a9dd7c8 -[UIWindow _targetWindowForPathIndex:atPoint:forEvent:windowServerHitTestWindow:onScreen:] + 204 49 UIKit 0x000000018b06f96c __startNewUITouch + 564 50 UIKit 0x000000018b06f60c ____updateTouchesWithDigitizerEventAndDetermineIfShouldSend_block_invoke.59 + 244 51 UIKit 0x000000018adcb39c _UIEventHIDEnumerateChildren + 148 52 UIKit 0x000000018b06ec78 __updateTouchesWithDigitizerEventAndDetermineIfShouldSend + 692 53 UIKit 0x000000018b072cf4 __dispatchPreprocessedEventFromEventQueue + 804 54 UIKit 0x000000018b075898 __handleEventQueueInternal + 4760 55 UIKit 0x000000018b06e7b0 __handleHIDEventFetcherDrain + 152 56 CoreFoundation 0x000000018110b77c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 57 CoreFoundation 0x000000018110b6fc __CFRunLoopDoSource0 + 88 58 CoreFoundation 0x000000018110af84 __CFRunLoopDoSources0 + 204 59 CoreFoundation 0x0000000181108b5c __CFRunLoopRun + 1048 60 CoreFoundation 0x0000000181028c58 CFRunLoopRunSpecific + 436 61 GraphicsServices 0x0000000182ed4f84 GSEventRunModal + 100 62 UIKit 0x000000018a7815c4 UIApplicationMain + 236 63 Sell 0x00000001011f4d54 0x1011d8000 + 118100 64 libdyld.dylib 0x0000000180b4856c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread Thread 1: 0 libsystem_kernel.dylib 0x0000000180c57568 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x0000000180c573e0 mach_msg + 72 2 CoreFoundation 0x000000018110b108 __CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x0000000181108cd4 __CFRunLoopRun + 1424 4 CoreFoundation 0x0000000181028c58 CFRunLoopRunSpecific + 436 5 Foundation 0x0000000181a5d594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304 6 Foundation 0x0000000181a7c9ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96 7 UIKit 0x000000018b2eb7a8 -[UIEventFetcher threadMain] + 136 8 Foundation 0x0000000181b5f0f4 NSThread__start + 996 9 libsystem_pthread.dylib 0x0000000180d8c2b4 _pthread_body + 308 10 libsystem_pthread.dylib 0x0000000180d8c180 _pthread_body + 0 11 libsystem_pthread.dylib 0x0000000180d8ab74 thread_start + 4
Thread 2: 0 libsystem_kernel.dylib 0x0000000180c78d80 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000180d8aeec _pthread_wqthread + 884 2 libsystem_pthread.dylib 0x0000000180d8ab6c start_wqthread + 4
Thread 3 name: Dispatch queue: com.apple.root.default-qos Thread 3: 0 libobjc.A.dylib 0x00000001803c81a0 objc_retain + 16 1 libobjc.A.dylib 0x00000001803c8218 objc_storeStrong + 44 2 FBRetainCycleDetector 0x00000001030f8730 0x1030c4000 + 214832 3 FBRetainCycleDetector 0x00000001030f4ddc 0x1030c4000 + 200156 4 FBRetainCycleDetector 0x00000001030f1944 0x1030c4000 + 186692 5 FBRetainCycleDetector 0x00000001030f6640 0x1030c4000 + 206400 6 FBRetainCycleDetector 0x00000001030f5c04 0x1030c4000 + 203780 7 FBMemoryProfiler 0x000000010308c800 0x10307c000 + 67584 8 libdispatch.dylib 0x00000001048892cc 0x104888000 + 4812 9 libdispatch.dylib 0x000000010488928c 0x104888000 + 4748 10 libdispatch.dylib 0x00000001048953dc 0x104888000 + 54236 11 libdispatch.dylib 0x000000010489a9d0 0x104888000 + 76240 12 libdispatch.dylib 0x000000010489a6f4 0x104888000 + 75508 13 libsystem_pthread.dylib 0x0000000180d8b06c _pthread_wqthread + 1268 14 libsystem_pthread.dylib 0x0000000180d8ab6c start_wqthread + 4
Thread 4: 0 libsystem_kernel.dylib 0x0000000180c78d80 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000180d8aeec _pthread_wqthread + 884 2 libsystem_pthread.dylib 0x0000000180d8ab6c start_wqthread + 4
Thread 5 name: com.apple.NSURLConnectionLoader Thread 5: 0 libsystem_kernel.dylib 0x0000000180c57568 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x0000000180c573e0 mach_msg + 72 2 CoreFoundation 0x000000018110b108 __CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x0000000181108cd4 __CFRunLoopRun + 1424 4 CoreFoundation 0x0000000181028c58 CFRunLoopRunSpecific + 436 5 CFNetwork 0x0000000181917b08 -[__CoreSchedulingSetRunnable runForever] + 780 6 Foundation 0x0000000181b5f0f4 NSThread__start + 996 7 libsystem_pthread.dylib 0x0000000180d8c2b4 _pthread_body + 308 8 libsystem_pthread.dylib 0x0000000180d8c180 _pthread_body + 0 9 libsystem_pthread.dylib 0x0000000180d8ab74 thread_start + 4
Thread 6: 0 libsystem_pthread.dylib 0x0000000180d8ab68 start_wqthread + 0
Thread 7: 0 libsystem_kernel.dylib 0x0000000180c78d80 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x0000000180d8b080 _pthread_wqthread + 1288 2 libsystem_pthread.dylib 0x0000000180d8ab6c start_wqthread + 4
Thread 8: 0 libsystem_pthread.dylib 0x0000000180d8ab68 start_wqthread + 0
Thread 9: 0 libsystem_pthread.dylib 0x0000000180d8ab68 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit): x0: 0x00000001b1861b80 x1: 0x00000000000001ff x2: 0x000000016ec24614 x3: 0x0000000000000000 x4: 0x000000010fe0c000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000 x8: 0x00000001b1861c61 x9: 0x00000001b1861b80 x10: 0x0000000000000003 x11: 0x0000000000000000 x12: 0x0000000000004000 x13: 0x0000000000000019 x14: 0x000000000019f878 x15: 0x0000000180c57744 x16: 0x0000000180d8c944 x17: 0x000000010a704000 x18: 0xfffffff0262992ac x19: 0x000000016ec24614 x20: 0x0000000104d44000 x21: 0x00000001b1861b80 x22: 0x00000001b1861c60 x23: 0x00000001b1861b80 x24: 0x000000016ec28000 x25: 0x00000001b0030000 x26: 0x00000001b0030000 x27: 0x00000001b0030000 x28: 0x00000001b0030000 fp: 0x000000016ec245a0 lr: 0x0000000180b8bae0 sp: 0x000000016ec24570 pc: 0x0000000180d8c968 cpsr: 0x40000000
@Megra
@Megra
I have also crashed in ios8.3,
Yeah the crash on [top nextObject] and FBWrapObjectGraphElement is something known but we haven't managed to fix it. Feel free to try finding a fix for this :)
@Megra
i have same issue when enumerate NSMapTable
.