Monday, January 30, 2012

iTerm crash


iTerm decided to stop working for me today. Every time I tried launching a new terminal it would crash out, giving me a crash reporter window stating: "iTerm quit unexpectedly. Click Reopen to open the application again...":



Process:         iTerm [2471]
Path:            /Applications/iTerm.app/Contents/MacOS/iTerm
Identifier:      net.sourceforge.iTerm
Version:         0.10 (0.10)
Code Type:       X86 (Native)
Parent Process:  launchd [219]


Date/Time:       2012-01-30 17:49:55.170 -0500
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9


Interval Since Last Report:          49699 sec
Crashes Since Last Report:           22
Per-App Interval Since Last Report:  16268 sec
Per-App Crashes Since Last Report:   22
Anonymous UUID:                      xxxxxxxxx


Crashed Thread:  0  Dispatch queue: com.apple.main-thread


Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000


VM Regions Near 0:
--> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/iTerm.app/Contents/MacOS/iTerm
    __TEXT                 0000000000001000-0000000000007000 [   24K] r-x/rwx SM=COW  /Applications/iTerm.app/Contents/MacOS/iTerm


Application Specific Information:
Performing @selector(launchSession:) from sender NSOutlineView 0x29bf40
objc[2471]: garbage collection is OFF


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_c.dylib             0x94ddf7da bzero$VARIANT$sse42 + 26
1   iTerm                         0x1402141a -[VT100Screen resetDirty] + 42
2   iTerm                         0x14011dca -[PTYTextView updateDirtyRects] + 1034
3   com.apple.Foundation           0x9626df49 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
----*Snip

In system.log I was seeing:

Jan 30 17:30:31 computername iTerm[2345]: Could not find image named 'delete'.
Jan 30 17:30:31 computername iTerm[2345]: Could not find image named 'add'.
Jan 30 17:30:38 computername com.apple.launchd.peruser.501[219] ([0x0-0x13e13e].net.sourceforge.iTerm[2345]): Job appears to have crashed: Bus error: 10
Jan 30 17:30:38 computername ReportCrash[2349]: Saved crash report for iTerm[2345] version 0.10 (0.10) to /Users/user/Library/Logs/DiagnosticReports/iTerm_2012-01-30-173038_computername.crash
Jan 30 17:33:52 computername iTerm[2366]: Could not find image named 'delete'.
Jan 30 17:33:52 computername iTerm[2366]: Could not find image named 'add'.
Jan 30 17:36:48 computername iTerm[2391]: Could not find image named 'delete'.
Jan 30 17:36:48 computername iTerm[2391]: Could not find image named 'add'.
Jan 30 17:36:54 computername com.apple.launchd.peruser.501[219] ([0x0-0x147147].net.sourceforge.iTerm[2391]): Job appears to have crashed: Bus error: 10
Jan 30 17:36:54 computername ReportCrash[2394]: Saved crash report for iTerm[2391] version 0.10 (0.10) to /Users/user/Library/Logs/DiagnosticReports/iTerm_2012-01-30-173654_computername.crash
Jan 30 17:36:54 computername ReportCrash[2394]: Removing excessive log: file://localhost/Users/user/Library/Logs/DiagnosticReports/iTerm_2012-01-30-022323_computername.crash


This was only happening for my user account. The app worked when I switched to another user account on the machine. After spending a little while poking around my profile and trying to use lsof to figure out what files were being used, I decided to look around the web a little more. Low and behold, iTerm2 is available. Tried that, works like a charm. Thanks iTerm and iTerm2 developers!

tl;dr version - when things stop working try the latest/greatest version. If you're running into problems using iTerm, upgrade to iTerm2.
Post a Comment