I am tracking crashes in my app. This particular crash gives me the error "Terminating app due to an uncaught exception 'NSInternalInconsistencyException', reason: 'Only run on the main thread!'". The weird thing is i can't seem to recreate the crash using my device or simulator but in my analytics it shows that this crash happens a lot. I was told this was happening because you can only do UI updates on the main thread so i updated my code but this crash keeps happening and i still can't recreate the crash on my phone or simulator.
This is code where the crash is happening:
indicator.startAnimation()
let audioData = NSData(contentsOfURL: EditSongViewController.url.urlComplete!)
let dataImage: NSData = UIImageJPEGRepresentation(songImage.image!, 1.0)!
let imageFile = PFFile(name: "photo.jpg", data: dataImage)
let audioFile = PFFile(name: "song.mp4", data: audioData)
audioFile.saveInBackground()
imageFile.saveInBackground()
let testObject = PFObject(className: "PrivateSongs")
testObject["songFile"] = audioFile
testObject["image"] = imageFile
testObject["username"] = PFUser.currentUser().username
testObject["user"] = PFUser.currentUser()
testObject["title"] = self.songTitleText.text
testObject["songInfo"] = self.songInfoText.text
if RecordViewController.fileURL.songLyrics != nil {
testObject["lyrics"] = RecordViewController.fileURL.songLyrics
}
if (isPrivate == true) {
testObject["isPrivate"] = true
} else {
testObject["isPrivate"] = false
}
testObject.saveInBackgroundWithBlock ({ (success, error) -> Void in
if (success) {
if self.chartsSwitch.on {
let chart = PFObject(className: "Songs")
chart["artistName"] = PFUser.currentUser().username
chart["songFile"] = audioFile
chart["title"] = self.songTitleText.text
chart["picture"] = imageFile
chart["user"] = PFUser.currentUser()
chart["likes"] = 0
if RecordViewController.fileURL.songLyrics != nil {
chart["lyrics"] = RecordViewController.fileURL.songLyrics
}
chart.saveInBackground()
}
PostViewControler.share.shareUrl = audioFile.url!
dispatch_async(dispatch_get_main_queue(), ^{
/* Your UI code */
self.postButton.hidden = true
self.addPictureButton.hidden = true
self.indicator.stopAnimation(false, completion: nil)
self.navigationController!.pushViewController(self.storyboard!.instantiateViewControllerWithIdentifier("ShareViewController") , animated: true)
});
} else {
dispatch_async(dispatch_get_main_queue(), ^{
/* Your UI code */
self.indicator.stopAnimation(false, completion: nil)
self.helper.showErrorAlert("Couldn't save your song please try again.")
});
}
})
Crash:
Terminating app due to an uncaught exception 'NSInternalInconsistencyException', reason: 'Only run on the main thread!' Error symbolicating crash report.
Last Exception Backtrace
0 CoreFoundation 0x2409068b
1 libobjc.A.dylib 0x3558ee17 objc_exception_throw + 38
2 CoreFoundation 0x24090561 <redacted> + 0
3 Foundation 0x24e1b0e3 <redacted> + 86
4 UIFoundation 0x323d5a6f <redacted> + 398
5 UIFoundation 0x323d57b3 <redacted> + 1510
6 UIFoundation 0x32404989 <redacted> + 724
7 UIFoundation 0x32404a7d <redacted> + 52
8 UIFoundation 0x324277a3 <redacted> + 122
9 UIFoundation 0x32427339 <redacted> + 400
10 UIFoundation 0x32426f2b <redacted> + 78
11 UIKit 0x28203227 <redacted> + 262
12 UIKit 0x28203107 <redacted> + 178
13 meipmusic 0x145e74 meipmusic + 437876
14 meipmusic 0x146e20 meipmusic + 441888
15 meipmusic 0x147144 meipmusic + 442692
16 meipmusic 0x13c994 meipmusic + 399764
17 meipmusic 0x14d760 meipmusic + 468832
18 meipmusic 0x19d810 meipmusic + 796688
19 AVFoundation 0x228625e7 <redacted> + 558
20 libdispatch.dylib 0x35c90d2b <redacted> + 10
21 libdispatch.dylib 0x35c9d92b <redacted> + 1758
22 libdispatch.dylib 0x35c9cf69 <redacted> + 284
23 libdispatch.dylib 0x35c9f665 <redacted> + 396
24 libdispatch.dylib 0x35c9f4d5 <redacted> + 96
25 libsystem_pthread.dylib 0x35e4ab45 _pthread_wqthread + 1024
26 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
Crashed Thread 20 :
0 CoreFoundation 0x240909c7
1 libobjc.A.dylib 0x3558f09f
2 libc++abi.dylib 0x34c63e17
3 libc++abi.dylib 0x34c638f9
4 libobjc.A.dylib 0x3558ef5f
5 AVFoundation 0x22862651
6 libdispatch.dylib 0x35c90d2b <redacted> + 10
7 libdispatch.dylib 0x35c9d92b <redacted> + 1758
8 libdispatch.dylib 0x35c9cf69 <redacted> + 284
9 libdispatch.dylib 0x35c9f665 <redacted> + 396
10 libdispatch.dylib 0x35c9f4d5 <redacted> + 96
11 libsystem_pthread.dylib 0x35e4ab45 _pthread_wqthread + 1024
12 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
Thread 0 :
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 GraphicsServices 0x2d058ad1
6 UIKit 0x281ba899
7 meipmusic 0x1849f0
8 libdyld.dylib 0x35cda873
Thread 1 :
0 libsystem_kernel.dylib 0x35dab3c0
1 libdispatch.dylib 0x35ca4f27
Thread 2 (AXSpeech):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 Foundation 0x24d8f975
6 libAXSpeechManager.dylib 0x34694791
7 Foundation 0x24e60635
8 libsystem_pthread.dylib 0x35e4c873
9 libsystem_pthread.dylib 0x35e4c7e7
10 libsystem_pthread.dylib 0x35e4a740
Thread 3 (AVAudioSession Notify Thread):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 libAVFAudio.dylib 0x2298a16d
6 libAVFAudio.dylib 0x2295ec87
7 libsystem_pthread.dylib 0x35e4c873
8 libsystem_pthread.dylib 0x35e4c7e7
9 libsystem_pthread.dylib 0x35e4a740
Thread 4 :
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 Foundation 0x24d8f975
6 Foundation 0x24dde58d
7 libdispatch.dylib 0x35c90d2b <redacted> + 10
8 libdispatch.dylib 0x35c9b535
9 libdispatch.dylib 0x35c9faf1
10 libdispatch.dylib 0x35c9f4d5 <redacted> + 96
11 libsystem_pthread.dylib 0x35e4ab45 _pthread_wqthread + 1024
12 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
Thread 5 :
0 libsystem_kernel.dylib 0x35da9a60
1 libsystem_pthread.dylib 0x35e4ccb1
2 Foundation 0x24ddac27
3 meipmusic 0x41b6bb
4 Foundation 0x24e60635
5 libsystem_pthread.dylib 0x35e4c873
6 libsystem_pthread.dylib 0x35e4c7e7
7 libsystem_pthread.dylib 0x35e4a740
Thread 6 (com.apple.NSURLConnectionLoader):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 CFNetwork 0x23917ee7
6 Foundation 0x24e60635
7 libsystem_pthread.dylib 0x35e4c873
8 libsystem_pthread.dylib 0x35e4c7e7
9 libsystem_pthread.dylib 0x35e4a740
Thread 7 (PF_AFNetworking):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 Foundation 0x24d8f975
6 Foundation 0x24dde58d
7 meipmusic 0x4495c3
8 Foundation 0x24e60635
9 libsystem_pthread.dylib 0x35e4c873
10 libsystem_pthread.dylib 0x35e4c7e7
11 libsystem_pthread.dylib 0x35e4a740
Thread 8 (com.apple.CFSocket.private):
0 libsystem_kernel.dylib 0x35da9fb4
1 libsystem_pthread.dylib 0x35e4c873
2 libsystem_pthread.dylib 0x35e4c7e7
3 libsystem_pthread.dylib 0x35e4a740
Thread 9 (WebThread):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 WebCore 0x32e7f287
6 libsystem_pthread.dylib 0x35e4c873
7 libsystem_pthread.dylib 0x35e4c7e7
8 libsystem_pthread.dylib 0x35e4a740
Thread 10 (JavaScriptCore::Marking):
0 libsystem_kernel.dylib 0x35da9a60
1 libsystem_pthread.dylib 0x35e4ccb1
2 libc++.1.dylib 0x34c0786d
3 JavaScriptCore 0x2565c0f5
4 JavaScriptCore 0x2565c15f
5 JavaScriptCore 0x2546dd51
6 JavaScriptCore 0x2546dcaf
7 libsystem_pthread.dylib 0x35e4c873
8 libsystem_pthread.dylib 0x35e4c7e7
9 libsystem_pthread.dylib 0x35e4a740
Thread 11 (WebCore: CFNetwork Loader):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 WebCore 0x32ea308d
6 JavaScriptCore 0x2546dd51
7 JavaScriptCore 0x2546dcaf
8 libsystem_pthread.dylib 0x35e4c873
9 libsystem_pthread.dylib 0x35e4c7e7
10 libsystem_pthread.dylib 0x35e4a740
Thread 12 (AXSpeech):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 Foundation 0x24d8f975
6 libAXSpeechManager.dylib 0x34694791
7 Foundation 0x24e60635
8 libsystem_pthread.dylib 0x35e4c873
9 libsystem_pthread.dylib 0x35e4c7e7
10 libsystem_pthread.dylib 0x35e4a740
Thread 13 :
0 libsystem_kernel.dylib 0x35daa0c4
1 libc++.1.dylib 0x34c468b9
2 JavaScriptCore 0x25819ee3
3 JavaScriptCore 0x25819cab
4 JavaScriptCore 0x2581b807
5 JavaScriptCore 0x2581b7a1
6 libsystem_pthread.dylib 0x35e4c873
7 libsystem_pthread.dylib 0x35e4c7e7
8 libsystem_pthread.dylib 0x35e4a740
Thread 14 (com.apple.coremedia.player.async):
0 libsystem_kernel.dylib 0x35d961b4
1 MediaToolbox 0x25c3479d
2 CoreMedia 0x2485ab41
3 libsystem_pthread.dylib 0x35e4c873
4 libsystem_pthread.dylib 0x35e4c7e7
5 libsystem_pthread.dylib 0x35e4a740
Thread 15 (WebCore: LocalStorage):
0 libsystem_kernel.dylib 0x35da9a60
1 libsystem_pthread.dylib 0x35e4ccb1
2 JavaScriptCore 0x25471577
3 WebKitLegacy 0x33ad8f7d
4 WebKitLegacy 0x33ad889d
5 JavaScriptCore 0x2546dd51
6 JavaScriptCore 0x2546dcaf
7 libsystem_pthread.dylib 0x35e4c873
8 libsystem_pthread.dylib 0x35e4c7e7
9 libsystem_pthread.dylib 0x35e4a740
Thread 16 :
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 TTSSpeechBundle 0x3512009
6 libsystem_pthread.dylib 0x35e4c873
7 libsystem_pthread.dylib 0x35e4c7e7
8 libsystem_pthread.dylib 0x35e4a740
Thread 17 (com.apple.coreaudio.AQClient):
0 libsystem_kernel.dylib 0x35d96164
1 CoreFoundation 0x24053905
2 CoreFoundation 0x24051c8d
3 CoreFoundation 0x23fa5249
4 CoreFoundation 0x23fa5035
5 AudioToolbox 0x2342c5ad
6 AudioToolbox 0x2341551f
7 libsystem_pthread.dylib 0x35e4c873
8 libsystem_pthread.dylib 0x35e4c7e7
9 libsystem_pthread.dylib 0x35e4a740
Thread 18 :
0 libsystem_kernel.dylib 0x35daa92c
1 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
Thread 19 (com.apple.coremedia.player.async):
0 libsystem_kernel.dylib 0x35d961b4
1 MediaToolbox 0x25c3479d
2 CoreMedia 0x2485ab41
3 libsystem_pthread.dylib 0x35e4c873
4 libsystem_pthread.dylib 0x35e4c7e7
5 libsystem_pthread.dylib 0x35e4a740
Thread 21 :
0 libsystem_kernel.dylib 0x35daa92c
1 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
Thread 22 :
0 libsystem_kernel.dylib 0x35daa92c
1 libsystem_pthread.dylib 0x35e4a734 start_wqthread + 8
At a minimum, this is UI code that is definitely running on a background queue:
if self.chartsSwitch.on {
I assume this line is as well:
chart["title"] = self.songTitleText.text
You cannot access UIKit on a background queue. You must collect all this data on the main queue, and pass it to things that run in the background.
I assume this entire block is actually on a background queue (since you load an NSData from an URL which should not be done on the main queue). In that case, this is a mutating UI change on a background queue:
indicator.startAnimation()
I wouldn't be surprised if there is more of this. You have to separate your model code and networking code from your UI code.
Related
From iOS 12.3 and above iOS versions we are getting AudioToolBox crashes, we do not know why these crashes are happening. We have Crashlytics Crash report but we are not able to debug the issue with the help of Crashlytics crash report.
I have attached the Crashlytics crash report.
Background of our application :
Our application streams the video using RTSP url and VLC mobile kit. even when the application is sent to the background the streaming continues and the stream will try to reconnect when the stream disconnects due to some error.
While streaming the video in the background we show the user a red bar on the user iPhone.
We tried different scenarios to reproduce the issue some of them are
1) we checked if it is happening when we receive a mobile call when the user is streaming
2) We checked if interruptions from other streaming applications are causing the issue
3) We checked if Siri or getting a face time call is creating the crash
We tried all the above mentioned in debugging, as well as release, builds
find the crash report details​ below
Jul 2019 11:18:45 GMT
# Date: 2019-07-04T10:59:00Z
# OS Version: 12.3.1 (16F203)
# Device: iPhone 8
# RAM Free: 9.6%
# Disk Free: 53.9%
#22. Crashed: com.apple.coreaudio.auremoteio
0 AudioToolbox 0x18c489058 SampleRateConverter::SetProperty(unsigned int, unsigned int, void const*) + 192
1 AudioToolbox 0x18c669580 AudioConverterSetProperty + 96
2 AudioToolbox 0x18c51c638 AUConverterBase::SetupConverter(unsigned int, bool) + 1340
3 AudioToolbox 0x18c3fe948 AURemoteIO::SetupConverter(unsigned int, bool) + 224
4 AudioToolbox 0x18c51aed8 AUConverterBase::SetupAllConverters(bool, unsigned int) + 104
5 AudioToolbox 0x18c400a0c AURemoteIO::IOFormatsChanged(int) + 1420
6 AudioToolbox 0x18c402afc __AURIOCallbackReceiver_IOFormatsChanged_block_invoke + 96
7 libdispatch.dylib 0x187f80a38 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x187f817d4 _dispatch_client_callout + 16
9 libdispatch.dylib 0x187f5cdec _dispatch_lane_serial_drain$VARIANT$armv81 + 548
10 libdispatch.dylib 0x187f5d92c _dispatch_lane_invoke$VARIANT$armv81 + 408
11 libdispatch.dylib 0x187f65e08 _dispatch_workloop_worker_thread + 584
12 libsystem_pthread.dylib 0x188161114 _pthread_wqthread + 304
13 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
--
#0. com.apple.main-thread
0 AppName 0x101169978 _gnutls_ext_deinit + 417 (extensions.c:417)
1 AppName 0x10116f750 _gnutls_global_deinit + 416 (global.c:416)
2 (Missing) 0x1032313c0 (Missing)
3 (Missing) 0x10321a7b8 (Missing)
4 libsystem_c.dylib 0x188038bb4 __cxa_finalize_ranges + 384
5 libsystem_c.dylib 0x188038ec4 exit + 24
6 UIKitCore 0x1b4e4ed2c -[UIApplication terminateWithSuccess] + 466
7 UIKitCore 0x1b470adb4 __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 + 344
8 UIKitCore 0x1b4e52dec _runAfterCACommitDeferredBlocks + 296
9 UIKitCore 0x1b4e4193c _cleanUpAfterCAFlushAndRunDeferredBlocks + 352
10 UIKitCore 0x1b4e6e7ac _afterCACommitHandler + 116
11 CoreFoundation 0x1884d25f8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
12 CoreFoundation 0x1884cd320 __CFRunLoopDoObservers + 412
13 CoreFoundation 0x1884cd89c __CFRunLoopRun + 1228
14 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
15 GraphicsServices 0x18a6cd79c GSEventRunModal + 104
16 UIKitCore 0x1b4e47978 UIApplicationMain + 212
17 AppName 0x1007fd1f4 main + 24 (AppDelegate.swift:24)
18 libdyld.dylib 0x187f928e0 start + 4
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 CoreFoundation 0x1884d2a10 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1884cd920 __CFRunLoopRun + 1360
4 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
5 Foundation 0x188e9afac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x188e9ae3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKitCore 0x1b4f2d494 -[UIEventFetcher threadMain] + 136
8 Foundation 0x188fc76a4 __NSThread__start__ + 984
9 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
10 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
11 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#2. GAIThread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 CoreFoundation 0x1884d2a10 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1884cd920 __CFRunLoopRun + 1360
4 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
5 Foundation 0x188e9afac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x188ed646c -[NSRunLoop(NSRunLoop) run] + 88
7 AppName 0x100bc9d14 +[GAI threadMain:] + 4345896212
8 Foundation 0x188fc76a4 __NSThread__start__ + 984
9 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
10 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
11 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#3. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 CoreFoundation 0x1884db6f4 __CFSocketManager + 620
2 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
3 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
4 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#4. com.twitter.crashlytics.ios.MachExceptionServer
0 AppName 0x100aded58 CLSProcessRecordAllThreads + 4344933720
1 AppName 0x100adf140 CLSProcessRecordAllThreads + 4344934720
2 AppName 0x100ace9bc CLSHandler + 4344867260
3 AppName 0x100ac9d9c CLSMachExceptionServer + 4344847772
4 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
5 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
6 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#5. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 CoreFoundation 0x1884d2a10 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1884cd920 __CFRunLoopRun + 1360
4 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
5 AVFAudio 0x18e3b5334 GenericRunLoopThread::Entry(void*) + 156
6 AVFAudio 0x18e3dfc60 CAPThread::Entry(CAPThread*) + 88
7 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
8 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
9 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#6. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 CoreFoundation 0x1884d2a10 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1884cd920 __CFRunLoopRun + 1360
4 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
5 CFNetwork 0x188ae674c -[__CoreSchedulingSetRunnable runForever] + 216
6 Foundation 0x188fc76a4 __NSThread__start__ + 984
7 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
8 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
9 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#7. Thread
0 libsystem_kernel.dylib 0x1880dffd8 poll + 8
1 CustomSDK 0x103661de8 _lws_plat_service_tsi + 236
2 CustomSDK 0x1036a3554 websocket_worker + 60
3 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
4 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
5 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#8. Thread
0 libsystem_kernel.dylib 0x1880de9d4 __ulock_wait + 8
1 libdispatch.dylib 0x187f50c20 _dispatch_ulock_wait + 56
2 libdispatch.dylib 0x187f50d58 _dispatch_thread_event_wait_slow$VARIANT$armv81 + 48
3 libdispatch.dylib 0x187f628a8 __DISPATCH_WAIT_FOR_QUEUE__ + 336
4 libdispatch.dylib 0x187f624a8 _dispatch_sync_f_slow + 140
5 AppName 0x100c397e0 -[VLCEventManager startEventLoop] + 220 (VLCEventManager.m:220)
6 AppName 0x100c3916c EventDispatcherMainLoop + 97 (VLCEventManager.m:97)
7 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
8 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
9 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#9. Thread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 CoreFoundation 0x1884d2a10 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1884cd920 __CFRunLoopRun + 1360
4 CoreFoundation 0x1884cd0b0 CFRunLoopRunSpecific + 436
5 CustomSDK 0x103634e60 -[P2PCamera worker] + 88
6 Foundation 0x188fc76a4 __NSThread__start__ + 984
7 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
8 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
9 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#10. Thread
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 CustomSDK 0x103776534 pj_sock_select + 84
2 CustomSDK 0x103772340 pj_ioqueue_poll + 196
3 CustomSDK 0x103699bc4 _pjice_worker_thread + 172
4 CustomSDK 0x10377329c thread_main + 84
5 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
6 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
7 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#11. Thread
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 CustomSDK 0x103776534 pj_sock_select + 84
2 CustomSDK 0x103772340 pj_ioqueue_poll + 196
3 CustomSDK 0x103699bc4 _pjice_worker_thread + 172
4 CustomSDK 0x10377329c thread_main + 84
5 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
6 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
7 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#12. Thread
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 CustomSDK 0x103776534 pj_sock_select + 84
2 CustomSDK 0x103772340 pj_ioqueue_poll + 196
3 CustomSDK 0x103699bc4 _pjice_worker_thread + 172
4 CustomSDK 0x10377329c thread_main + 84
5 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
6 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
7 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#13. Thread
0 libsystem_kernel.dylib 0x1880de400 __semwait_signal + 8
1 libsystem_c.dylib 0x18805556c nanosleep + 212
2 libsystem_c.dylib 0x18805536c sleep + 44
3 CustomSDK 0x103697a08 _port_forward_conn_thread + 132
4 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
5 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
6 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#14. Thread
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 CustomSDK 0x103697e88 _port_forward_io_thread + 740
2 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
3 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
4 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#15. Thread
0 libsystem_kernel.dylib 0x1880de328 __select + 8
1 AppName 0x101be7740 BasicTaskScheduler::SingleStep(unsigned int) + 91 (BasicTaskScheduler.cpp:91)
2 AppName 0x101be70d0 BasicTaskScheduler0::doEventLoop(char volatile*) + 79 (BasicTaskScheduler0.cpp:79)
3 AppName 0x101d6086c Demux(demux_t*) + 1420 (live555.cpp:1420)
4 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
5 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#16. Thread
0 libsystem_kernel.dylib 0x1880ddee4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18815d4d8 _pthread_cond_wait$VARIANT$armv81 + 680
2 AppName 0x100cc08a8 vlc_cond_timedwait + 263 (thread.c:263)
3 AppName 0x100cbff40 vlc_timer_thread + 85 (timer.c:85)
4 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
5 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
6 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#17. Thread
0 libsystem_kernel.dylib 0x1880d3130 semaphore_wait_trap + 8
1 AppName 0x100c93ad4 aout_DecPlay + 212 (dec.c:212)
2 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
3 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#18. Thread
0 libsystem_kernel.dylib 0x1880ddee4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18815d4a4 _pthread_cond_wait$VARIANT$armv81 + 628
2 AppName 0x100c78220 DecoderThread + 1596 (decoder.c:1596)
3 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
4 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#19. AURemoteIO::IOThread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 AudioToolbox 0x18c401890 AURemoteIO::IOThread::Run() + 256
3 AudioToolbox 0x18c406800 AURemoteIO::IOThread::Entry(void*) + 76
4 AudioToolbox 0x18c7d94f8 CAPThread::Entry(CAPThread*) + 88
5 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
6 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
7 libsystem_pthread.dylib 0x188163cdc thread_start + 4
#20. Thread
0 libsystem_kernel.dylib 0x1880deb74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1881611f8 _pthread_wqthread + 532
2 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#21. Thread
0 libsystem_kernel.dylib 0x1880deb74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x188161138 _pthread_wqthread + 340
2 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#22. Crashed: com.apple.coreaudio.auremoteio
0 AudioToolbox 0x18c489058 SampleRateConverter::SetProperty(unsigned int, unsigned int, void const*) + 192
1 AudioToolbox 0x18c669580 AudioConverterSetProperty + 96
2 AudioToolbox 0x18c51c638 AUConverterBase::SetupConverter(unsigned int, bool) + 1340
3 AudioToolbox 0x18c3fe948 AURemoteIO::SetupConverter(unsigned int, bool) + 224
4 AudioToolbox 0x18c51aed8 AUConverterBase::SetupAllConverters(bool, unsigned int) + 104
5 AudioToolbox 0x18c400a0c AURemoteIO::IOFormatsChanged(int) + 1420
6 AudioToolbox 0x18c402afc __AURIOCallbackReceiver_IOFormatsChanged_block_invoke + 96
7 libdispatch.dylib 0x187f80a38 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x187f817d4 _dispatch_client_callout + 16
9 libdispatch.dylib 0x187f5cdec _dispatch_lane_serial_drain$VARIANT$armv81 + 548
10 libdispatch.dylib 0x187f5d92c _dispatch_lane_invoke$VARIANT$armv81 + 408
11 libdispatch.dylib 0x187f65e08 _dispatch_workloop_worker_thread + 584
12 libsystem_pthread.dylib 0x188161114 _pthread_wqthread + 304
13 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#23. Thread
0 libsystem_kernel.dylib 0x1880deb74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x188161138 _pthread_wqthread + 340
2 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#24. Thread
0 libsystem_kernel.dylib 0x1880deb74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1881611f8 _pthread_wqthread + 532
2 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#25. Thread
0 libsystem_kernel.dylib 0x1880deb74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1881611f8 _pthread_wqthread + 532
2 libsystem_pthread.dylib 0x188163cd4 start_wqthread + 4
#26. AURemoteIO::IOThread
0 libsystem_kernel.dylib 0x1880d30f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1880d25a0 mach_msg + 72
2 AudioToolbox 0x18c401890 AURemoteIO::IOThread::Run() + 256
3 AudioToolbox 0x18c406800 AURemoteIO::IOThread::Entry(void*) + 76
4 AudioToolbox 0x18c7d94f8 CAPThread::Entry(CAPThread*) + 88
5 libsystem_pthread.dylib 0x1881602c0 _pthread_body + 128
6 libsystem_pthread.dylib 0x188160220 _pthread_start + 44
7 libsystem_pthread.dylib 0x188163cdc thread_start + 4
I have a crash once in every 1000 to 2000 sessions in our app and I can't figure out what to do about it.
Is that an Apple iOS crash where I cant do anything about it?
I am using SDWebImage pod in my project, maybe it is that?
here is the crash log:
Thread 0 Crashed:
0 CoreGraphics 0x182cfa59c ERROR_CGDataProvider_BufferIsNotReadable + 12
1 CoreGraphics 0x000000018582e2c0 CGDataProviderRetainBytePtr + 216
2 QuartzCore 0x0000000187f00048 CA::Render::(anonymous namespace)::create_image_from_image_data() + 196
3 QuartzCore 0x0000000187efe1a0 CA::Render::create_image() + 900
4 QuartzCore 0x0000000187f00e60 CA::Render::copy_image() + 472
5 QuartzCore 0x0000000187f01228 CA::Render::prepare_image() + 20
6 QuartzCore 0x00000001880101a8 CA::Layer::prepare_commit() + 332
7 QuartzCore 0x0000000187f7245c CA::Context::commit_transaction() + 576
8 QuartzCore 0x0000000187f99b90 CA::Transaction::commit() + 540
9 QuartzCore 0x0000000187f9a9d0 CA::Transaction::observer_callback() + 92
9
10 CoreFoundation 0x0000000183f65edc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation 0x0000000183f63894 __CFRunLoopDoObservers + 412
12 CoreFoundation 0x0000000183e83e78 CFRunLoopRunSpecific + 468
13 GraphicsServices 0x0000000185d30f84 GSEventRunModal + 100
14 UIKit 0x000000018d50367c UIApplicationMain + 236
15 GOTit 0x0000000100bb8e10 main (main.m:18)
16 libdyld.dylib 0x00000001839a056c start + 4
- Full crash report:
Thread 1 name: gputools.smt_poll.0x1c003bba0
Thread 1:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 libsystem_c.dylib 0x00000001825dce90 usleep + 64
2 GPUToolsCore 0x0000000104b75f0c
3 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
4 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
5 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 2 name: gputools.smt_poll.0x1c003fa20
Thread 2:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 libsystem_c.dylib 0x00000001825dce90 usleep + 64
2 GPUToolsCore 0x0000000104b75f0c
3 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
4 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
5 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001826a3568 mach_msg_trap + 8
1 CoreFoundation 0x0000000182b5a308 __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x0000000182b57ed4 __CFRunLoopRun + 1424
3 CoreFoundation 0x0000000182a77e58 CFRunLoopRunSpecific + 436
4 Foundation 0x00000001834ad594 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
5 Foundation 0x00000001834cc9ac -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
6 UIKit 0x000000018cd367b8 -[UIEventFetcher threadMain] + 136
7 Foundation 0x00000001835af0f4 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
9 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
10 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 4 name: GAIThread
Thread 4:
0 libsystem_kernel.dylib 0x00000001826a3568 mach_msg_trap + 8
1 CoreFoundation 0x0000000182b5a308 __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x0000000182b57ed4 __CFRunLoopRun + 1424
3 CoreFoundation 0x0000000182a77e58 CFRunLoopRunSpecific + 436
4 Foundation 0x00000001834ad594 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
5 Foundation 0x00000001834ff56c -[NSRunLoop(NSRunLoop) run] + 88
6 GOTit 0x00000001033626fc
7 Foundation 0x00000001835af0f4 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
9 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
10 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x00000001826a3568 mach_msg_trap + 8
1 CoreFoundation 0x0000000182b5a308 __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x0000000182b57ed4 __CFRunLoopRun + 1424
3 CoreFoundation 0x0000000182a77e58 CFRunLoopRunSpecific + 436
4 CFNetwork 0x0000000183367128 -[__CoreSchedulingSetRunnable runForever] + 780
5 Foundation 0x00000001835af0f4 __NSThread__start__ + 996
6 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
7 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
8 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x00000001826a3568 mach_msg_trap + 8
1 CoreFoundation 0x0000000182b5a308 __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x0000000182b57ed4 __CFRunLoopRun + 1424
3 CoreFoundation 0x0000000182a77e58 CFRunLoopRunSpecific + 436
4 GOTit 0x00000001031af888
5 Foundation 0x00000001835af0f4 __NSThread__start__ + 996
6 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
7 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
8 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001826c40f0 __psynch_cvwait + 8
1 libc++.1.dylib 0x0000000181d7bea4 std::__1::condition_variable::wait() + 24
2 JavaScriptCore 0x0000000189f1bf2c std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >() + 96
3 JavaScriptCore 0x0000000189f1be54 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 172
4 JavaScriptCore 0x0000000189f1c1b8 std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >() + 44
5 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
6 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
7 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 8 name: WebThread
Thread 8:
0 libsystem_kernel.dylib 0x00000001826a3568 mach_msg_trap + 8
1 CoreFoundation 0x0000000182b5a308 __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x0000000182b57ed4 __CFRunLoopRun + 1424
3 CoreFoundation 0x0000000182a77e58 CFRunLoopRunSpecific + 436
4 WebCore 0x000000018a9e8a34 RunWebThread() + 560
5 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
6 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
7 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 Foundation 0x00000001835ae2a8 +[NSThread sleepForTimeInterval:] + 136
2 GOTit 0x000000010316dd2c
3 Foundation 0x00000001835af0f4 __NSThread__start__ + 996
4 libsystem_pthread.dylib 0x00000001827d82b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x00000001827d8180 _pthread_body + 0
6 libsystem_pthread.dylib 0x00000001827d6b74 thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x00000001826a35a4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000104a9dc0c
2 GOTit 0x0000000102ba8290
3 GOTit 0x0000000102ba8810
4 GOTit 0x0000000102b135c8
5 GOTit 0x00000001028c4888
6 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
7 GOTit 0x0000000102b13b8c
8 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
9 GOTit 0x0000000102b14be8
10 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
11 GOTit 0x0000000102a785c8
12 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
13 GOTit 0x0000000102a7cdbc
14 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
15 GOTit 0x0000000102b81444
16 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
17 GOTit 0x0000000102ba5354
18 libobjc.A.dylib 0x0000000181df6ef4 object_cxxDestructFromClass() + 148
19 libobjc.A.dylib 0x0000000181e04638 objc_destructInstance + 88
20 libobjc.A.dylib 0x0000000181e04690 object_dispose + 16
21 GOTit 0x0000000102bac7e8
22 CFNetwork 0x00000001832edff4 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.207 + 76
23 Foundation 0x0000000183589ba0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 Foundation 0x00000001834c9894 -[NSBlockOperation main] + 72
25 Foundation 0x00000001834b94c4 -[__NSOperationInternal _start:] + 848
26 libdispatch.dylib 0x0000000104a9528c
27 libdispatch.dylib 0x0000000104aa19e4
28 libdispatch.dylib 0x0000000104a9528c
29 libdispatch.dylib 0x0000000104aa19e4
30 libdispatch.dylib 0x0000000104aa18a4
31 Foundation 0x000000018358b878 __NSOQSchedule_f + 376
32 libdispatch.dylib 0x0000000104a9528c
33 libdispatch.dylib 0x0000000104aa2678
34 libdispatch.dylib 0x0000000104aa0f08
35 libdispatch.dylib 0x0000000104aa69d0
36 libdispatch.dylib 0x0000000104aa66f4
37 libsystem_pthread.dylib 0x00000001827d706c _pthread_wqthread + 1268
38 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x00000001826a35a4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000104a9dc0c
2 GOTit 0x0000000102ba8290
3 GOTit 0x0000000102ba8810
4 GOTit 0x0000000102b135c8
5 GOTit 0x00000001028c4888
6 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
7 GOTit 0x0000000102b13b8c
8 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
9 GOTit 0x0000000102b14be8
10 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
11 GOTit 0x0000000102a785c8
12 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
13 GOTit 0x0000000102a7cdbc
14 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
15 GOTit 0x0000000102b81444
16 libsystem_blocks.dylib 0x00000001825cfa60 _Block_release + 160
17 GOTit 0x0000000102ba5354
18 libobjc.A.dylib 0x0000000181df6ef4 object_cxxDestructFromClass() + 148
19 libobjc.A.dylib 0x0000000181e04638 objc_destructInstance + 88
20 libobjc.A.dylib 0x0000000181e04690 object_dispose + 16
21 GOTit 0x0000000102bac7e8
22 CFNetwork 0x00000001832edff4 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.207 + 76
23 Foundation 0x0000000183589ba0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 Foundation 0x00000001834c9894 -[NSBlockOperation main] + 72
25 Foundation 0x00000001834b94c4 -[__NSOperationInternal _start:] + 848
26 libdispatch.dylib 0x0000000104a9528c
27 libdispatch.dylib 0x0000000104aa19e4
28 libdispatch.dylib 0x0000000104a9528c
29 libdispatch.dylib 0x0000000104aa19e4
30 libdispatch.dylib 0x0000000104aa18a4
31 Foundation 0x000000018358b878 __NSOQSchedule_f + 376
32 libdispatch.dylib 0x0000000104a9528c
33 libdispatch.dylib 0x0000000104aa2678
34 libdispatch.dylib 0x0000000104aa0f08
35 libdispatch.dylib 0x0000000104aa69d0
36 libdispatch.dylib 0x0000000104aa66f4
37 libsystem_pthread.dylib 0x00000001827d706c _pthread_wqthread + 1268
38 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 12:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 13:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 14:
0 libobjc.A.dylib 0x0000000181e04614 objc_destructInstance + 52
1 libdispatch.dylib 0x0000000104a98f04
2 libdispatch.dylib 0x0000000104a972a0
3 libdispatch.dylib 0x0000000104aa3d9c
4 libdispatch.dylib 0x0000000104a987ec
5 libdispatch.dylib 0x0000000104aa4f6c
6 libdispatch.dylib 0x0000000104aac020
7 libsystem_pthread.dylib 0x00000001827d6f1c _pthread_wqthread + 932
8 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 15:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 16:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 libsystem_c.dylib 0x0000000182645f34 sleep + 44
2 GOTit 0x00000001028c21f4
3 libdispatch.dylib 0x0000000104a952cc
4 libdispatch.dylib 0x0000000104a9528c
5 libdispatch.dylib 0x0000000104aa3f80
6 libdispatch.dylib 0x0000000104a987ec
7 libdispatch.dylib 0x0000000104aa4f6c
8 libdispatch.dylib 0x0000000104aac020
9 libsystem_pthread.dylib 0x00000001827d6f1c _pthread_wqthread + 932
10 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 17:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 18:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 libsystem_c.dylib 0x0000000182645f34 sleep + 44
2 GOTit 0x00000001028c21f4
3 libdispatch.dylib 0x0000000104a952cc
4 libdispatch.dylib 0x0000000104a9528c
5 libdispatch.dylib 0x0000000104aa3f80
6 libdispatch.dylib 0x0000000104a987ec
7 libdispatch.dylib 0x0000000104aa4f6c
8 libdispatch.dylib 0x0000000104aac020
9 libsystem_pthread.dylib 0x00000001827d6f1c _pthread_wqthread + 932
10 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 19:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 20:
0 libsystem_kernel.dylib 0x00000001826c460c __semwait_signal + 8
1 libsystem_c.dylib 0x0000000182645f34 sleep + 44
2 GOTit 0x00000001028c21f4
3 libdispatch.dylib 0x0000000104a952cc
4 libdispatch.dylib 0x0000000104a9528c
5 libdispatch.dylib 0x0000000104aa3f80
6 libdispatch.dylib 0x0000000104a987ec
7 libdispatch.dylib 0x0000000104aa4f6c
8 libdispatch.dylib 0x0000000104aac020
9 libsystem_pthread.dylib 0x00000001827d6f1c _pthread_wqthread + 932
10 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 21:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 22:
0 libsystem_kernel.dylib 0x00000001826c3e5c __open + 8
1 Foundation 0x00000001834c6be8 _NSReadBytesFromFileWithExtendedAttributes + 132
2 Foundation 0x00000001835405a8 -[NSData(NSData) initWithContentsOfFile:options:maxLength:error:] + 184
3 Foundation 0x00000001834cb6ec +[NSData(NSData) dataWithContentsOfFile:options:error:] + 68
4 GOTit 0x0000000102f181dc
5 GOTit 0x0000000102f18780
6 GOTit 0x0000000102f18eb0
7 libdispatch.dylib 0x0000000104a952cc
8 libdispatch.dylib 0x0000000104a9528c
9 libdispatch.dylib 0x0000000104aa3f80
10 libdispatch.dylib 0x0000000104a987ec
11 libdispatch.dylib 0x0000000104aa4f6c
12 libdispatch.dylib 0x0000000104aac020
13 libsystem_pthread.dylib 0x00000001827d6f1c _pthread_wqthread + 932
14 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 23:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 24:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 25:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 26:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 27:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 28:
0 libsystem_pthread.dylib 0x00000001827d6b68 start_wqthread + 0
Thread 29:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
Thread 30:
0 libsystem_kernel.dylib 0x00000001826c4d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001827d6b6c start_wqthread + 4
I'm getting the same thing. Here's some additional info.
This crash happens after my app captures an image, crops it, and rescales it.
The crash info showed that the user only had 6% memory available.
I suspect that something in my image processing pipeline fails silently, possibly due to running out of memory, and then produces a corrupt UIImage. Then when I try to draw it it crashes.
In my case I added a bunch of guards and logging statements so that when the crash happens again I'll hopefully get more info and be able to post a workaround.
#chris-garrett pointed me in the right direction and I was able to greatly mitigate the issue by fixing memory leaks.
Users who are now getting this error are people who spend at least 30 minutes on the app, which is pretty uncommon. Also, the fact that it affects mostly big screens like iPhone 7/6s/8 Plus, iPhone X, where more memory is needed to render images would corroborate that theory
What you should do to solve this, is to check the memory while debugging. If it increases gradually when repeating the same actions, there's certainly something for you to fix.
There are many ways to find leaks in your app, I'm not a big fan of Instruments, but you can find many tutorials online if needed. Another option is to use memory graph. I wrote previously an article on how to use memory graph here.
I'm getting some interesting crashes on iOS 10 only when saving into user defaults. Has anyone else seen a similar crash? Is this an iOS 10 bug or a change to the SDK we should prepare for?
+ (BOOL) saveObject:(NSObject<NSCoding>*)obj forKey:(NSString*)key{
if(key == nil || [key length] == 0) {
return NO;
}
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if(obj == nil) {
[defaults setObject:nil forKey:key];
} else {
NSData *myEncodedObject = [NSKeyedArchiver archivedDataWithRootObject:obj];
[defaults setObject:myEncodedObject forKey:key];
}
[defaults synchronize];
return YES;
}
#-1. com.apple.main-thread
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 CoreFoundation 0x1844ade64 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1844aba80 __CFRunLoopRun + 1132
4 CoreFoundation 0x1843de2e4 CFRunLoopRunSpecific + 292
5 GraphicsServices 0x185db715c GSEventRunModal + 180
6 UIKit 0x18a2f26fc -[UIApplication _run] + 692
7 UIKit 0x18a2ed438 UIApplicationMain + 208
8 MyApp 0x1000c1db4 main (main.m:16)
9 libdispatch.dylib 0x183f80600 (Missing)
#0. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 CoreFoundation 0x1844ade64 <redacted> + 192
3 CoreFoundation 0x1844aba80 <redacted> + 1132
4 CoreFoundation 0x1843de2e4 CFRunLoopRunSpecific + 292
5 Foundation 0x184e8893c <redacted> + 304
6 Foundation 0x184ea9460 <redacted> + 96
7 UIKit 0x18ac28134 <redacted> + 136
8 Foundation 0x184f73b9c <redacted> + 1052
9 libsystem_pthread.dylib 0x1841549bc <redacted> + 240
10 libsystem_pthread.dylib 0x1841548cc _pthread_start + 274
11 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#1. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 CoreFoundation 0x1844ade64 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1844aba80 __CFRunLoopRun + 1132
4 CoreFoundation 0x1843de2e4 CFRunLoopRunSpecific + 292
5 CFNetwork 0x184b87a18 +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6 Foundation 0x184f73b9c __NSThread__start__ + 1052
7 libsystem_pthread.dylib 0x1841549bc _pthread_body + 240
8 libsystem_pthread.dylib 0x1841548cc _pthread_body + 274
9 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#2. com.twitter.crashlytics.ios.MachExceptionServer
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 MyApp 0x10027c4e0 CLSMachExceptionServer + 4298097888
3 libsystem_pthread.dylib 0x1841549bc _pthread_body + 240
4 libsystem_pthread.dylib 0x1841548cc _pthread_body + 274
5 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#3. GAIThread
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 CoreFoundation 0x1844ade64 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1844aba80 __CFRunLoopRun + 1132
4 CoreFoundation 0x1843de2e4 CFRunLoopRunSpecific + 292
5 Foundation 0x184e8893c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x184edd214 -[NSRunLoop(NSRunLoop) run] + 88
7 MyApp 0x100104964 +[GAI threadMain:] + 4296558948
8 Foundation 0x184f73b9c __NSThread__start__ + 1052
9 libsystem_pthread.dylib 0x1841549bc _pthread_body + 240
10 libsystem_pthread.dylib 0x1841548cc _pthread_body + 274
11 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#4. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x18407334c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1840731bc mach_msg + 72
2 CoreFoundation 0x1844ade64 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x1844aba80 __CFRunLoopRun + 1132
4 CoreFoundation 0x1843de2e4 CFRunLoopRunSpecific + 292
5 AVFAudio 0x19d7a8e60 GenericRunLoopThread::Entry(void*) + 164
6 AVFAudio 0x19d7c6804 CAPThread::Entry(CAPThread*) + 84
7 libsystem_pthread.dylib 0x1841549bc _pthread_body + 240
8 libsystem_pthread.dylib 0x1841548cc _pthread_body + 274
9 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#5. Thread
0 libsystem_kernel.dylib 0x184090df8 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x184153b78 _pthread_cond_wait + 692
2 Foundation 0x184e93668 -[NSCondition waitUntilDate:] + 340
3 MyApp 0x10008e5e0 -[VideoRepository queueThreadStart] (VideoRepository.m:145)
4 Foundation 0x184f73b9c __NSThread__start__ + 1052
5 libsystem_pthread.dylib 0x1841549bc _pthread_body + 240
6 libsystem_pthread.dylib 0x1841548cc _pthread_body + 274
7 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
#6. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x184091218 __select + 8
1 CoreFoundation 0x1844b4d08 <redacted> + 640
2 libsystem_pthread.dylib 0x1841549bc <redacted> + 240
3 libsystem_pthread.dylib 0x1841548cc _pthread_start + 274
4 libsystem_pthread.dylib 0x184151ed8 thread_start + 4
Crashed: com.apple.root.user-initiated-qos
0 libsystem_kernel.dylib 0x184090ff0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1841564c0 pthread_kill + 112
2 libsystem_c.dylib 0x184006448 abort + 140
3 libsystem_malloc.dylib 0x1840d4eec _nano_vet_and_size_of_live + 330
4 libsystem_malloc.dylib 0x1840d62d4 nano_free + 220
5 CoreFoundation 0x1845338c4 __CFBasicHashDrain + 380
6 CoreFoundation 0x1844afbec _CFRelease + 216
7 CoreFoundation 0x184475ba8 __CFBinaryPlistWriteOrPresize + 556
8 Foundation 0x184ee7428 -[NSKeyedArchiver finishEncoding] + 588
9 Foundation 0x184eecb14 +[NSKeyedArchiver archivedDataWithRootObject:] + 184
10 MyApp 0x10009f620 +[Settings saveObject:forKey:] (Settings.m:141)
11 MyApp 0x100091aa8 +[AuxCaster indexCategoriesArray:] (AuxCaster.m:428)
12 MyApp 0x1000c9084 -[ChannelPage addRemoveSpolightIndexes] (ChannelPage.m:265)
13 MyApp 0x1000c9710 __47-[ChannelPage preloadCategoriesMultipleThreads]_block_invoke.241 (ChannelPage.m:307)
14 libdispatch.dylib 0x183f49134 _dispatch_call_block_and_release + 24
15 libdispatch.dylib 0x183f490f4 _dispatch_client_callout + 16
16 libdispatch.dylib 0x183f5d07c _dispatch_root_queue_drain + 1032
17 libdispatch.dylib 0x183f5cc14 _dispatch_worker_thread3 + 124
18 libsystem_pthread.dylib 0x1841523d8 _pthread_wqthread + 1276
19 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#8. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18415247c _pthread_wqthread + 1440
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#9. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18415247c _pthread_wqthread + 1440
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#10. Thread
0 libsystem_pthread.dylib 0x184151ecc pthread_workqueue_addthreads_np + 126
#11. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18415247c _pthread_wqthread + 1440
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#12. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x184152298 _pthread_wqthread + 956
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#13. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18415247c _pthread_wqthread + 1440
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
#14. Thread
0 libsystem_kernel.dylib 0x184091a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18415247c _pthread_wqthread + 1440
2 libsystem_pthread.dylib 0x184151ed0 start_wqthread + 4
My app sometimes crash if it has been in the background for a while and I bring it back into the foreground. I would much appreciate any help on the matter. The log say that the crash is triggered by tread 5. It seems to have something to do with resuming the Meteor session. using a token?
Any help would be very much appreciated. Thank You !
Hardware Model: iPhone7,2
Process: MyApp [1971]
Path: /private/var/mobile/Containers/Bundle/Application/801F312F-A114-4EBC-81B3-5DDC8AEA76BC/MyApp.app/MyApp
Identifier: MyApp
Version: 4 (1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-03-30 18:59:31.31 +0200
Launch Time: 2016-03-30 18:41:24.24 +0200
OS Version: iOS 9.0.2 (13A452)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 5
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x182464f5c __exceptionPreprocess + 124
1 libobjc.A.dylib 0x19705bf80 objc_exception_throw + 56
2 CoreFoundation 0x182464e2c +[NSException raise:format:arguments:] + 108
3 Foundation 0x183353f3c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 Meteor 0x100b3c910 -[METDDPConnection sendMessage:] (METDDPConnection.m:72)
5 Meteor 0x100b36f18 -[METDDPClient sendMessage:] (METDDPClient.m:275)
6 Meteor 0x100b3a40c -[METDDPClient sendMethodMessageForMethodInvocation:] (METDDPClient.m:609)
7 Meteor 0x100b4ccb0 -[METMethodInvocation start] (METMethodInvocation.m:81)
8 Foundation 0x183389c20 __NSOQSchedule_f + 224
9 libdispatch.dylib 0x197855770 _dispatch_client_callout + 16
10 libdispatch.dylib 0x19786175c _dispatch_queue_drain + 864
11 libdispatch.dylib 0x197859274 _dispatch_queue_invoke + 464
12 libdispatch.dylib 0x19786362c _dispatch_root_queue_drain + 728
13 libdispatch.dylib 0x19786334c _dispatch_worker_thread3 + 112
14 libsystem_pthread.dylib 0x197a69478 _pthread_wqthread + 1092
15 libsystem_pthread.dylib 0x197a69028 start_wqthread + 4
Global Trace Buffer (reverse chronological seconds):
412.483308 CFNetwork 0x0000000181b699a4 TCP Conn 0x12f667c10 SSL Handshake DONE
412.625113 CFNetwork 0x0000000181b698b4 TCP Conn 0x12f667c10 starting SSL negotiation
412.625906 CFNetwork 0x0000000181c0b760 TCP Conn 0x12f667c10 complete. fd: 6, err: 0
412.625907 CFNetwork 0x0000000181c0cc8c TCP Conn 0x12f667c10 event 1. err: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x000000019706da6c weak_read_no_lock + 44
1 libobjc.A.dylib 0x000000019706da60 weak_read_no_lock + 32
2 libobjc.A.dylib 0x0000000197074984 objc_loadWeakRetained + 108
3 UIKit 0x00000001879fb6a4 -[UITextSelectionView interactionAssistant] + 24
4 UIKit 0x0000000187a025dc -[UITextSelectionView updateSelectionRects] + 128
5 UIKit 0x0000000187a02524 -[UITextSelectionView updateSelectionRectsIfNeeded] + 84
6 UIKit 0x0000000187f325f4 __51-[UITextSelectionView deferredUpdateSelectionRects]_block_invoke + 36
7 CoreFoundation 0x000000018241bc30 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
8 CoreFoundation 0x00000001824199d4 __CFRunLoopDoObservers + 372
9 CoreFoundation 0x0000000182419d1c __CFRunLoopRun + 696
10 CoreFoundation 0x0000000182348dc0 CFRunLoopRunSpecific + 384
11 GraphicsServices 0x000000018d49c088 GSEventRunModal + 180
12 UIKit 0x0000000187a22f44 UIApplicationMain + 204
13 MyApp 0x000000010016582c 0x1000b8000 + 710700
14 libdyld.dylib 0x00000001978868b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001979a459c kevent_qos + 8
1 libdispatch.dylib 0x0000000197868a04 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x000000019785793c _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x0000000197988c30 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000197988aac mach_msg + 72
2 CoreFoundation 0x000000018241c168 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182419e6c __CFRunLoopRun + 1032
4 CoreFoundation 0x0000000182348dc0 CFRunLoopRunSpecific + 384
5 Foundation 0x00000001832bc7ec -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 308
6 PocketSocket 0x0000000100bba2b4 -[PSWebSocketNetworkThread main] (PSWebSocketNetworkThread.m:64)
7 Foundation 0x00000001833a3138 __NSThread__start__ + 1000
8 libsystem_pthread.dylib 0x0000000197a6bb3c _pthread_body + 156
9 libsystem_pthread.dylib 0x0000000197a6baa0 _pthread_body + 0
10 libsystem_pthread.dylib 0x0000000197a69030 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x0000000197988c30 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000197988aac mach_msg + 72
2 CoreFoundation 0x000000018241c168 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182419e6c __CFRunLoopRun + 1032
4 CoreFoundation 0x0000000182348dc0 CFRunLoopRunSpecific + 384
5 CFNetwork 0x0000000181be6074 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 Foundation 0x00000001833a3138 __NSThread__start__ + 1000
7 libsystem_pthread.dylib 0x0000000197a6bb3c _pthread_body + 156
8 libsystem_pthread.dylib 0x0000000197a6baa0 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000197a69030 thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x00000001979a3408 __select + 8
1 CoreFoundation 0x00000001824226d0 __CFSocketManager + 648
2 libsystem_pthread.dylib 0x0000000197a6bb3c _pthread_body + 156
3 libsystem_pthread.dylib 0x0000000197a6baa0 _pthread_body + 0
4 libsystem_pthread.dylib 0x0000000197a69030 thread_start + 4
Thread 5 name: Dispatch queue: NSOperationQueue 0x12f57ff00 :: login((
{
resume = "dLJOlefqcSP3c8jFB6J4l_ZEnN6l_5UxpAlo1gUYBas";
}
)) (QOS
Thread 5 Crashed:
0 libsystem_kernel.dylib 0x00000001979a31e0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000197a6cf0c pthread_kill + 112
2 libsystem_c.dylib 0x0000000197916b78 abort + 140
3 libc++abi.dylib 0x00000001966d93f4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001966f5e98 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x000000019705c248 _objc_terminate() + 124
6 libc++abi.dylib 0x00000001966f2f44 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x00000001966f2fd0 std::set_new_handler(void (*)()) + 0
8 libobjc.A.dylib 0x000000019705c1a4 _destroyAltHandlerList + 0
9 libdispatch.dylib 0x0000000197855784 _dispatch_client_callout + 36
10 libdispatch.dylib 0x000000019786175c _dispatch_queue_drain + 864
11 libdispatch.dylib 0x0000000197859274 _dispatch_queue_invoke + 464
12 libdispatch.dylib 0x000000019786362c _dispatch_root_queue_drain + 728
13 libdispatch.dylib 0x000000019786334c _dispatch_worker_thread3 + 112
14 libsystem_pthread.dylib 0x0000000197a69478 _pthread_wqthread + 1092
15 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4**
Thread 6:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 14:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Thread 15:
0 libsystem_kernel.dylib 0x00000001979a3c0c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197a69538 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000197a69028 start_wqthread + 4
Whenever my app is resuming from lock screen in iOS7, it is getting crashed. The problem is coming mostly in iOS7 devices and it is happening only when the screen is getting locked out automatically. When the I unlock the screen and press any html div or button in the app, the app crashes.
I already tried the solution posted here -
Workaround for PhoneGap, EXC_BAD_ACCESS on getDeviceInfo . It doesn't work.
The Crash log is below -
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbe4008d4
Triggered by Thread: 3
Thread 0:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fcba __CFRunLoopRun + 858
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329042e6 GSEventRunModal + 134
7 UIKit 0x3047f840 UIApplicationMain + 1132
8 SkiWithMe 0x0005f646 0x3f000 + 132678
9 libdyld.dylib 0x384ecab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38590838 kevent64 + 24
1 libdispatch.dylib 0x384df0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x384d961e _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 Foundation 0x2e6054bc +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e67ac32 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 3 name: WebThread
Thread 3 Crashed:
0 WebCore 0x35b08dba WebCore::TimerBase::heapDeleteMin() + 30
1 WebCore 0x35b08ca2 WebCore::ThreadTimers::sharedTimerFiredInternal() + 90
2 WebCore 0x35b08c1e WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
3 CoreFoundation 0x2dc61e7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
4 CoreFoundation 0x2dc61a96 __CFRunLoopDoTimer + 790
5 CoreFoundation 0x2dc5fe1e __CFRunLoopRun + 1214
6 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
7 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
8 WebCore 0x35b970c0 RunWebThread(void*) + 416
9 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
10 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
11 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2cc395ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2cc2dafc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a07c pthread_cond_timedwait + 40
3 JavaScriptCore 0x2ebee55e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x2ebee38c JSC::BlockAllocator::blockFreeingThreadMain() + 88
5 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ed8caea JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x2ed8cb44 JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 Foundation 0x2e6055ba -[NSCondition wait] + 190
4 SkiWithMe 0x000f3564 0x3f000 + 738660
5 Foundation 0x2e67ac32 __NSThread__main__ + 1058
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 Foundation 0x2e5b8692 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2e6094d4 -[NSRunLoop(NSRunLoop) run] + 76
8 SkiWithMe 0x0011b610 0x3f000 + 902672
9 Foundation 0x2e67ac32 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
12 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 9 name: WebCore: CFNetwork Loader
Thread 9:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 WebCore 0x35be00a2 WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x385a3440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dc65456 __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 11 name: WebCore: LocalStorage
Thread 11:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ebee530 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 56
4 WebCore 0x35ccb344 WTF::PassOwnPtr<WTF::Function<void ()> > WTF::MessageQueue<WTF::Function<void ()> >::waitForMessageFilteredWithTimeout<bool (WTF::Function<void ()>*)>(WTF::MessageQueueWaitResult&, bool (&)(WTF::Function<void ()>*), double) + 104
5 WebCore 0x35ccb2ca WebCore::StorageThread::threadEntryPoint() + 162
6 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
9 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 14:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 3 crashed with ARM Thread State (32-bit):
r0: 0x800004f8 r1: 0x3e4003e0 r2: 0xbe4008d8 r3: 0x00000040
r4: 0x02b1c3c0 r5: 0x04602e74 r6: 0x04602e74 r7: 0x02d0308c
r8: 0x16dc6528 r9: 0x0f9000f8 r10: 0x00000000 r11: 0x16dc64d0
ip: 0x38940808 sp: 0x02d0307c lr: 0x35b08ca7 pc: 0x35b08dba
cpsr: 0x20000030
i think u have a issue when ur app back in foreground from the background ,so it's happens due to when u r trying to access some data or array on background to foreground.that var or array wont accessible or u defined dynamic value thats why it's cause crashed .