Why does Instrument's "Time Profiler" crash?
(while "Allocations" works just fine)
What I tried:
Running just for Instrument purpose.
Attaching to an already launched App later (instead of running).
Launch "Allocations" first, then in "Instruments", clicking the "+" button causes same issue (when selecting "Time Profiler").
Retry with both Build-Configurations (Debug and Release).
Clearing build directory, then retrying all of above.
Crash report:
Crashed Thread: 3 Dispatch queue: com.apple.dt.frame.activity
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [13064]
// ...
Thread 3 Crashed:: Dispatch queue: com.apple.dt.frame.activity
0 com.apple.dt.InstrumentsAnalysisCore 0x00000001082497f3 std::__1::__hash_iterator<std::__1::__hash_node<void*, void*>*> std::__1::__hash_table<void*, std::__1::hash<void*>, std::__1::equal_to<void*>, std::__1::allocator<void*> >::find<void*>(void* const&) + 83
1 com.apple.dt.InstrumentsAnalysisCore 0x0000000108249044 XRCLIPS::_delegateCallbackRouter(environmentData*, udfContext*, udfValue*) + 628
2 com.apple.dt.InstrumentsAnalysisCore 0x00000001083018a0 EvaluateExpression + 464
3 com.apple.dt.InstrumentsAnalysisCore 0x00000001083069a8 PutProcBind + 216
4 com.apple.dt.InstrumentsAnalysisCore 0x0000000108301a89 EvaluateExpression + 953
5 com.apple.dt.InstrumentsAnalysisCore 0x00000001081e61ab PrognFunction + 75
6 com.apple.dt.InstrumentsAnalysisCore 0x00000001083018a0 EvaluateExpression + 464
7 com.apple.dt.InstrumentsAnalysisCore 0x000000010830887c EvaluateProcActions + 604
8 com.apple.dt.InstrumentsAnalysisCore 0x000000010832b357 Run + 2327
9 com.apple.dt.InstrumentsAnalysisCore 0x000000010832c312 RunCommand + 130
10 com.apple.dt.InstrumentsAnalysisCore 0x00000001083018a0 EvaluateExpression + 464
11 com.apple.dt.InstrumentsAnalysisCore 0x00000001081e61ab PrognFunction + 75
12 com.apple.dt.InstrumentsAnalysisCore 0x00000001083018a0 EvaluateExpression + 464
13 com.apple.dt.InstrumentsAnalysisCore 0x000000010830887c EvaluateProcActions + 604
14 com.apple.dt.InstrumentsAnalysisCore 0x00000001081f4cc7 CallDeffunction + 391
15 com.apple.dt.InstrumentsAnalysisCore 0x000000010831df17 EvaluateDeffunctionCall + 39
16 com.apple.dt.InstrumentsAnalysisCore 0x0000000108301a89 EvaluateExpression + 953
17 com.apple.dt.InstrumentsAnalysisCore 0x00000001082b0478 RouteCommand + 1128
18 com.apple.dt.InstrumentsAnalysisCore 0x000000010824acdc invocation function for block in XRCLIPS::executeCommand(NSString*, NSString*) + 684
19 com.apple.dt.InstrumentsAnalysisCore 0x000000010824a7c3 _runInCLocale(void () block_pointer) + 51
20 com.apple.dt.InstrumentsAnalysisCore 0x000000010824a9dc XRCLIPS::executeCommand(NSString*, NSString*) + 124
21 com.apple.dt.InstrumentsAnalysisCore 0x00000001082c369d -[XRAnalysisCoreBindingHemisphere solveBindingProblem] + 109
22 com.apple.dt.instruments.InstrumentsPlugIn 0x00000001087c6835 -[XRAnalysisCoreSetupAgent _solveBindingProblem:] + 130
23 com.apple.dt.instruments.InstrumentsPlugIn 0x00000001087c5b8c -[XRAnalysisCoreSetupAgent executeStopOnItinerary:] + 695
24 com.apple.dt.instruments.DVTInstrumentsUtilities 0x0000000107fa40e4 -[XRMobileAgent(XRMobileAgentStop) hello] + 272
25 com.apple.dt.instruments.DVTInstrumentsUtilities 0x0000000107fa041d __51-[XRFrameActivityManager _reevaluateArrivingAgent:]_block_invoke + 112
26 com.apple.dt.instruments.DVTInstrumentsUtilities 0x0000000107fa7fc3 xray::scheduler::ActivityManager::_processActivity(void*) + 115
27 libdispatch.dylib 0x00007fff67acf658 _dispatch_client_callout + 8
28 libdispatch.dylib 0x00007fff67ad4c44 _dispatch_lane_serial_drain + 597
29 libdispatch.dylib 0x00007fff67ad55d6 _dispatch_lane_invoke + 363
30 libdispatch.dylib 0x00007fff67adec09 _dispatch_workloop_worker_thread + 596
31 libsystem_pthread.dylib 0x00007fff67d2da3d _pthread_wqthread + 290
32 libsystem_pthread.dylib 0x00007fff67d2cb77 start_wqthread + 15
// ...
Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x0000000000007fb2 rbx: 0x0000000000000004 rcx: 0x8ddf04fbc068655b rdx: 0x1124171e0a32926b
rdi: 0x00007fb2984d6258 rsi: 0x00007fb29ca7f7a0 rbp: 0x00007000011afe70 rsp: 0x00007000011afe70
r8: 0x9ddfea08eb382d69 r9: 0x0000000000000002 r10: 0x00007fff85335500 r11: 0x00007fff2d9e6128
r12: 0x00007fb299af8460 r13: 0x00007000011aff30 r14: 0x0000000000000004 r15: 0x00007fff6697dca0
rip: 0x00000001082497f3 rfl: 0x0000000000010a03 cr2: 0x00000001081f1a10
Logical CPU: 1
Error Code: 0x00000000
Trap Number: 6
// ...
VM Region Summary:
ReadOnly portion of Libraries: Total=828.9M resident=0K(0%) swapped_out_or_unallocated=828.9M(100%)
Writable regions: Total=100.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=100.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 384K 3
Activity Tracing 256K 1
CG backing stores 224K 2
CG image 116K 18
CG raster data 216K 11
CoreAnimation 7068K 56
CoreGraphics 8K 1
CoreImage 20K 5
CoreUI image data 1296K 18
Dispatch continuations 4096K 1
Foundation 4K 1
IOKit 7940K 1
Kernel Alloc Once 8K 1
MALLOC 70.3M 113
MALLOC guard page 32K 8
OpenGL GLSL 256K 3
STACK GUARD 56.1M 14
Stack 14.6M 14
VM_ALLOCATE 368K 21
VM_ALLOCATE (reserved) 2048K 2 reserved VM address space (unallocated)
__DATA 77.0M 576
__DATA_CONST 1957K 73
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 409.5M 118
__OBJC_RO 32.3M 1
__OBJC_RW 1908K 2
__TEXT 419.8M 548
__UNICODE 564K 1
mapped file 132.1M 42
shared memory 632K 14
=========== ======= =======
TOTAL 1.2G 1671
TOTAL, minus reserved VM space 1.2G 1671
More info:
Process: Instruments [13064]
Path: /Applications/Xcode_12.4.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
Identifier: com.apple.dt.Instruments
Instruments Version: 12.4 (64543.2)
Build Info: Instruments-64543002000000000~11 (12D4e)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Instruments [13064]
User ID: 502
Date/Time: 2021-10-03 16:02:23.335 +0430
OS Version: Mac OS X 10.15.7 (19H2)
Report Version: 12
Anonymous UUID: 3AB66FC9-BBB6-ACB0-2877-9239C69E7BC1
Sleep/Wake UUID: D2B09D01-75C0-4596-810A-69604C2B70E3
Time Awake Since Boot: 19000 seconds
Time Since Wake: 19000 seconds
System Integrity Protection: disabled
// ...
Model: MacBookPro7,1, BootROM 68.0.0.0.0, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f7
Graphics: kHW_NVidiaGeForce320MItem, NVIDIA GeForce 320M, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533654465238432D47372020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533654465238432D47372020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.102.31)
Bluetooth: Version 7.0.6f7, 3 services, 25 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Network Service: iPhone, Ethernet, en3
Serial ATA Device: TOSHIBA MK2555GSXF, 250.06 GB
Serial ATA Device: MATSHITADVD-R UJ-898
USB Device: USB Bus
USB Device: USB Bus
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
USB Device: IR Receiver
USB Device: Apple Internal Keyboard / Trackpad
USB Device: USB 2.0 Bus
USB Device: Built-in iSight
USB Device: SAMSUNG_Android
USB Device: USB 2.0 Bus
USB Device: iPhone
USB Device: Internal Memory Card Reader
Thunderbolt Bus:
After trying the comment's suggestions (which did not fix issue), like:
Empty the whole “derived data” folder and reboot the Mac.
Uninstall Xcode and reinstall it.
Ensure the desired Xcode version is selected (found in “Xcode” » “Preferences” » “Locations”)
I noticed that "Time Profiler" of Xcode 12.4 is not compatible with macOS Catalina (version 10.15.7).
So, the solution seems to be; never use latest Xcode with older macOS, it's simply not backward compatible, well it is backward compatible, but not fully (in some cases, like my question).
Note that this Q/A is about iOS, and Xcode 12.4 has not even SDK for running on macOS 10.15.x.
Related
Xcode crashes when opening xcworkspace which has more than 150 targets.
Following solutions have been tried:
Writing main thread command on terminal
Deleting derived data
Deleting xcuserdata inside the xcworkspace content
Restarting mac multiple times
deleted whole xcode folder from ~Library/ folder
Deleted cache
Below is the terminal logs when opening xcode which end up in abort.
Process: Xcode [6005]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.1 (19466)
Build Info: IDEFrameworks-19466000000000000~20 (13A1030d)
App Item ID: 497799835
App External ID: 844664792
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2021-10-28 12:51:35.1892 +0530
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Bridge OS Version: 6.0 (19P548)
Anonymous UUID: 3118C151-62B2-F809-F9A0-A23CD9A811EA
Sleep/Wake UUID: 7154F81D-4FC6-4A00-98DD-F582CF444EF5
Time Awake Since Boot: 11000 seconds
Time Since Wake: 5917 seconds
System Integrity Protection: enabled
Crashed Thread: 2 Dispatch queue: <IDEXCBuildSupport.IDEXCBuildServiceBuildOperation:0x7fa8fdca4d50:REfc>-builder-queue (QOS: UNSPECIFIED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Thread 2 Crashed:: Dispatch queue: <IDEXCBuildSupport.IDEXCBuildServiceBuildOperation:0x7fa8fdca4d50:REfc>-builder-queue (QOS: UNSPECIFIED)
0 libsystem_kernel.dylib 0x7ff806242112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff806278233 pthread_kill + 263
2 libsystem_c.dylib 0x7ff8061c4d10 abort + 123
3 IDEKit 0x10a56cb18 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1233
4 IDEKit 0x10a56df62 -[IDEAssertionHandler handleUncaughtException:] + 880
5 IDEKit 0x10a56e12d IDEHandleUncaughtException + 94
6 DVTFoundation 0x109d3b491 DVTSyncPerformBlock + 480
7 XCBuildSupport 0x14690dbf7 closure #1 in IDEXCBuildServiceBuildOperation.addOperations(to:) + 231
8 XCBuildSupport 0x14690558e thunk for #escaping #callee_guaranteed () -> () + 14
9 Foundation 0x7ff807187592 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
10 Foundation 0x7ff80718748a -[NSBlockOperation main] + 98
11 Foundation 0x7ff807187421 __NSOPERATION_IS_INVOKING_MAIN__ + 17
12 Foundation 0x7ff80718668f -[NSOperation start] + 785
13 Foundation 0x7ff807186365 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
14 Foundation 0x7ff80718623a __NSOQSchedule_f + 182
15 libdispatch.dylib 0x7ff8060ced0d _dispatch_block_async_invoke2 + 83
16 libdispatch.dylib 0x7ff8060c1cc9 _dispatch_client_callout + 8
17 libdispatch.dylib 0x7ff8060c4746 _dispatch_continuation_pop + 460
18 libdispatch.dylib 0x7ff8060c3ded _dispatch_async_redirect_invoke + 716
19 libdispatch.dylib 0x7ff8060d13ba _dispatch_root_queue_drain + 343
20 libdispatch.dylib 0x7ff8060d1b5a _dispatch_worker_thread2 + 160
21 libsystem_pthread.dylib 0x7ff806275049 _pthread_wqthread + 256
22 libsystem_pthread.dylib 0x7ff80627401b start_wqthread + 15
VM Region Summary:
ReadOnly portion of Libraries: Total=1.9G resident=0K(0%) swapped_out_or_unallocated=1.9G(100%)
Writable regions: Total=2.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.5G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 512K 4
Activity Tracing 256K 1
CG image 1696K 71
ColorSync 244K 28
CoreAnimation 13.7M 193
CoreData 12K 1
CoreGraphics 12K 2
CoreImage 44K 11
CoreUI image data 2852K 25
Dispatch continuations 64.0M 1
Foundation 540K 2
Image IO 544K 24
JS JIT generated code 1.0G 3
Kernel Alloc Once 8K 1
MALLOC 1.4G 1366
MALLOC guard page 48K 12
MALLOC_LARGE (reserved) 4096K 4 reserved VM address space (unallocated)
Performance tool data 4K 1 not counted in TOTAL below
SQLite page cache 320K 5
STACK GUARD 56.1M 26
Stack 20.7M 26
VM_ALLOCATE 48K 9
WebKit Malloc 3176K 7
__CTF 759 1
__DATA 78.2M 1025
__DATA_CONST 49.4M 734
__DATA_DIRTY 2402K 268
__FONT_DATA 4K 1
__LINKEDIT 895.0M 297
__OBJC_RO 81.5M 1
__OBJC_RW 3120K 3
__TEXT 1.0G 974
__UNICODE 588K 1
dyld private memory 1024K 1
libnetwork 1152K 16
mapped file 199.2M 186
shared memory 784K 19
=========== ======= =======
TOTAL 4.8G 5349
TOTAL, minus reserved VM space 4.8G 5349
I have a strange crash.
Process: MyApp [91555]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/3EDD7C49-65E2-4046-8BEE-0AC829A2A276/data/Containers/Bundle/Application/7667EA2E-A89B-44E8-8C14-828700B482E1/MyApp.app/MyApp
Identifier: MyApp
Version: 6.7 (6.7.0.3709)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [11615]
Responsible: MyApp [91555]
User ID: 501
Date/Time: 2017-03-04 18:29:43.848 +0800
OS Version: Mac OS X 10.12.3 (16D32)
Report Version: 12
Anonymous UUID: 74452B06-5487-4AB3-CA87-6DE166EFD550
Time Awake Since Boot: 790000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x00000001013a9018
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
kernel messages:
VM Regions Near 0x1013a9018:
--> __TEXT 00000001013a9000-0000000113ce1000 [297.2M] r-x/rwx SM=COW /Users/USER/Library/Developer/CoreSimulator/Devices/3EDD7C49-65E2-4046-8BEE-0AC829A2A276/data/Containers/Bundle/Application/7667EA2E-A89B-44E8-8C14-828700B482E1/MyApp.app/MyApp
__DATA 0000000113ce1000-0000000115cef000 [ 32.1M] rw-/rwx SM=COW /Users/USER/Library/Developer/CoreSimulator/Devices/3EDD7C49-65E2-4046-8BEE-0AC829A2A276/data/Containers/Bundle/Application/7667EA2E-A89B-44E8-8C14-828700B482E1/MyApp.app/MyApp
Application Specific Information:
CoreSimulator 338.16 - Device: iPhone 7 - Runtime: iOS 10.2 (14C89) - DeviceType: iPhone 7
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld_sim 0x000000011cea69dc ImageLoaderMachO::usesTwoLevelNameSpace() const + 8
1 dyld_sim 0x000000011ceac85b ImageLoaderMachOCompressed::doBindFastLazySymbol(unsigned int, ImageLoader::LinkContext const&, void (*)(), void (*)()) + 43
2 dyld_sim 0x000000011ce9abb9 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 90
3 libdyld.dylib 0x000000012b2b7516 dyld_stub_binder + 282
4 ??? 0x0000000113ce1008 0 + 4627238920
5 MyApp 0x000000010ecca652 __54-[SpriteDataManager loadAnimFrames:savePath:callback:]_block_invoke_2 + 210
6 libclang_rt.asan_iossim_dynamic.dylib 0x000000012827b334 __wrap_dispatch_async_block_invoke + 260
7 libdispatch.dylib 0x000000012b24f808 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000012b27112e _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000012b2584fb _dispatch_main_queue_callback_4CF + 1054
10 com.apple.CoreFoundation 0x0000000121e88e49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11 com.apple.CoreFoundation 0x0000000121e4e37d __CFRunLoopRun + 2205
12 com.apple.CoreFoundation 0x0000000121e4d884 CFRunLoopRunSpecific + 420
13 com.apple.GraphicsServices 0x000000012a484a6f GSEventRunModal + 161
14 com.apple.UIKit 0x000000012408ec68 UIApplicationMain + 159
15 MyApp 0x0000000104c4f326 main + 1238
16 libdyld.dylib 0x000000012b2ba68d start + 1
Since apps on simulator don't need code signing at all, why the Exception Type says EXC_BAD_ACCESS (Code Signature Invalid)? Could anyone explain what this kind of crash is and how it happens.
Try going into "Edit Scheme" and unchecking all of the tests from "Build" clean your app And run it again.
Go to TARGETS> Tests make sure you signin or if its ad hoc signed in the Test Target then set up a profile for the Test target or click Automatically Signing
Note: I have been using Xcode7.x with MacOS Sierra since Beta 1 or 2. It's worked just fine. I haven't touched Xcode 8 on this machine.
Since beta 5, suddenly I can't do anything with Xcode 7. I start it up and open my workspace and as soon as I change the view to another file or project or assets or anything, it crashes with the following error:
Process: Xcode [869]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.3.1 (10188.1)
Build Info: IDEFrameworks-10188001000000000~3
App Item ID: 497799835
App External ID: 817226719
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [869]
User ID: 501
Date/Time: 2016-08-11 11:21:13.167 -0700
OS Version: Mac OS X 10.12 (16A286a)
Report Version: 12
Anonymous UUID: BC13DBAB-4D04-3E83-CF4A-4F1FFB581BCE
Time Awake Since Boot: 250 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x20:
-->
__TEXT 000000010ce99000-000000010ce9d000 [ 16K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 7D1014
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8ce08a31 objc_retain + 33
1 com.apple.dt.DVTKit 0x000000010d73838a __38-[DVTSourceTextView setTextContainer:]_block_invoke + 28
2 com.apple.dt.DVTFoundation 0x000000010d0e5e88 __95-[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:]_block_invoke + 91
3 com.apple.dt.DVTFoundation 0x000000010d0e4d2e __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke.195 + 83
4 com.apple.dt.DVTFoundation 0x000000010d00b911 DVTInvokeWithStrongOwnership + 75
5 com.apple.dt.DVTFoundation 0x000000010d0e48c6 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] + 336
6 com.apple.Foundation 0x00007fff7a0e9dbd NSKeyValueNotifyObserver + 350
7 com.apple.Foundation 0x00007fff7a0e9654 NSKeyValueDidChange + 486
8 com.apple.Foundation 0x00007fff7a2282d7 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 944
9 com.apple.Foundation 0x00007fff7a0ad3c9 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 60
10 com.apple.Foundation 0x00007fff7a115c3b _NSSetObjectValueAndNotify + 261
11 com.apple.CoreFoundation 0x00007fff786cfde7 -[NSArray makeObjectsPerformSelector:withObject:] + 279
12 com.apple.UIFoundation 0x00007fff8ac9282b -[NSLayoutManager setTextStorage:] + 912
13 com.apple.dt.DVTKit 0x000000010d6ad401 -[DVTFoldingLayoutManager setTextStorage:] + 154
14 com.apple.UIFoundation 0x00007fff8ace6515 -[NSTextStorage dealloc] + 117
15 com.apple.dt.DVTKit 0x000000010d64647e -[DVTTextStorage dealloc] + 911
16 com.apple.Foundation 0x00007fff7a11dcbd NSKVODeallocate + 94
17 com.apple.AppKit 0x00007fff76627281 -[NSTextView dealloc] + 813
18 com.apple.dt.DVTKit 0x000000010d803030 -[DVTCompletingTextView dealloc] + 120
19 com.apple.AppKit 0x00007fff76427a96 -[NSTextView release] + 464
20 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
21 libsystem_blocks.dylib 0x00007fff8d728952 _Block_release + 102
22 libdispatch.dylib 0x00007fff8d6d9c6f _dispatch_source_handler_dispose + 23
23 libdispatch.dylib 0x00007fff8d6c9da3 _dispatch_source_cancel_callout + 90
24 libdispatch.dylib 0x00007fff8d6c0a6e _dispatch_source_invoke + 1512
25 libdispatch.dylib 0x00007fff8d6cba0f _dispatch_main_queue_callback_4CF + 505
26 com.apple.CoreFoundation 0x00007fff7870bd39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
27 com.apple.CoreFoundation 0x00007fff786cd15d __CFRunLoopRun + 2205
28 com.apple.CoreFoundation 0x00007fff786cc664 CFRunLoopRunSpecific + 420
29 com.apple.HIToolbox 0x00007fff77c6ef7c RunCurrentEventLoopInMode + 240
30 com.apple.HIToolbox 0x00007fff77c6edb1 ReceiveNextEventCommon + 432
31 com.apple.HIToolbox 0x00007fff77c6ebe6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
32 com.apple.AppKit 0x00007fff76365c41 _DPSNextEvent + 1093
33 com.apple.AppKit 0x00007fff76a75693 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
34 com.apple.dt.DVTKit 0x000000010d601439 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 396
35 com.apple.AppKit 0x00007fff7635a610 -[NSApplication run] + 926
36 com.apple.AppKit 0x00007fff763250e2 NSApplicationMain + 1237
37 com.apple.dt.Xcode 0x000000010ce9a39b 0x10ce99000 + 5019
38 libdyld.dylib 0x00007fff8d6f4255 start + 1
Anyone else come across this in beta 5?
From macOS Sierra beta 5 release notes:
Xcode
Xcode 7.3.1 is not compatible with macOS Sierra.
Workaround: Use Xcode 8.0 beta or later when running on macOS Sierra.
It should be possible to use swift 2.3 in xcode 8. From beta 6 notes:
For developers on macOS Sierra it is recommended that you move to Xcode 8. You can continue to develop with the Swift 2.x release with the included Swift 2.3 compiler until you are ready to migrate to Swift 3. Xcode 7.3.1 is not supported on macOS Sierra. (27224895)
With a stable Mac OS X Sierra (v10.12), Xcode 7.3.1 started to work on third launch. Everything seems to work fine, no problems with emulator or anything!
Don't lose hope if Xcode doesn't work on the first launch :)
I've been able to recreate this same particular issue (DVTSourceTextView setTextContainer) in Mac OS Sierra (non beta) for xcode 7.3.1. Oddly, I found it somehow attributed to my Cocoapods implementation. I was able to open up the project but not the workspace. I deleted my workspace and Pods directory then did a pod install to redo it.
The issue was fixed then. Lost a couple days of work researching, hoping this helps someone.
I'm using Xcode 5.0.2 on os x mavericks 10.9.1 and i'm facing a strange problem as Xcode keeps loading for about 30 secs and then crashes when i opened it and do any mouse event i tried to unable the Source control as suggested in this post answer but with no mean, the problem report is as follows:
Process: Xcode [684]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
Code Type: X86-64 (Native)
Parent Process: launchd [142]
Responsible: Xcode [684]
User ID: 502
Date/Time: 2014-01-19 16:18:32.647 +0200
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 04B4E5B4-74DF-8C99-FE04-776F426F8551
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Application Specific Information:
ProductBuildVersion: 5A3005
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8d33f0e6 objc_release + 22
1 libobjc.A.dylib 0x00007fff8d33e65a (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 502
2 com.apple.CoreFoundation 0x00007fff8a716d72 _CFAutoreleasePoolPop + 50
3 com.apple.Foundation 0x00007fff8da0c6ab -[__NSOperationInternal _start:] + 913
4 com.apple.Foundation 0x00007fff8da0c23b __NSOQSchedule_f + 64
5 libdispatch.dylib 0x00007fff94c772ad _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff94c7ef03 _dispatch_main_queue_callback_4CF + 333
7 com.apple.CoreFoundation 0x00007fff8a793839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
8 com.apple.CoreFoundation 0x00007fff8a74eb14 __CFRunLoopRun + 1636
9 com.apple.CoreFoundation 0x00007fff8a74e275 CFRunLoopRunSpecific + 309
10 com.apple.HIToolbox 0x00007fff9518cf0d RunCurrentEventLoopInMode + 226
11 com.apple.HIToolbox 0x00007fff9518ccb7 ReceiveNextEventCommon + 479
12 com.apple.HIToolbox 0x00007fff9518cabc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 com.apple.AppKit 0x00007fff8eda828e _DPSNextEvent + 1434
14 com.apple.AppKit 0x00007fff8eda78db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 com.apple.AppKit 0x00007fff8ed9b9cc -[NSApplication run] + 553
16 com.apple.AppKit 0x00007fff8ed86803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff9345a5fd start + 1
I'm working on a Mac mini mid 2010 with processor 2.4 Ghz Intel Core 2 Duo, Memory 8 GB 1067 MHz DDR3, Does anyone know how to fix this and why this is happening? thanks in advance.
You might have an autosave problem where Xcode had trouble autosaving the project that keeps crashing. Go to the following location on your Mac:
/Users/YourUsername/Library/Autosave Information
Delete anything in there related to Xcode, such as files named Unsaved Xcode Document.xcworkspace. Restart Xcode and see if that fixes it.
https://discussions.apple.com/message/23991398#23991398
Our web app is generating LowMemory crashes very often on Ipad and Iphone.
This is an example from CrashReporter
Incident Identifier: 858042
CrashReporter Key: 6bda3a
Hardware Model: iPad1,1
OS Version: iPhone OS 5.0.1 (9A405)
Kernel Version: Darwin Kernel Version 11.0.0: Tue Nov 1 20:33:58 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8930X
Date: 2012-01-01 04:25:33
Time since snapshot: 74 ms
Free pages: 476
Wired pages: 13005
Purgeable pages: 0
Largest process: MobileSafari
Processes
Name UUID Count resident pages
lsd <5b380bab4f83387fb3c5c3d9de8d5e31> 137
pasteboardd <89a3457066f6346984e7d56929d128a2> 158
MobileSafari <586de8c153f93939a9f42bec9d0d8bfd> 31908 (jettisoned) (active)
MobileMail <7064f2baf3f23db987bc8ec99855fe53> 954 (jettisoned)
networkd <6ee7a78e56073f6e8db4c2cc3265fdb4> 132
filecoordination <1828dd8176c03a93ba316423dd59e5e5> 135
aosnotifyd <58089d732ab43bbea0aec4a6f812f446> 371
BTServer <e03baab8e0103188979ce54b87591065> 317
aggregated <68a25a1690cb372096543a46abed14d7> 295
apsd <e4b6e6e4f31e36f79815747ecbf52907> 230
dataaccessd <b4f61f117ee635c48329af8572733d30> 1004
fairplayd.K48 <ff02701c98d63606baeff5aa951d59f9> 114
fseventsd <78af02202422321885dfc85c24534b0e> 422
iapd <3ee7f82879033b4fb93b9cf1f4ecae29> 295
imagent <8e2042f2ec9e3af9ba400f031f1bbfa7> 297
locationd <91c84ab19dd03e4ab1b4cc30178ab1c0> 584
mDNSResponder <b75f43f012ad3d9ea172d37491994e22> 186
mediaremoted <b9fa7d1381013c2fa90ea134ff905f59> 191
mediaserverd <478e5e8345c83be5ba1868906813bb75> 636
ubd <7eaf0b0ca5b83afabecb0dfaa38c7a19> 661
wifid <e176ab123beb3000bdb89e020612c1d6> 238
powerd <25ddef6b52e4385b819e777dd2eeed3c> 131
lockdownd <a68aa1526ef13a9bb4426bb71ffc1e3c> 206
CommCenterClassi <3ef6d0094b5c39d3b77e558ad3018d24> 282
syslogd <dd3766bcb1213e91b66283635db09773> 91
SpringBoard <7506c20d86da3f1dbe9bf38f8bda253d> 5744 (active)
configd <3430c0025ed13f56800a329b7254d2ae> 277
notifyd <3793fabace3a385687b3c29c1fa1fcac> 183
UserEventAgent <6e1cabc1ec6d372c90a6bdeaa7b258fa> 327
launchd <cc35dd7a872334319ed028e6bbeae081> 98
End
How do we read this crash log? What can we do in the web app to reduce the crashes? ( it could crash every time we visit the site with a clean boot )