XCode7.3 keep crash when I enable breakpoint to debug - crash

It will not crash when I debug without breakpoint, once enable a breakpoint, XCode will debug to that line of code, then immediately crash。
It crash at thread 22 as bellow:
Thread 22 Crashed:: <DBGLLDBSessionThread (pid=838)> Dispatch queue: DVTInvalidationPreventionQueue
0 com.apple.LLDB.framework 0x0000000118e3d986 clang::ASTContext::getFunctionType(clang::QualType, llvm::ArrayRef<clang::QualType>, clang::FunctionProtoType::ExtProtoInfo const&) const + 294
1 com.apple.LLDB.framework 0x000000011a139964 lldb_private::ClangASTContext::CreateFunctionType(clang::ASTContext*, lldb_private::CompilerType const&, lldb_private::CompilerType const*, unsigned int, bool, unsigned int) + 542
2 com.apple.LLDB.framework 0x0000000119fb290a DWARFASTParserClang::ParseTypeFromDWARF(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::Log*, bool*) + 9830
3 com.apple.LLDB.framework 0x000000011a120e68 SymbolFileDWARF::ParseType(lldb_private::SymbolContext const&, DWARFDIE const&, bool*) + 184
4 com.apple.LLDB.framework 0x000000011a11b108 SymbolFileDWARF::GetTypeForDIE(DWARFDIE const&, bool) + 368
5 com.apple.LLDB.framework 0x000000011a11ab21 SymbolFileDWARF::ResolveType(DWARFDIE const&, bool, bool) + 129
6 com.apple.LLDB.framework 0x0000000119fb7ff9 DWARFASTParserClang::CompleteTypeFromDWARF(DWARFDIE const&, lldb_private::Type*, lldb_private::CompilerType&) + 1165
7 com.apple.LLDB.framework 0x000000011a11aedc SymbolFileDWARF::CompleteType(lldb_private::CompilerType&) + 628
8 com.apple.LLDB.framework 0x000000011a1a59cb lldb_private::Type::ResolveClangType(lldb_private::Type::ResolveStateTag) + 1483
9 com.apple.LLDB.framework 0x000000011a1a5c74 lldb_private::Type::GetFullCompilerType() + 26
10 com.apple.LLDB.framework 0x000000011a0007da lldb_private::ValueObject::MaybeCalculateCompleteType() + 352
11 com.apple.LLDB.framework 0x000000011a000568 lldb_private::ValueObject::GetCompilerType() + 18
12 com.apple.LLDB.framework 0x000000011a1c680a lldb_private::Process::IsPossibleDynamicValue(lldb_private::ValueObject&) + 64
13 com.apple.LLDB.framework 0x000000011a005bca lldb_private::ValueObject::CalculateDynamicValue(lldb::DynamicValueType) + 90
14 com.apple.LLDB.framework 0x000000011a005c6f lldb_private::ValueObject::GetDynamicValue(lldb::DynamicValueType) + 65
15 com.apple.LLDB.framework 0x0000000117ff51dd ValueImpl::GetSP(lldb_private::ProcessRunLock::ProcessRunLocker&, lldb_private::Mutex::Locker&, lldb_private::Error&) + 243
16 com.apple.LLDB.framework 0x0000000117fef90a lldb::SBValue::GetSP(ValueLocker&) const + 58
17 com.apple.LLDB.framework 0x0000000117fef9f9 lldb::SBValue::GetName() + 41
18 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f3ad75 -[DBGLLDBDataValue initWithLLDBValueObject:forStackFrame:withParent:updateSummary:] + 234
19 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f3ac29 -[DBGLLDBDataValue initWithLLDBValueObject:forStackFrame:withParent:] + 92
20 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f38370 -[DBGLLDBStackFrame _findSymbolWithName:symbolKind:atLocation:] + 1070
21 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f38748 __93-[DBGLLDBStackFrame requestDataValueForSymbol:symbolKind:atLocation:onQueue:withResultBlock:]_block_invoke + 60
22 com.apple.dt.DVTFoundation 0x000000010d08dfb4 ___DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock_block_invoke_2 + 49
23 libdispatch.dylib 0x00007fff8491b40b _dispatch_client_callout + 8
24 libdispatch.dylib 0x00007fff8492c5a4 _dispatch_sync_f_invoke + 56
25 com.apple.dt.DVTFoundation 0x000000010d08df54 ___DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock_block_invoke + 150
26 libdispatch.dylib 0x00007fff8491b40b _dispatch_client_callout + 8
27 libdispatch.dylib 0x00007fff8492c5a4 _dispatch_sync_f_invoke + 56
28 com.apple.dt.DVTFoundation 0x000000010d08dda3 _DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock + 383
29 com.apple.dt.DVTFoundation 0x000000010d08e10d _DVTPreventInvalidationAllowingRecursiveCallsDuringBlock + 35
30 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f37b80 __45-[DBGLLDBStackFrame _addSessionThreadAction:]_block_invoke + 108
31 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f50755 -[DBGLLDBSession handleNextActionWithState:withRunPending:] + 457
32 com.apple.dt.dbg.DebuggerLLDB 0x0000000117f4aca5 DBGLLDBSessionThread(void*) + 2089
33 libsystem_pthread.dylib 0x00007fff8dc4599d _pthread_body + 131
34 libsystem_pthread.dylib 0x00007fff8dc4591a _pthread_start + 168
35 libsystem_pthread.dylib 0x00007fff8dc43351 thread_start + 13
Thread 22 crashed with X86 Thread State (64-bit):

Include a setting CLANG_ENABLE_MODULE_DEBUGGING = NO stopped the crash for me.

Related

WxWidgets crash. App is run from cmdLine with some cmdLine args. wxCriticalSectionLocker seems to run in a loop until it crashes. This occur randomly

Running an application from cmd with some cmdLine args. WxWidget parses the arguments and passes them to my application. Some methods are run in my app based on those params and than the app finishes. In some cases WxWidget crashes with the following stack. Any suggestions on why this might happen?
0x1022e0184 std::__1::__compressed_pair_elem<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::__rep, 0, false>::__get() const + 4 (compressed_pair.h:67)
1 0x1022e0175 std::__1::__compressed_pair<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::__rep, std::__1::allocator<wchar_t> >::first() const + 21 (compressed_pair.h:156)
2 0x1022e0095 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::__is_long() const + 21 (string:1459)
3 0x1022e0369 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::size() const + 25 (string:978)
4 0x1022e0e95 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >::length() const + 21 (string:979)
5 0x1022ddbd5 wxString::length() const + 21 (string.h:1405)
6 0x1020f3ca8 wxPrivate::wxStringAsBufHelper<wchar_t>::Get(wxString const&, unsigned long*) + 40 (string.h:3796)
7 0x1020f3c34 wxCharTypeBuffer<wchar_t> wxString::tchar_str<wchar_t>(unsigned long*) const + 52 (string.h:1627)
8 0x1020f3af5 wxStringTypeBufferBase<wchar_t>::wxStringTypeBufferBase(wxString&, unsigned long) + 69 (string.h:3906)
9 0x1020f3aa5 wxStringTypeBuffer<wchar_t>::wxStringTypeBuffer(wxString&, unsigned long) + 37 (string.h:3990)
10 0x1020ee785 wxStringTypeBuffer<wchar_t>::wxStringTypeBuffer(wxString&, unsigned long) + 37 (string.h:3990)
11 0x1020ee612 wxString::FromAscii(char const*, unsigned long) + 98 (string.cpp:1169)
12 0x1020ee80c wxString::FromAscii(char const*) + 60 (string.cpp:1187)
13 0x102155f0a wxMutexInternal::HandleLockResult(int) + 266 (threadpsx.cpp:371)
14 0x102155dc4 wxMutexInternal::Lock() + 100 (threadpsx.cpp:305)
15 0x10215ec57 wxMutex::Lock() + 151 (thrimpl.cpp:43)
16 0x101c30c65 wxCriticalSection::Enter() + 21 (thread.h:291)
17 0x101c30c43 wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 35 (thread.h:307)
18 0x101c2d09d wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 29 (thread.h:306)
19 0x1020cc870 wxLog::GetComponentLevel(wxString const&) + 32 (log.cpp:630)
20 0x1022dddcb wxLog::IsLevelEnabled(unsigned long, wxString const&) + 59 (log.h:419)
21 0x102155f1f wxMutexInternal::HandleLockResult(int) + 287 (threadpsx.cpp:371)
22 0x102155dc4 wxMutexInternal::Lock() + 100 (threadpsx.cpp:305)
23 0x10215ec57 wxMutex::Lock() + 151 (thrimpl.cpp:43)
24 0x101c30c65 wxCriticalSection::Enter() + 21 (thread.h:291)
25 0x101c30c43 wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 35 (thread.h:307)
26 0x101c2d09d wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 29 (thread.h:306)
27 0x1020cc870 wxLog::GetComponentLevel(wxString const&) + 32 (log.cpp:630)
28 0x1022dddcb wxLog::IsLevelEnabled(unsigned long, wxString const&) + 59 (log.h:419)
29 0x102155f1f wxMutexInternal::HandleLockResult(int) + 287 (threadpsx.cpp:371)
30 0x102155dc4 wxMutexInternal::Lock() + 100 (threadpsx.cpp:305)
31 0x10215ec57 wxMutex::Lock() + 151 (thrimpl.cpp:43)
32 0x101c30c65 wxCriticalSection::Enter() + 21 (thread.h:291)
33 0x101c30c43 wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 35 (thread.h:307)
34 0x101c2d09d wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 29 (thread.h:306)
35 0x1020cc870 wxLog::GetComponentLevel(wxString const&) + 32 (log.cpp:630)
36 0x1022dddcb wxLog::IsLevelEnabled(unsigned long, wxString const&) + 59 (log.h:419)
37 0x102155f1f wxMutexInternal::HandleLockResult(int) + 287 (threadpsx.cpp:371)
38 0x102155dc4 wxMutexInternal::Lock() + 100 (threadpsx.cpp:305)
39 0x10215ec57 wxMutex::Lock() + 151 (thrimpl.cpp:43)
40 0x101c30c65 wxCriticalSection::Enter() + 21 (thread.h:291)
41 0x101c30c43 wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 35 (thread.h:307)
42 0x101c2d09d wxCriticalSectionLocker::wxCriticalSectionLocker(wxCriticalSection&) + 29 (thread.h:306)
43 0x1020cc870 wxLog::GetComponentLevel(wxString const&) + 32 (log.cpp:630)
44 0x1022dddcb wxLog::IsLevelEnabled(unsigned long, wxString const&) + 59 (log.h:419)
45 0x102155f1f wxMutexInternal::HandleLockResult(int) + 287 (threadpsx.cpp:371)
46 0x102155dc4 wxMutexInternal::Lock() + 100 (threadpsx.cpp:305)
47 0x10215ec57 wxMutex::Lock() + 151 (thrimpl.cpp:43)
48 0x101c30c65 wxCriticalSection::Enter() + 21 (thread.h:291)
Could not find any relevant solutions or indication of why this might occur.
Application does not have any UI.
The problem is that pthread_mutex_lock() fails with an unexpected error (i.e. not one of EDEADLK, EINVAL or ETIMEDOUT) and trying to log this error results in the same error again and, so, to stack overflow (making this site a good choice for discussing this!).
It would be interesting to know what is the value passed to HandleLockResult(), i.e. what is the actual error, if you can look it up. And, of course, if you can provide simple example reproducing the problem, you should open a bug report in wxWidgets for this.

react native ios crash on launch UIKitCore

we're getting a small number but regular crashes on launch in a production app.
We have Crashlytics and Sentry but i cant see any references to the react code.
Here is a couple of stacktraces
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x72a4 main + 8 (main.m:8)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x77f8 main + 8 (main.m:8)
41 ??? 0x105a99da4 (Missing)
my only clue is from "initWithCoordinateSpace:orientation:scale:boundingPathBitmap" If there was a corrupt http image reference could this be causing a crash somewhere?
We are also using Firebase in-app-messaging. Could this be crashing the app on startup?

What is the reason of the crash at CFNetWork _CFURLRequestCopyContentDispositionEncodingFallbackArray

This crash is from crash report of app. Multiple URL requests crash cause of it. I want to figure out how to repeat the crash and why the crash happened.
Incident Identifier: 4A2BA2B1-9174-410F-9D51-88A151884484
CrashReporter Key: TODO
Hardware Model: iPhone8,1
Code Type: ARM-64
Parent Process: ??? [1]
Date/Time: 2016-09-28 02:43:26 +0000
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 21
Thread 21 Crashed:
0 CFNetwork _CFURLRequestCopyContentDispositionEncodingFallbackArray + 48
1 CFNetwork HTTPProtocol::updateForHeader(__CFHTTPMessage*) + 260
2 CFNetwork HTTPProtocol::performHeaderReadPostProcessing(__CFHTTPMessage*, unsigned char) + 156
3 CFNetwork HTTPProtocol::performHeaderRead(__CFHTTPMessage*) + 992
4 CFNetwork HTTPProtocol::handleStreamEvent(__CFHTTPMessage*, dispatch_data_s*, CFStreamError const*) + 496
5 CFNetwork ___ZN15HTTPTransaction22_onqueue_invokeHandlerEv_block_invoke.64 + 60
6 libdispatch.dylib _dispatch_client_callout + 16
7 libdispatch.dylib _dispatch_block_invoke_direct + 376
8 CFNetwork RunloopBlockContext::_invoke_block(void const*, void*) + 36
9 CoreFoundation CFArrayApplyFunction + 68
10 CFNetwork RunloopBlockContext::perform() + 136
11 CFNetwork MultiplexerSource::perform() + 312
12 CFNetwork MultiplexerSource::_perform(void*) + 64
13 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation __CFRunLoopDoSources0 + 524
15 CoreFoundation __CFRunLoopRun + 804
16 CoreFoundation CFRunLoopRunSpecific + 444
17 CFNetwork +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
18 Foundation __NSThread__start__ + 1024
19 libsystem_pthread.dylib _pthread_body + 240
20 libsystem_pthread.dylib _pthread_body + 0
21 libsystem_pthread.dylib thread_start + 4

App crashes on OS X Yosemite due to NSOperation (QOS, Quality Of Service)

My application keeps crashing on OS X Yosemite for the following reason:
Crashed Thread: 7 Dispatch queue: NSOperationQueue 0x608000239d80 :: NSOperation 0x60000013b3a0 (QOS: UTILITY)
Changed my NSOperation to this:
if ([self respondsToSelector:#selector(qualityOfService)]) {
self.qualityOfService = NSQualityOfServiceUtility;
}
But application keeps crashing.
Stack trace of crashing thread:
Thread 7 Crashed:: Dispatch queue: NSOperationQueue 0x608000239d80 ::
NSOperation 0x60000013b3a0 (QOS: UTILITY)
0 libobjc.A.dylib 0x00007fff8af4f0dd objc_msgSend +
29
1 com.apple.CoreText 0x00007fff882d0ce7
TAttributes::ParseAttributes(__CFDictionary const*, void const*&,
TInlineVector, 30ul>&) + 521
2 com.apple.CoreText 0x00007fff882d06f9
TAttributes::TAttributes(__CFDictionary const*) + 257
3 com.apple.CoreText 0x00007fff882e8295
TRunEncoder::Encode(_CTGlyphStorage*, CFRange, unsigned int,
__CFDictionary const*) + 85
4 com.apple.CoreText 0x00007fff882e8231
CTRunCreateMutableRunsWithStorageAndOptions + 191
5 com.apple.UIFoundation 0x00007fff8f0f329e
-[NSATSGlyphStorage createCTTypesetter] + 705
6 com.apple.UIFoundation 0x00007fff8f0ecf0c
-[NSATSTypesetter _ctTypesetter] + 324
7 com.apple.UIFoundation 0x00007fff8f0f78b5
-[NSATSLineFragment layoutForStartingGlyphAtIndex:characterIndex:minPosition:maxPosition:lineFragmentRect:]
+ 89
8 com.apple.UIFoundation 0x00007fff8f0edd43
-[NSATSTypesetter _layoutLineFragmentStartingWithGlyphAtIndex:characterIndex:atPoint:renderingContext:]
+ 2901 9 com.apple.UIFoundation 0x00007fff8f0efa08 -[NSATSTypesetter layoutParagraphAtPoint:] + 156
10 com.apple.UIFoundation 0x00007fff8f040356 -[NSTypesetter
_layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:maxCharacterIndex:nextGlyphIndex:nextCharacterIndex:]
+ 4713
11 com.apple.UIFoundation 0x00007fff8f041ae5 -[NSTypesetter
layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:]
+ 246
12 com.apple.UIFoundation 0x00007fff8f0f0743
-[NSATSTypesetter layoutCharactersInRange:forLayoutManager:maximumNumberOfLineFragments:]
+ 967
13 com.apple.UIFoundation 0x00007fff8f0b9e76
-[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 1334
14 com.apple.UIFoundation 0x00007fff8f0c370c
_NSFastFillAllLayoutHolesForGlyphRange + 1493
15 com.apple.UIFoundation 0x00007fff8f0c8e54
-[NSLayoutManager(NSPrivate) _drawBackgroundForGlyphRange:atPoint:] + 542
16 com.apple.AppKit 0x00007fff8f37fc15 -[NSTextView
drawRect:] + 1878
17 com.apple.AppKit 0x00007fff8f37f409
-[NSTextView(NSTextView_LayerBacking) drawLayer:inGraphicsContext:] + 493
18 com.apple.AppKit 0x00007fff8f332980
+[NSGraphicsContext configureGraphicsContextForCALayer:withCGContext:andRenderWithHandler:]
+ 97
19 com.apple.QuartzCore 0x00007fff92e70153
CABackingStoreUpdate_ + 3306
20 com.apple.QuartzCore 0x00007fff92e6f463
___ZN2CA5Layer8display_Ev_block_invoke + 59
21 com.apple.QuartzCore 0x00007fff92e6f41f
x_blame_allocations + 81
22 com.apple.QuartzCore 0x00007fff92e6ef1c
CA::Layer::display_() + 1546
23 com.apple.AppKit 0x00007fff8f31c89f
_NSBackingLayerDisplay + 617
24 com.apple.QuartzCore 0x00007fff92e6e641
CA::Layer::display_if_needed(CA::Transaction*) + 603
25 com.apple.QuartzCore 0x00007fff92e6dd7d
CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 35
26 com.apple.QuartzCore 0x00007fff92e6d50e
CA::Context::commit_transaction(CA::Transaction*) + 242
27 com.apple.QuartzCore 0x00007fff92e6d164
CA::Transaction::commit() + 390
28 com.apple.QuartzCore 0x00007fff92e7df55
CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned
long, void*) + 71
29 com.apple.CoreFoundation 0x00007fff902bdd87
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
30 com.apple.CoreFoundation 0x00007fff902bdce0
__CFRunLoopDoObservers + 368
31 com.apple.CoreFoundation 0x00007fff902af858
CFRunLoopRunSpecific + 328
32 com.apple.Foundation 0x00007fff8d04bab9
-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
33 com.pack.MyApp 0x000000010ab54d5b -[SyncOperation
start] + 886
34 com.apple.Foundation 0x00007fff8cfe91a3 __NSOQSchedule_f
+ 184
35 libdispatch.dylib 0x00007fff925e9c13
_dispatch_client_callout + 8
36 libdispatch.dylib 0x00007fff925ed365
_dispatch_queue_drain + 1100
37 libdispatch.dylib 0x00007fff925eeecc
_dispatch_queue_invoke + 202
38 libdispatch.dylib 0x00007fff925ec6b7
_dispatch_root_queue_drain + 463
39 libdispatch.dylib 0x00007fff925fafe4
_dispatch_worker_thread3 + 91
40 libsystem_pthread.dylib 0x00007fff8596d6cb
_pthread_wqthread + 729
41 libsystem_pthread.dylib 0x00007fff8596b4a1 start_wqthread +
13
Thank you!

Google Maps iOS SDK occasional crash when destroying GMSMapView

In my app I occasionally get a crash when navigating away from a view with a GMSMapView in it (popping it from my UINavigationController). It's crashing on thread 10, and here's the crash info:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000004
Crashed Thread: 10
And the stack trace for that thread:
Thread 10 name: Dispatch queue: URLConnection
Thread 10 Crashed:
0 libsystem_c.dylib 0x39ef897c OSAtomicAdd32 + 0
1 CoreData 0x31bf3de4 _PFfastQueueRelease + 24
2 CoreData 0x31bd3ee8 -[NSManagedObject release] + 224
3 CoreFoundation 0x31d2d30c CFRelease + 96
4 CoreFoundation 0x31d47e96 -[__NSDictionaryM dealloc] + 130
5 Trail Tracker GPS 0x00206076 -[GMSTileDataCache .cxx_destruct] + 162
6 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
7 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
8 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
9 Trail Tracker GPS 0x00201810 -[GMSTileDataCache dealloc] + 172
10 Trail Tracker GPS 0x0030da12 -[GMSDASHTileService .cxx_destruct] + 318
11 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
12 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
13 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
14 Trail Tracker GPS 0x00309786 -[GMSDASHTileService dealloc] + 182
15 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
16 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
17 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
18 CoreFoundation 0x31d2d30c CFRelease + 96
19 CoreFoundation 0x31d37a0e -[__NSArrayI dealloc] + 74
20 Trail Tracker GPS 0x00230e84 -[GMSDASHStreamingBody .cxx_destruct] + 40
21 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
22 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
23 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
24 CoreFoundation 0x31d2d30c CFRelease + 96
25 CFNetwork 0x31aececa CoreReadStreamFromCFReadStream::~CoreReadStreamFromCFReadStream() + 38
26 CFNetwork 0x31aece8a CoreReadStreamFromCFReadStream::~CoreReadStreamFromCFReadStream() + 6
27 CoreFoundation 0x31d2d3ce CFRelease + 290
28 CFNetwork 0x31a4f7be HTTPRequest::~HTTPRequest() + 74
29 CFNetwork 0x31a4f76a HTTPRequest::~HTTPRequest() + 6
30 CoreFoundation 0x31d2d3ce CFRelease + 290
31 CFNetwork 0x31a54992 URLRequest::~URLRequest() + 106
32 CFNetwork 0x31a5491e URLRequest::~URLRequest() + 6
33 CoreFoundation 0x31d2d3ce CFRelease + 290
34 CFNetwork 0x31a4464c __CFURLCacheNode::~__CFURLCacheNode() + 40
35 CFNetwork 0x31a429de __CFURLCacheNode::~__CFURLCacheNode() + 6
36 CFNetwork 0x31a4f57e __CFURLCache::RemoveResponseFromCacheContainers(__CFURLCacheNode*, _CFCachedURLResponse const*, __CFString const*, bool) + 158
37 CFNetwork 0x31a4d71e __CFURLCache::AddResponseIntoCacheContainers(__CFString const*, __CFURLCacheNode*, bool) + 102
38 CFNetwork 0x31a4d652 __CFURLCache::CreateAndStoreCacheNode(__CFURLCacheNode*, _CFCachedURLResponse const*, __CFString const*, _CFURLRequest const*, void const*, bool, bool&) + 186
39 CFNetwork 0x31a900c8 __CFURLCache::AddCacheTask0(__CFURLCacheNode*) + 320
40 CFNetwork 0x31a8ff78 __CFURLCache::AddCacheTask(__CFURLCacheNode*) + 28
41 CFNetwork 0x31a4d55e CFURLCacheAddCachedResponseForRequest + 622
42 CFNetwork 0x31ac7ac4 ___internalEvent_WillCacheResponse_block_invoke_0 + 28
43 CFNetwork 0x31ac91ca URLConnectionClient_Classic::_delegate_willCacheResponse(_CFCachedURLResponse const*, void ()(_CFCachedURLResponse const*) block_pointer) + 42
44 CFNetwork 0x31ac7a96 URLConnectionClient::_internalEvent_WillCacheResponse() + 586
45 CFNetwork 0x31ac7b8c URLConnectionClient::_clientEvent_DidFinishLoading() + 172
46 CFNetwork 0x31acdaa8 ___withClientAsync_block_invoke_0 + 20
47 CFNetwork 0x31ac6426 ___withWorkQueueAsync_block_invoke_0 + 10
48 CFNetwork 0x31af0e34 ___performAsync_block_invoke_0 + 24
49 libdispatch.dylib 0x39ea911c _dispatch_call_block_and_release + 8
50 libdispatch.dylib 0x39ea8996 _dispatch_queue_drain$VARIANT$up + 142
51 libdispatch.dylib 0x39ea8890 _dispatch_queue_invoke$VARIANT$up + 32
52 libdispatch.dylib 0x39eb7212 _dispatch_root_queue_drain + 190
53 libdispatch.dylib 0x39eb73b4 _dispatch_worker_thread2 + 80
54 libsystem_c.dylib 0x39edda0e _pthread_wqthread + 358
55 libsystem_c.dylib 0x39edd8a0 start_wqthread + 4`
Has anyone seen crashes like this from GMSMapView or the Google Maps SDK?
I had this issue with Xcode 5 - DP 5 and a previous version of the Google Maps SDK. I upgraded the SDK and things seemed to go away.