Exception Type: SIGSEGV QuartzCore crash

Many of our users experienced this crash, but we were unable to reproduce it

Trigger Thread:0
appversion : 2.14.7.0
CFBundleShortVersionString : 2.14.7
CFBundleName : TZEditor
packagename : com.baidu.tzeditor
boot_time : 2022-04-25T12:25:19Z
kernel_version : Darwin Kernel Version 21.3.0: Wed Jan  5 21:44:44 PST 2022; root:xnu-8019.80.24~23/RELEASE_ARM64_T8110
process_name : TZEditor
process_id : 3025
parent_process_id : 1
Exception Codes: SEGV_ACCERR at 0x0000000000000100
Exception Type: SIGSEGV
ExtraInfo:
Code Type: arm64
OS Version: iPhone OS 15.3.1 (19D52)
Hardware Model: iPhone14,2
Launch Time: 2022-05-02 23:17:26
Date/Time: 2022-05-02 23:33:54
Thread 0 Crashed:
0    QuartzCore                       CA::Layer::free_transaction(CA::Transaction*)	(in QuartzCore)	284
1    QuartzCore                       CA::Transaction::commit()	(in QuartzCore)	952
2    QuartzCore                       CA::Transaction::flush_as_runloop_observer(bool)	(in QuartzCore)	88
3    UIKitCore                        __UIApplicationFlushCATransaction	(in UIKitCore)	76
4    UIKitCore                        __UIUpdateSequenceRun	(in UIKitCore)	84
5    UIKitCore                        _schedulerStepScheduledMainSection	(in UIKitCore)	144
6    UIKitCore                        _runloopSourceCallback	(in UIKitCore)	60
7    CoreFoundation                   ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__	(in CoreFoundation)	28
8    CoreFoundation                   ___CFRunLoopDoSource0	(in CoreFoundation)	208
9    CoreFoundation                   ___CFRunLoopDoSources0	(in CoreFoundation)	376
10   CoreFoundation                   ___CFRunLoopRun	(in CoreFoundation)	820
11   CoreFoundation                   -[__NSCFString appendString:]	(in CoreFoundation)	9040
12   GraphicsServices                 
13   UIKitCore                        -[UIApplication _run]	(in UIKitCore)	1100
14   UIKitCore                        -[UIScrollView _findScrollableAncestorIfNeededWithEvent:]	(in UIKitCore)	592
15   0x0000000000000000              0x105f21aa4 0x0 + 4394719908
Thread 1 name:  com.apple.uikit.eventfetch-thread
Thread 1:
0    libsystem_kernel.dylib           _mach_msg_trap	(in libsystem_kernel.dylib)	8
1    CoreFoundation                   ___CFRunLoopServiceMachPort	(in CoreFoundation)	372
2    CoreFoundation                   ___CFRunLoopRun	(in CoreFoundation)	1212
3    CoreFoundation                   -[__NSCFString appendString:]	(in CoreFoundation)	9040
4    Foundation                       -[NSRunLoop(NSRunLoop) runMode:beforeDate:]	(in Foundation)	236
5    Foundation                       -[NSRunLoop(NSRunLoop) runUntilDate:]	(in Foundation)	92
6    UIKitCore                        -[UIEventFetcher threadMain]	(in UIKitCore)	524
7    Foundation                       ___NSThread__start__	(in Foundation)	808
8    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 2:
0    libsystem_kernel.dylib           _semaphore_timedwait_trap	(in libsystem_kernel.dylib)	8
1    libdispatch.dylib                __dispatch_semaphore_wait_slow	(in libdispatch.dylib)	76
2    TZEditor                         -[BBALagRunloopMonitor startMonitor]	(in TZEditor)	(BBALagRunloopMonitor.m:134)	8
3    TZEditor                         ___36-[BBALagMonitor startRunloopMonitor]_block_invoke	(in TZEditor)	(BBALagMonitor.m:169)	12
4    libdispatch.dylib                __dispatch_call_block_and_release	(in libdispatch.dylib)	32
5    libdispatch.dylib                __dispatch_client_callout	(in libdispatch.dylib)	20
6    libdispatch.dylib                __dispatch_lane_serial_drain	(in libdispatch.dylib)	672
7    libdispatch.dylib                __dispatch_lane_invoke	(in libdispatch.dylib)	392
8    libdispatch.dylib                __dispatch_workloop_worker_thread	(in libdispatch.dylib)	656
9    libsystem_pthread.dylib          __pthread_wqthread	(in libsystem_pthread.dylib)	288
Thread 3 name:  com.apple.NSURLConnectionLoader
Thread 3:
0    libsystem_kernel.dylib           _mach_msg_trap	(in libsystem_kernel.dylib)	8
1    CoreFoundation                   ___CFRunLoopServiceMachPort	(in CoreFoundation)	372
2    CoreFoundation                   ___CFRunLoopRun	(in CoreFoundation)	1212
3    CoreFoundation                   -[__NSCFString appendString:]	(in CoreFoundation)	9040
4    CFNetwork                        __CFURLStorageSessionCopyIdentifier	(in CFNetwork)	59784
5    Foundation                       ___NSThread__start__	(in Foundation)	808
6    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 4 name:  AVAudioSession Notify Thread
Thread 4:
0    libsystem_kernel.dylib           _mach_msg_trap	(in libsystem_kernel.dylib)	8
1    CoreFoundation                   ___CFRunLoopServiceMachPort	(in CoreFoundation)	372
2    CoreFoundation                   ___CFRunLoopRun	(in CoreFoundation)	1212
3    CoreFoundation                   -[__NSCFString appendString:]	(in CoreFoundation)	9040
4    AudioSession                     CADeprecated::GenericRunLoopThread::Entry(void*)	(in AudioSession)	164
5    AudioSession                     CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*)	(in AudioSession)	92
6    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 5 name:  com.apple.coreaudio.AQClient
Thread 5:
0    libsystem_kernel.dylib           _mach_msg_trap	(in libsystem_kernel.dylib)	8
1    CoreFoundation                   ___CFRunLoopServiceMachPort	(in CoreFoundation)	372
2    CoreFoundation                   ___CFRunLoopRun	(in CoreFoundation)	1212
3    CoreFoundation                   -[__NSCFString appendString:]	(in CoreFoundation)	9040
4    AudioToolbox                     CADeprecated::GenericRunLoopThread::Entry(void*)	(in AudioToolbox)	164
5    libAudioToolboxUtility.dylib     std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_stringstream()	(in libAudioToolboxUtility.dylib)	3540
6    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 6:
0    libsystem_kernel.dylib           ___psynch_cvwait	(in libsystem_kernel.dylib)	8
1    libc++.1.dylib                   char* std::__1::__itoa::append8_no_zeros<unsigned int>(char*, unsigned int)	(in libc++.1.dylib)	1492
2    TZEditor                         std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&)	(in TZEditor)	244
3    TZEditor                         spdlog::details::periodic_worker::periodic_worker(std::__1::function<void ()()> const&, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1l> >)::{lambda()#1}::operator()() const	(in TZEditor)	108
4    TZEditor                         __ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN6spdlog7details15periodic_workerC1ERKNS_8functionIFvvEEENS_6chrono8durationIxNS_5ratioILl1ELl1EEEEEEUlvE_EEEEEPvSM_	(in TZEditor)	44
5    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 7 name:  JavaScriptCore bmalloc scavenger
Thread 7:
0    libsystem_kernel.dylib           ___psynch_cvwait	(in libsystem_kernel.dylib)	8
1    libc++.1.dylib                   char* std::__1::__itoa::append8_no_zeros<unsigned int>(char*, unsigned int)	(in libc++.1.dylib)	1336
2    JavaScriptCore                   void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&)	(in JavaScriptCore)	108
3    JavaScriptCore                   bmalloc::Scavenger::threadRunLoop()	(in JavaScriptCore)	340
4    JavaScriptCore                   bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*)	(in JavaScriptCore)	16
5    JavaScriptCore                   void* 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::Scavenger*), bmalloc::Scavenger*> >(void*)	(in JavaScriptCore)	48
6    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 8:
0    libsystem_kernel.dylib           ___workq_kernreturn	(in libsystem_kernel.dylib)	8
Thread 9:
0    libsystem_kernel.dylib           ___ulock_wait	(in libsystem_kernel.dylib)	8
1    libdispatch.dylib                __dispatch_thread_event_wait_slow	(in libdispatch.dylib)	56
2    libdispatch.dylib                ___DISPATCH_WAIT_FOR_QUEUE__	(in libdispatch.dylib)	364
3    libdispatch.dylib                __dispatch_sync_f_slow	(in libdispatch.dylib)	144
4    libsystem_trace.dylib            ____os_state_request_for_self_block_invoke	(in libsystem_trace.dylib)	368
5    libdispatch.dylib                __dispatch_call_block_and_release	(in libdispatch.dylib)	32
6    libdispatch.dylib                __dispatch_client_callout	(in libdispatch.dylib)	20
7    libdispatch.dylib                __dispatch_lane_serial_drain	(in libdispatch.dylib)	672
8    libdispatch.dylib                __dispatch_lane_invoke	(in libdispatch.dylib)	444
9    libdispatch.dylib                __dispatch_workloop_worker_thread	(in libdispatch.dylib)	656
10   libsystem_pthread.dylib          __pthread_wqthread	(in libsystem_pthread.dylib)	288
Thread 10:
0    libsystem_kernel.dylib           ___workq_kernreturn	(in libsystem_kernel.dylib)	8
Thread 11:
0    libsystem_kernel.dylib           ___workq_kernreturn	(in libsystem_kernel.dylib)	8
Thread 12:
0    libsystem_kernel.dylib           ___workq_kernreturn	(in libsystem_kernel.dylib)	8
Thread 13:
0    libsystem_kernel.dylib           ___workq_kernreturn	(in libsystem_kernel.dylib)	8
Thread 14:
Fail to get instruction address
Thread 15 name:  com.apple.coremedia.rootQueue.47
Thread 15:
0    libsystem_kernel.dylib           _semaphore_timedwait_trap	(in libsystem_kernel.dylib)	8
1    libdispatch.dylib                __dispatch_semaphore_wait_slow	(in libdispatch.dylib)	76
2    libdispatch.dylib                __dispatch_worker_thread	(in libdispatch.dylib)	312
3    libsystem_pthread.dylib          __pthread_start	(in libsystem_pthread.dylib)	148
Thread 0 crashed with arm64 Thread State:
pc: 0x00000001845d29ac   fp: 0x000000016dd06780   sp: 0x000000016dd06740   x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x000000010b875400   x3: 0x0000000000000001   x4: 0x0000000003eab114   x5: 0x000000011b90a110   x6: 0x0000000000000006   x7: 0x0000000000000403   x8: 0x0000000000000000   x9: 0x0000000000000000   x10: 0x0000000000000010   x11: 0x0000000003eab114   x12: 0x0000000000800000   x13: 0x0000000000000000   x14: 0x00000000899dee8c   x15: 0x00000000000021a8   x16: 0x00000000000021a8   x17: 0x00000000026a9114   x18: 0x000000010bded8cc   x19: 0x0000000107029200   x20: 0x00000001da8bd568   x21: 0x0000000000000000   x22: 0x0000000000100000   x23: 0x0000000004204b7e   x24: 0x000000010d3e7970   x25: 0x000000010d3e70a0   x26: 0x0000000000104001   x27: 0x00000001d73c17a8   x28: 0x00000001d73c1000   lr: 0x00000001845d29e4   cpsr: 0x0000000040001000   
Binary Images:
0x18456a000  -  0x184851000 QuartzCore arm64e <a2da3a5696bc362fbd55949ab26ad274> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x182cb9000  -  0x184545000 UIKitCore arm64e <920a0ee6d2663058814427a27b23ad62> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x180810000  -  0x180c64000 CoreFoundation arm64e <e2f84645290531ef8ec73cc19c3cddb3> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x19c3d2000  -  0x19c3db000 GraphicsServices arm64e <b40e3b1790c73ebcb6bc8c7b605f47a9> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b7f64000  -  0x1b7f98000 libsystem_kernel.dylib arm64e <ff3ee512a0bc3123b983d365a71fb06a> /usr/lib/system/libsystem_kernel.dylib
0x182035000  -  0x18233c000 Foundation arm64e <925a43cdeaf2316193783ed87468301d> /System/Library/Frameworks/Foundation.framework/Foundation
0x1f1c2a000  -  0x1f1c36000 libsystem_pthread.dylib arm64e <a17d07cfe86a392387c4921045898a8a> /usr/lib/system/libsystem_pthread.dylib
0x180517000  -  0x18055e000 libdispatch.dylib arm64e <bd02a62584753fd68dc38aed25d1573b> /usr/lib/system/libdispatch.dylib
0x1020f8000  -  0x104828000 TZEditor arm64 <e7497a885ccd3c148e389a0942ef76e1> /private/var/containers/Bundle/Application/F729B0AE-D9E0-418F-AA86-51409DB392D9/TZEditor.app/TZEditor
0x18102b000  -  0x1814f0000 CFNetwork arm64e <23a465f1e97c36c5a30fcefec059f79f> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x189c44000  -  0x189c6e000 AudioSession arm64e <cfe93669499d3d2b972b0f516064a8a6> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x18b2ae000  -  0x18b53d000 AudioToolbox arm64e <cc3b205fa5ac3cbda751f5fb0d941de6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x199a8a000  -  0x199abe000 libAudioToolboxUtility.dylib arm64e <93a3c2b64482305481781a2119539165> /usr/lib/libAudioToolboxUtility.dylib
0x19918a000  -  0x1991ee000 libc++.1.dylib arm64e <346a1fc1f0b337dbb10209951bb9aa78> /usr/lib/libc++.1.dylib
0x18b82c000  -  0x18cb1d000 JavaScriptCore arm64e <8882e299ecd236a1839b41ee2ca83aa6> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x19b222000  -  0x19b23b000 libsystem_trace.dylib arm64e <1feb54511285334a80b1284862ebedb1> /usr/lib/system/libsystem_trace.dylib
StackPoint:
Register:
x18:
address:0x10bded8cc
type:string
value:bvx2

Seems you are using some deprecated functions from coreAudio . This may be related : do you have any warning during compilation ?

Exception Type: SIGSEGV QuartzCore crash
 
 
Q