Closed aryaxt closed 6 years ago
+1
Can anyone provide more context? Or a reliable way to reproduce?
I have a feeling that this happens in some cases when nil is passed as a toast message. I have added a fix and will release a new version of my app to see if it fixes the issue or not
Enter a ViewController make Toast exit the ViewController before Toast disappeared Crash...
Same happening with me. I am passing a uiview to showToast method.
And its crashing at [self addsubView:toast]
I'm still unable to reproduce this. Someone please fork this repo and then edit the demo project such that it crashes. I will gladly fix it.
Any additional details on this?
Hi @scalessec ,
It happens when you run the application while not connecting / debugging in xcode.
We got the same issue and the similar crash callback trace as @aryaxt did. The point is we don't get any crash when the device is debugging in XCode. My toast version is 2.4.
+1, reported by Xcode Crash report.
I have this issue too. There's no problem running in simulator but crashes on tester's device (it is not connected to Xcode). Anybody found a solution to this?
Incident Identifier: D9426704-BDCF-45F9-B9B8-256A3979CA29 CrashReporter Key: 02a1d73e9d05a53053b1c992da16061bd5da2b74 Hardware Model: iPhone4,1 Process: CCBMobileBank [571] Path: /private/var/containers/Bundle/Application/E15BCCA9-8D9B-4D1A-942F-53B004B91434/CCBMobileBank.app/CCBMobileBank Identifier: com.ccb.ccbMobileBank Version: 20170714 (4.0.42) Code Type: ARM (Native) Parent Process: launchd [1]
Date/Time: 2017-07-27 14:59:58.58 +0800 Launch Time: 2017-07-27 14:59:38.38 +0800 OS Version: iOS 9.3.1 (13E238) Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 1
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x212b2554 bool objc::DenseMapBase<objc::DenseMap<DisguisedPtr
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1 Crashed: 0 libsystem_kernel.dylib 0x217882f8 kevent_qos + 24 1 libdispatch.dylib 0x2167dd60 _dispatch_mgr_invoke + 256 2 libdispatch.dylib 0x2167dabe _dispatch_mgr_thread$VARIANT$mp + 38
Thread 2: 0 libsystem_kernel.dylib 0x21787864 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x2182db34 _pthread_wqthread + 1036 2 libsystem_pthread.dylib 0x2182d718 start_wqthread + 8
Thread 3: 0 libsystem_kernel.dylib 0x21787864 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x2182db34 _pthread_wqthread + 1036 2 libsystem_pthread.dylib 0x2182d718 start_wqthread + 8
Thread 4: 0 libsystem_kernel.dylib 0x21787864 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x2182db34 _pthread_wqthread + 1036 2 libsystem_pthread.dylib 0x2182d718 start_wqthread + 8
Thread 5 name: NetworkLoad Thread 5: 0 libsystem_kernel.dylib 0x217728d0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x217726d4 mach_msg + 40 2 CoreFoundation 0x21abdb34 CFRunLoopServiceMachPort + 136 3 CoreFoundation 0x21abbebc CFRunLoopRun + 1036 4 CoreFoundation 0x21a0b2e8 CFRunLoopRunSpecific + 520 5 CoreFoundation 0x21a0b0d4 CFRunLoopRunInMode + 108 6 GeoServices 0x27887ffa _runNetworkThread + 466 7 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 8 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 9 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 6: 0 libsystem_kernel.dylib 0x21787864 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x2182db34 _pthread_wqthread + 1036 2 libsystem_pthread.dylib 0x2182d718 start_wqthread + 8
Thread 7 name: com.apple.NSURLConnectionLoader Thread 7: 0 libsystem_kernel.dylib 0x217728d0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x217726d4 mach_msg + 40 2 CoreFoundation 0x21abdb34 CFRunLoopServiceMachPort + 136 3 CoreFoundation 0x21abbebc CFRunLoopRun + 1036 4 CoreFoundation 0x21a0b2e8 CFRunLoopRunSpecific + 520 5 CoreFoundation 0x21a0b0d4 CFRunLoopRunInMode + 108 6 CFNetwork 0x2205c946 +[NSURLConnection(Loader) _resourceLoadLoop:] + 486 7 Foundation 0x22325484 NSThreadstart__ + 1148 8 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 9 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 10 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 8: 0 libsystem_kernel.dylib 0x21786998 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x2182edec _pthread_cond_wait + 536 2 libsystem_pthread.dylib 0x2182fc98 pthread_cond_wait + 40 3 CCBMobileBank 0x02c50a86 _baidu_vi::CVEvent::Wait(unsigned int) + 174 4 CCBMobileBank 0x02c50e8e _baidu_vi::CVThreadEvent::Wait() + 86 5 CCBMobileBank 0x02c4f986 _baidu_vi::CVSocketMan::SocketThreadProc(void*) + 1410 6 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 7 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 8 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 9 name: com.apple.CFSocket.private Thread 9: 0 libsystem_kernel.dylib 0x21786eec select + 20 1 CoreFoundation 0x21ac2f82 CFSocketManager + 566 2 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 3 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 4 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 10: 0 libsystem_kernel.dylib 0x21786ffc semwait_signal + 24 1 libsystem_c.dylib 0x216daeec nanosleep + 172 2 Foundation 0x22324972 +[NSThread sleepForTimeInterval:] + 138 3 CCBMobileBank 0x02805806 -[CCBTaskManager run] (CCBTaskManager.m:137) 4 Foundation 0x22325484 NSThreadstart + 1148 5 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 6 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 7 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 11: 0 libsystem_kernel.dylib 0x21786ffc semwait_signal + 24 1 libsystem_c.dylib 0x216daeec nanosleep + 172 2 Foundation 0x22324972 +[NSThread sleepForTimeInterval:] + 138 3 CCBMobileBank 0x02805806 -[CCBTaskManager run] (CCBTaskManager.m:137) 4 Foundation 0x22325484 NSThreadstart + 1148 5 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 6 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 7 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 12: 0 libsystem_kernel.dylib 0x21786ffc semwait_signal + 24 1 libsystem_c.dylib 0x216daeec nanosleep + 172 2 Foundation 0x22324972 +[NSThread sleepForTimeInterval:] + 138 3 CCBMobileBank 0x02805806 -[CCBTaskManager run] (CCBTaskManager.m:137) 4 Foundation 0x22325484 NSThreadstart + 1148 5 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 6 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 7 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 13 name: WebThread Thread 13: 0 libsystem_kernel.dylib 0x217728d0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x217726d4 mach_msg + 40 2 CoreFoundation 0x21abdb34 CFRunLoopServiceMachPort + 136 3 CoreFoundation 0x21abbebc CFRunLoopRun + 1036 4 CoreFoundation 0x21a0b2e8 CFRunLoopRunSpecific + 520 5 CoreFoundation 0x21a0b0d4 CFRunLoopRunInMode + 108 6 WebCore 0x251d307e RunWebThread(void*) + 422 7 libsystem_pthread.dylib 0x2182f85a _pthread_body + 138 8 libsystem_pthread.dylib 0x2182f7ce _pthread_start + 110 9 libsystem_pthread.dylib 0x2182d724 thread_start + 8
Thread 1 crashed with ARM Thread State (32-bit): r0: 0x00000004 r1: 0x00000000 r2: 0x00000001 r3: 0x1f0926c8 r4: 0x00000001 r5: 0x00000000 r6: 0x00000000 r7: 0x1f092754 r8: 0x382f0ed4 r9: 0x00000000 r10: 0x375247c0 r11: 0x37523c20 ip: 0x00000176 sp: 0x1f0926a0 lr: 0x2167dd61 pc: 0x217882f8 cpsr: 0x20000010
Binary Images:
0x12000 - 0x3315fff CCBMobileBank armv7 <89e63cc10505371a87ab16c232b6f368> /var/containers/Bundle/Application/E15BCCA9-8D9B-4D1A-942F-53B004B91434/CCBMobileBank.app/CCBMobileBank
0xd6be000 - 0xd6c5fff ContactsUI armv7 <33a1351f72fc345c97e64ea81c7aa67b> /System/Library/AccessibilityBundles/ContactsUI.axbundle/ContactsUI
0xd6eb000 - 0xd6eefff TelephonyUIFramework armv7 <9b5ce9790f9738f895cb1548088b569d> /System/Library/AccessibilityBundles/TelephonyUIFramework.axbundle/TelephonyUIFramework
0xd6fc000 - 0xd703fff PreferencesFramework armv7 <2d92aea24f053da3bbce0302213a7545> /System/Library/AccessibilityBundles/PreferencesFramework.axbundle/PreferencesFramework
0xd710000 - 0xd713fff SpringBoardUIServices armv7 <78bb560fe7413f4591ba674fa5870beb> /System/Library/AccessibilityBundles/SpringBoardUIServices.axbundle/SpringBoardUIServices
0xddd0000 - 0xddd3fff SpringBoardFoundation armv7 <42519929f6173dee8ba568e88894f3fc> /System/Library/AccessibilityBundles/SpringBoardFoundation.axbundle/SpringBoardFoundation
0xdddc000 - 0xdddffff GeoServices armv7 <245264ec9a893f9d9874d31c6e1df43f> /System/Library/AccessibilityBundles/GeoServices.axbundle/GeoServices
0xde27000 - 0xde46fff VectorKit armv7 <80f7293d37bb3f09ab735e70c998324c> /System/Library/AccessibilityBundles/VectorKit.axbundle/VectorKit
0xde63000 - 0xde66fff CoreRecognition armv7 <7f43fff756b0386aa22d479f181af8e9> /System/Library/AccessibilityBundles/CoreRecognition.axbundle/CoreRecognition
0x1fef5000 - 0x1ff1cfff dyld armv7 <623928dbdaf93c6bb910215186f4815f> /usr/lib/dyld
0x21224000 - 0x21225fff libSystem.B.dylib armv7 <3dfad2c347673acc91c17bcf3252c0df> /usr/lib/libSystem.B.dylib
0x21226000 - 0x21271fff libc++.1.dylib armv7 <017dba6c16b63f9ebecb9ddd0d0a4520> /usr/lib/libc++.1.dylib
0x21272000 - 0x2128cfff libc++abi.dylib armv7
Error Formulating Crash Report: Failed while requesting activity/breadcrumb diagnostics
20170714
Any idea what could cause a crash here? happens on iOS 8, 9, 10 all types of iphone Note: I usually add toasts to the main window