Metal renderer causes my iterm2 to crash repeatedly
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Latest nightly (has been crashing over the last week)
- OS version: 10.13.3
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
Detailed steps to reproduce the problem:
- Put laptop to sleep
- Wake it up, have to force quit
What happened:
I don't know if turning off "native full screen" is rare or not, but I have that turned off and my terminal always in full screen mode. Not sure if it's related, but it felt like the kind of detail that might be important.
Date/Time: 2018-02-06 18:00:25 -0500
OS Version: Mac OS X 10.13.3 (Build 17D47)
Architecture: x86_64h
Report Version: 26
Data Source: Stackshots
Command: iTerm2
Path: /Applications/iTerm.app/Contents/MacOS/iTerm2
Identifier: com.googlecode.iterm2
Version: 3.2.20180206-nightly (3.2.20180206-nightly)
Parent: launchd [1]
PID: 40218
Event: hang
Duration: 1.10s (process was unresponsive for 23 seconds before sampling)
Steps: 11 (100ms sampling interval)
Hardware model: MacBookPro14,2
Active cpus: 4
Time Awake Since Boot: 120000s
Time Since Wake: 970s
Fan speed: 0 rpm
--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------
Heaviest stack for the main thread of the target process:
11 start + 1 (libdyld.dylib + 4373) [0x7fff6fad1115]
11 main + 110 (iTerm2 + 6014) [0x10803977e]
11 NSApplicationMain + 804 (AppKit + 24346) [0x7fff4576df1a]
11 -[NSApplication run] + 764 (AppKit + 224621) [0x7fff4579ed6d]
11 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8223564) [0x7fff45f3fb4c]
11 _DPSNextEvent + 2085 (AppKit + 270175) [0x7fff457a9f5f]
11 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194836) [0x7fff474de914]
11 ReceiveNextEventCommon + 613 (HIToolbox + 195478) [0x7fff474deb96]
11 RunCurrentEventLoopInMode + 286 (HIToolbox + 196134) [0x7fff474dee26]
11 CFRunLoopRunSpecific + 483 (CoreFoundation + 544579) [0x7fff481c6f43]
11 __CFRunLoopRun + 2586 (CoreFoundation + 547818) [0x7fff481c7bea]
11 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 (CoreFoundation + 801065) [0x7fff48205929]
11 _dispatch_main_queue_callback_4CF + 776 (libdispatch.dylib + 53689) [0x7fff6faa31b9]
11 _dispatch_source_invoke + 620 (libdispatch.dylib + 16408) [0x7fff6fa9a018]
11 _dispatch_continuation_pop + 472 (libdispatch.dylib + 85622) [0x7fff6faaae76]
11 _dispatch_client_callout + 8 (libdispatch.dylib + 7504) [0x7fff6fa97d50]
11 __71-[iTermUpdateCadenceController setGCDUpdateCadence:liveResizing:force:]_block_invoke + 34 (iTerm2 + 2900860) [0x1082fc37c]
11 -[iTermUpdateCadenceController updateDisplay] + 196 (iTerm2 + 2901164) [0x1082fc4ac]
11 -[PTYSession updateDisplay] + 209 (iTerm2 + 1291208) [0x1081733c8]
11 -[iTermHistogram stringValue] + 205 (iTerm2 + 2934704) [0x1083047b0]
5 -[iTermHistogram stringForBucket:] + 488 (iTerm2 + 2936945) [0x108305071]
5 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d]
5 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74]
1 __CFStringAppendFormatCore + 324 (CoreFoundation + 211956) [0x7fff48175bf4] (running)
Process: iTerm2 [40218]
Path: /Applications/iTerm.app/Contents/MacOS/iTerm2
Architecture: x86_64
Parent: launchd [1]
UID: 501
Task size: 4123.69 MB (+52.76 MB)
CPU Time: 0.998s
Note: Unresponsive for 23 seconds before sampling
Note: 2 idle work queue threads omitted
Thread 0x22bfea DispatchQueue 1 11 samples (1-11) priority 38-46 (base 46) cpu time 0.996s
<thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [184], IO tier 0, priority 46 (46)>
11 start + 1 (libdyld.dylib + 4373) [0x7fff6fad1115] 1-11
11 main + 110 (iTerm2 + 6014) [0x10803977e] 1-11
11 NSApplicationMain + 804 (AppKit + 24346) [0x7fff4576df1a] 1-11
11 -[NSApplication run] + 764 (AppKit + 224621) [0x7fff4579ed6d] 1-11
11 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8223564) [0x7fff45f3fb4c] 1-11
11 _DPSNextEvent + 2085 (AppKit + 270175) [0x7fff457a9f5f] 1-11
11 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194836) [0x7fff474de914] 1-11
11 ReceiveNextEventCommon + 613 (HIToolbox + 195478) [0x7fff474deb96] 1-11
11 RunCurrentEventLoopInMode + 286 (HIToolbox + 196134) [0x7fff474dee26] 1-11
11 CFRunLoopRunSpecific + 483 (CoreFoundation + 544579) [0x7fff481c6f43] 1-11
11 __CFRunLoopRun + 2586 (CoreFoundation + 547818) [0x7fff481c7bea] 1-11
11 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 (CoreFoundation + 801065) [0x7fff48205929] 1-11
11 _dispatch_main_queue_callback_4CF + 776 (libdispatch.dylib + 53689) [0x7fff6faa31b9] 1-11
11 _dispatch_source_invoke + 620 (libdispatch.dylib + 16408) [0x7fff6fa9a018] 1-11
11 _dispatch_continuation_pop + 472 (libdispatch.dylib + 85622) [0x7fff6faaae76] 1-11
11 _dispatch_client_callout + 8 (libdispatch.dylib + 7504) [0x7fff6fa97d50] 1-11
11 __71-[iTermUpdateCadenceController setGCDUpdateCadence:liveResizing:force:]_block_invoke + 34 (iTerm2 + 2900860) [0x1082fc37c] 1-11
11 -[iTermUpdateCadenceController updateDisplay] + 196 (iTerm2 + 2901164) [0x1082fc4ac] 1-11
11 -[PTYSession updateDisplay] + 209 (iTerm2 + 1291208) [0x1081733c8] 1-11
11 -[iTermHistogram stringValue] + 205 (iTerm2 + 2934704) [0x1083047b0] 1-11
2 -[iTermHistogram stringForBucket:] + 519 (iTerm2 + 2936976) [0x108305090] 1-2
1 _CFRelease + 345 (CoreFoundation + 1432377) [0x7fff4829fb39] (running) 1
<priority 39 (46)>
1 _CFRelease + 1056 (CoreFoundation + 1433088) [0x7fff4829fe00] 2
1 CFAllocatorDeallocate + 4 (CoreFoundation + 17364) [0x7fff481463d4] (running) 2
<priority 38 (46)>
1 -[iTermHistogram stringForBucket:] + 488 (iTerm2 + 2936945) [0x108305071] 3
1 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d] 3
1 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74] 3
1 __CFStringAppendFormatCore + 7732 (CoreFoundation + 219364) [0x7fff481778e4] 3
1 calloc + 30 (libsystem_malloc.dylib + 17878) [0x7fff6fc7b5d6] 3
1 malloc_zone_calloc + 87 (libsystem_malloc.dylib + 15552) [0x7fff6fc7acc0] 3
1 default_zone_calloc + 20 (libsystem_malloc.dylib + 74379) [0x7fff6fc8928b] (running) 3
<priority 41 (46)>
1 objc_msgSend + 46 (libobjc.A.dylib + 28334) [0x7fff6eed3eae] (running) 4
1 -[iTermHistogram stringForBucket:] + 488 (iTerm2 + 2936945) [0x108305071] 5
1 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d] 5
1 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74] 5
1 __CFStringAppendFormatCore + 324 (CoreFoundation + 211956) [0x7fff48175bf4] (running) 5
<priority 43 (46)>
1 -[iTermHistogram stringForBucket:] + 290 (iTerm2 + 2936747) [0x108304fab] 6
1 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d] 6
1 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74] 6
1 __CFStringAppendFormatCore + 7732 (CoreFoundation + 219364) [0x7fff481778e4] 6
1 calloc + 30 (libsystem_malloc.dylib + 17878) [0x7fff6fc7b5d6] 6
1 malloc_zone_calloc + 87 (libsystem_malloc.dylib + 15552) [0x7fff6fc7acc0] 6
1 nano_calloc + 72 (libsystem_malloc.dylib + 37335) [0x7fff6fc801d7] 6
1 OSAtomicDequeue + 28 (libsystem_platform.dylib + 6392) [0x7fff6fd528f8] (running) 6
<priority 44 (46)>
3 -[iTermHistogram stringForBucket:] + 488 (iTerm2 + 2936945) [0x108305071] 7-9
3 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d] 7-9
3 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74] 7-9
1 __CFStringAppendFormatCore + 10633 (CoreFoundation + 222265) [0x7fff48178439] 7
1 __CFStringAppendBytes + 355 (CoreFoundation + 229475) [0x7fff4817a063] 7
1 __CFStringDecodeByteStream3 + 673 (CoreFoundation + 172689) [0x7fff4816c291] 7
1 CFStringEncodingGetConverter + 9 (CoreFoundation + 30361) [0x7fff48149699] 7
1 os_unfair_lock_lock + 14 (libsystem_platform.dylib + 17956) [0x7fff6fd55624] (running) 7
<priority 45 (46)>
1 __CFStringAppendFormatCore + 12743 (CoreFoundation + 224375) [0x7fff48178c77] 8
1 snprintf_l + 118 (libsystem_c.dylib + 275823) [0x7fff6fb6356f] 8
1 vsnprintf_l + 41 (libsystem_c.dylib + 337164) [0x7fff6fb7250c] 8
1 _vsnprintf + 415 (libsystem_c.dylib + 337071) [0x7fff6fb724af] 8
1 __v2printf + 473 (libsystem_c.dylib + 446609) [0x7fff6fb8d091] 8
1 __vfprintf + 15840 (libsystem_c.dylib + 296886) [0x7fff6fb687b6] 8
1 __sfvwrite + 371 (libsystem_c.dylib + 256679) [0x7fff6fb5eaa7] 8
1 _platform_memmove$VARIANT$Haswell + 163 (libsystem_platform.dylib + 20419) [0x7fff6fd55fc3] (running) 8
1 __CFStringAppendFormatCore + 9357 (CoreFoundation + 220989) [0x7fff48177f3d] 9
1 __CFStringAppendBytes + 674 (CoreFoundation + 229794) [0x7fff4817a1a2] 9
1 __CFStringChangeSizeMultiple + 2047 (CoreFoundation + 99519) [0x7fff4815a4bf] (running) 9
<priority 46 (46)>
1 -[iTermHistogram stringForBucket:] + 47 (iTerm2 + 2936504) [0x108304eb8] 10
1 +[NSString string] + 36 (Foundation + 547326) [0x7fff4a2fd9fe] 10
1 CFStringCreateMutable + 70 (CoreFoundation + 94534) [0x7fff48159146] 10
1 _CFRuntimeCreateInstance + 635 (CoreFoundation + 12763) [0x7fff481451db] 10
1 object_setClass + 249 (libobjc.A.dylib + 43131) [0x7fff6eed787b] (running) 10
1 -[iTermHistogram stringForBucket:] + 290 (iTerm2 + 2936747) [0x108304fab] 11
1 +[NSString stringWithFormat:] + 169 (Foundation + 96285) [0x7fff4a28f81d] 11
1 _CFStringCreateWithFormatAndArgumentsAux2 + 116 (CoreFoundation + 211572) [0x7fff48175a74] 11
1 __CFStringAppendFormatCore + 16194 (CoreFoundation + 227826) [0x7fff481799f2] 11
1 free + 96 (libsystem_malloc.dylib + 14013) [0x7fff6fc7a6bd] 11
1 _nano_vet_and_size_of_live + 58 (libsystem_malloc.dylib + 85508) [0x7fff6fc8be04] (running) 11
Thread 0x22c019 11 samples (1-11) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [184], IO tier 0>
11 thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff6fd5bc5d] 1-11
11 _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff6fd5c56d] 1-11
11 _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff6fd5c6c1] 1-11
11 __NSThread__start__ + 1197 (Foundation + 192232) [0x7fff4a2a6ee8] 1-11
11 -[TaskNotifier run] + 3353 (iTerm2 + 819870) [0x10810029e] 1-11
11 -[TaskNotifier handleReadOnFileDescriptor:task:fdSet:] + 85 (iTerm2 + 815897) [0x1080ff319] 1-11
11 -[PTYTask processRead] + 161 (iTerm2 + 1099039) [0x10814451f] 1-11
11 -[PTYTask readTask:length:] + 69 (iTerm2 + 1099659) [0x10814478b] 1-11
11 -[PTYSession threadedReadTask:length:] + 220 (iTerm2 + 1259708) [0x10816b8bc] 1-11
11 _dispatch_semaphore_wait_slow + 101 (libdispatch.dylib + 39185) [0x7fff6fa9f911] 1-11
11 semaphore_wait_trap + 10 (libsystem_kernel.dylib + 75774) [0x7fff6fc177fe] 1-11
*11 semaphore_wait_continue + 0 (kernel + 2577040) [0xffffff8000475290] 1-11
Thread 0x22c01a 11 samples (1-11) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [184], IO tier 0>
11 thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff6fd5bc5d] 1-11
11 _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff6fd5c56d] 1-11
11 _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff6fd5c6c1] 1-11
11 __NSThread__start__ + 1197 (Foundation + 192232) [0x7fff4a2a6ee8] 1-11
11 -[BackgroundThread main] + 217 (iTerm2 + 1847758) [0x1081fb1ce] 1-11
11 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 (Foundation + 134166) [0x7fff4a298c16] 1-11
11 CFRunLoopRunSpecific + 483 (CoreFoundation + 544579) [0x7fff481c6f43] 1-11
11 __CFRunLoopRun + 1783 (CoreFoundation + 547015) [0x7fff481c78c7] 1-11
11 __CFRunLoopServiceMachPort + 341 (CoreFoundation + 550261) [0x7fff481c8575] 1-11
11 mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff6fc177c2] 1-11
*11 ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-11
Thread 0x22c01e 11 samples (1-11) priority 31 (base 31) cpu time <0.001s
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [184], IO tier 0>
11 thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff6fd5bc5d] 1-11
11 _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff6fd5c56d] 1-11
11 _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff6fd5c6c1] 1-11
11 __NSThread__start__ + 1197 (Foundation + 192232) [0x7fff4a2a6ee8] 1-11
11 -[ProcessCache _run] + 236 (iTerm2 + 122268) [0x108055d9c] 1-11
11 +[NSThread sleepForTimeInterval:] + 156 (Foundation + 849579) [0x7fff4a3476ab] 1-11
11 __semwait_signal + 10 (libsystem_kernel.dylib + 114778) [0x7fff6fc2105a] 1-11
*11 semaphore_wait_continue + 0 (kernel + 2577040) [0xffffff8000475290] 1-11
Thread 0x22c036 Thread name "com.apple.NSEventThread" 11 samples (1-11) priority 46 (base 46) cpu time 0.002s
<thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [184], IO tier 0>
11 thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff6fd5bc5d] 1-11
11 _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff6fd5c56d] 1-11
11 _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff6fd5c6c1] 1-11
11 _NSEventThread + 184 (AppKit + 1569736) [0x7fff458e73c8] 1-11
11 CFRunLoopRunSpecific + 483 (CoreFoundation + 544579) [0x7fff481c6f43] 1-11
11 __CFRunLoopRun + 1783 (CoreFoundation + 547015) [0x7fff481c78c7] 1-11
11 __CFRunLoopServiceMachPort + 341 (CoreFoundation + 550261) [0x7fff481c8575] 1-11
11 mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff6fc177c2] 1-11
*11 ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-11
Binary Images:
0x108038000 - 0x1083e2fff com.googlecode.iterm2 3.2.20180206-nightly (3.2.20180206-nightly) <3269536B-4A4D-3611-BDDC-99AFDACF7F49> /Applications/iTerm.app/Contents/MacOS/iTerm2
0x7fff45768000 - 0x7fff465c5fff com.apple.AppKit 6.9 (1561.20.106) <D03AE413-C601-3B7C-A3D4-FC32F4C13940> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff474af000 - 0x7fff477b4fff com.apple.HIToolbox 2.1.1 (910.4) <D1A799BC-146A-35E8-86FF-E36273123006> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff48142000 - 0x7fff485e2fff com.apple.CoreFoundation 6.9 (1451) <7AFE9C8F-A562-3AFC-8402-117AA02F57E9> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff4a278000 - 0x7fff4a63dfff com.apple.Foundation 6.9 (1451) <B99F94E7-117E-39CC-A65D-B7AEA8998481> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff6eecd000 - 0x7fff6f2bbfff libobjc.A.dylib (723) <93A92316-DE1E-378C-8891-99720B50D075> /usr/lib/libobjc.A.dylib
0x7fff6fa96000 - 0x7fff6facffff libdispatch.dylib (913.30.4) <7D0E3183-282B-3FEE-A734-2C0ADC092084> /usr/lib/system/libdispatch.dylib
0x7fff6fad0000 - 0x7fff6faedfff libdyld.dylib (519.2.2) <C50D02BC-A333-3313-B787-02F255A6783F> /usr/lib/system/libdyld.dylib
0x7fff6fb20000 - 0x7fff6fba9fff libsystem_c.dylib (1244.30.3) <E0136C71-0648-36F0-9F84-82EA2748A8D7> /usr/lib/system/libsystem_c.dylib
0x7fff6fc05000 - 0x7fff6fc2afff libsystem_kernel.dylib (4570.41.2) <5155A4C3-825B-3178-AC51-0D2D2F2A6618> /usr/lib/system/libsystem_kernel.dylib
0x7fff6fc77000 - 0x7fff6fc96fff libsystem_malloc.dylib (140.40.1) <36B22C99-D772-3039-9A4C-AA31389965E1> /usr/lib/system/libsystem_malloc.dylib
0x7fff6fd51000 - 0x7fff6fd58fff libsystem_platform.dylib (161.20.1) <C049250F-8C35-314D-810F-4E28AEAED983> /usr/lib/system/libsystem_platform.dylib
0x7fff6fd59000 - 0x7fff6fd64fff libsystem_pthread.dylib (301.30.1) <ABA848E1-6978-3B42-A3A7-608B2C36FA93> /usr/lib/system/libsystem_pthread.dylib
*0xffffff8000200000 - 0xffffff8000bfffff kernel (4570.41.2) <18D901F1-4A03-3FF1-AE34-C26B2732F13C> /System/Library/Kernels/kernel
What should have happened: