Closed adamkiss closed 6 years ago
can you reproduce by building the code in git? because i can't. this is a null deref, but without having a backtrace or more details i cant guess what's about
On Mon, Apr 30, 2018 at 3:20 PM, Adam Kiss notifications@github.com wrote:
Hello,
I installed therm with brew cask, and when I start it, I see icon and application bar changes to therm, but no windows show up. When I hit ⌘ + N to open a new window, application crashes with following exception:
Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information: Crashing on exception: *** NSRunStorage, _NSBlockNumberForIndex(): index (0) beyond array bounds (0)
Versions:
❯ sw_vers; and brew -v ProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G1421 Homebrew 1.6.2-47-g9b56b13 Homebrew/homebrew-core (git revision ea3ba; last commit 2018-04-30)
I'd like to try this out, so let me know if you need any additional information. Thank you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trufae/Therm/issues/41, or mute the thread https://github.com/notifications/unsubscribe-auth/AGIjG21Hqkw648EQNR--ah-2yy84zEQQks5ttw-JgaJpZM4Tskmy .
@trufae I can of course provide whatever logs you need, I just didn't want to start posting random logs over the internet, possibly without reason.
Trying to build git ^HEAD now.
Edit: build failed because of missing certificate. Edit: with my certificate (the free developer one), it built, but the same thing happened.
``` ** BUILD SUCCEEDED ** build/Development/Therm.app/Contents/MacOS/Therm 2018-04-30 21:38:05.205 Therm[21400:17986191] !!! _NSLayoutTreeGetBaselineOffsetForGlyphAtIndex invalid glyph index 0 2018-04-30 21:38:05.205 Therm[21400:17986191] *** NSRunStorage, _NSBlockNumberForIndex(): index (0) beyond array bounds (0) 2018-04-30 21:38:05.232 Therm[21400:17986191] !!! _NSLayoutTreeGetBaselineOffsetForGlyphAtIndex invalid glyph index 0 2018-04-30 21:38:05.232 Therm[21400:17986191] *** NSRunStorage, _NSBlockNumberForIndex(): index (0) beyond array bounds (0) 2018-04-30 21:38:05.263 Therm[21400:17986191] Not quitting iTerm2 because it ran very briefly and had no user interaction. Set the MinRunningTime float preference to 0 to turn this feature off. 2018-04-30 21:38:14.583 Therm[21400:17986191] !!! _NSLayoutTreeGetBaselineOffsetForGlyphAtIndex invalid glyph index 0 2018-04-30 21:38:14.583 Therm[21400:17986191] *** NSRunStorage, _NSBlockNumberForIndex(): index (0) beyond array bounds (0) 2018-04-30 21:38:14.586 Therm[21400:17986191] ( 0 CoreFoundation 0x00007fff8a994452 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff8f858f7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff8a9fb41d +[NSException raise:format:] + 205 3 UIFoundation 0x00007fff908d6fa4 _NSBlockNumberForIndex + 84 4 UIFoundation 0x00007fff907feb6f -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] + 284 5 UIFoundation 0x00007fff9085fd76 -[NSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 880 6 UIFoundation 0x00007fff90912c62 -[NSATSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 644 7 UIFoundation 0x00007fff90912c29 -[NSATSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 587 8 Therm 0x000000010909e4f7 -[PTYFontInfo computedUnderlineOffset] + 391 9 Therm 0x000000010909e201 -[PTYFontInfo setFont:] + 209 10 Therm 0x00000001090b21fe -[PTYTextView setFont:nonAsciiFont:horizontalSpacing:verticalSpacing:] + 318 11 Therm 0x000000010906c48a -[PTYSession setScreenSize:parent:] + 1706 12 Therm 0x0000000109245dba -[PseudoTerminal setupSession:title:withSize:] + 2522 13 Therm 0x000000010924ce2f -[PseudoTerminal addSessionInNewTab:] + 191 14 Therm 0x000000010924bbf8 -[PseudoTerminal createTabWithProfile:withCommand:] + 1288 15 Therm 0x000000010916062f -[iTermController launchBookmark:inTerminal:withURL:hotkeyWindowType:makeKey:canActivate:command:block:] + 2751 16 Therm 0x000000010915f0fc -[iTermController launchBookmark:inTerminal:] + 124 17 Therm 0x0000000109159bfa -[iTermController newWindow:possiblyTmux:] + 426 18 Therm 0x0000000109274931 -[iTermApplicationDelegate newWindow:] + 193 19 libsystem_trace.dylib 0x00007fff9319407a _os_activity_initiate + 75 20 AppKit 0x00007fff895eddbd -[NSApplication sendAction:to:from:] + 460 21 AppKit 0x00007fff895edb57 -[NSMenuItem _corePerformAction] + 336 22 AppKit 0x00007fff895ed8b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 23 libsystem_trace.dylib 0x00007fff9319407a _os_activity_initiate + 75 24 AppKit 0x00007fff895ec7a5 -[NSMenu performKeyEquivalent:] + 357 25 AppKit 0x00007fff895eb949 -[NSApplication _handleKeyEquivalent:] + 920 26 AppKit 0x00007fff895120fe -[NSApplication sendEvent:] + 4274 27 Therm 0x0000000108fdc8ac -[iTermApplication sendEvent:] + 348 28 AppKit 0x00007fff89378df2 -[NSApplication run] + 796 29 AppKit 0x00007fff89342368 NSApplicationMain + 1176 30 Therm 0x0000000108e59b5e main + 110 31 libdyld.dylib 0x00007fff953715ad start + 1 ) make: *** [run] Illegal instruction: 4 ```
```
Process: Therm [21400]
Path: /Users/USER/*/Therm.app/Contents/MacOS/Therm
Identifier: com.pancake.therm
Version: unknown (unknown)
Code Type: X86-64 (Native)
Parent Process: make [21381]
Responsible: Terminal [21255]
User ID: 502
Date/Time: 2018-04-30 21:38:14.599 +0200
OS Version: Mac OS X 10.11.6 (15G1421)
Report Version: 11
Anonymous UUID: REDACTED
Time Awake Since Boot: 1700000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Application Specific Information:
Crashing on exception: *** NSRunStorage, _NSBlockNumberForIndex(): index (0) beyond array bounds (0)
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff8a994452 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff8f858f7e objc_exception_throw + 48
2 CoreFoundation 0x00007fff8a9fb41d +[NSException raise:format:] + 205
3 UIFoundation 0x00007fff908d6fa4 _NSBlockNumberForIndex + 84
4 UIFoundation 0x00007fff907feb6f -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] + 284
5 UIFoundation 0x00007fff9085fd76 -[NSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 880
6 UIFoundation 0x00007fff90912c62 -[NSATSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 644
7 UIFoundation 0x00007fff90912c29 -[NSATSTypesetter baselineOffsetInLayoutManager:glyphIndex:] + 587
8 Therm 0x000000010909e4f7 -[PTYFontInfo computedUnderlineOffset] + 391
9 Therm 0x000000010909e201 -[PTYFontInfo setFont:] + 209
10 Therm 0x00000001090b21fe -[PTYTextView setFont:nonAsciiFont:horizontalSpacing:verticalSpacing:] + 318
11 Therm 0x000000010906c48a -[PTYSession setScreenSize:parent:] + 1706
12 Therm 0x0000000109245dba -[PseudoTerminal setupSession:title:withSize:] + 2522
13 Therm 0x000000010924ce2f -[PseudoTerminal addSessionInNewTab:] + 191
14 Therm 0x000000010924bbf8 -[PseudoTerminal createTabWithProfile:withCommand:] + 1288
15 Therm 0x000000010916062f -[iTermController launchBookmark:inTerminal:withURL:hotkeyWindowType:makeKey:canActivate:command:block:] + 2751
16 Therm 0x000000010915f0fc -[iTermController launchBookmark:inTerminal:] + 124
17 Therm 0x0000000109159bfa -[iTermController newWindow:possiblyTmux:] + 426
18 Therm 0x0000000109274931 -[iTermApplicationDelegate newWindow:] + 193
19 libsystem_trace.dylib 0x00007fff9319407a _os_activity_initiate + 75
20 AppKit 0x00007fff895eddbd -[NSApplication sendAction:to:from:] + 460
21 AppKit 0x00007fff895edb57 -[NSMenuItem _corePerformAction] + 336
22 AppKit 0x00007fff895ed8b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
23 libsystem_trace.dylib 0x00007fff9319407a _os_activity_initiate + 75
24 AppKit 0x00007fff895ec7a5 -[NSMenu performKeyEquivalent:] + 357
25 AppKit 0x00007fff895eb949 -[NSApplication _handleKeyEquivalent:] + 920
26 AppKit 0x00007fff895120fe -[NSApplication sendEvent:] + 4274
27 Therm 0x0000000108fdc8ac -[iTermApplication sendEvent:] + 348
28 AppKit 0x00007fff89378df2 -[NSApplication run] + 796
29 AppKit 0x00007fff89342368 NSApplicationMain + 1176
30 Therm 0x0000000108e59b5e main + 110
31 libdyld.dylib 0x00007fff953715ad start + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.AppKit 0x00007fff8970ce6a -[NSApplication _crashOnException:] + 109
1 com.apple.AppKit 0x00007fff8970cdc4 -[NSApplication reportException:] + 140
2 com.apple.AppKit 0x00007fff89378e96 -[NSApplication run] + 960
3 com.apple.AppKit 0x00007fff89342368 NSApplicationMain + 1176
4 com.pancake.therm 0x0000000108e59b5e main + 110 (main.m:34)
5 libdyld.dylib 0x00007fff953715ad start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff874d95e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9321e578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9321c341 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff874d9efa kevent_qos + 10
1 libdispatch.dylib 0x00007fff86f81165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff86f80dcd _dispatch_mgr_thread + 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff874d95e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9321e578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9321c341 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff874d95e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9321e578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9321c341 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff874d95e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9321e578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9321c341 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff874d95e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9321e578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9321c341 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff874d907a __select + 10
1 com.pancake.therm 0x0000000108fb1690 -[TaskNotifier run] + 4528 (TaskNotifier.m:355)
2 com.apple.Foundation 0x00007fff90284e64 __NSThread__start__ + 1351
3 libsystem_pthread.dylib 0x00007fff9321e99d _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff9321e91a _pthread_start + 168
5 libsystem_pthread.dylib 0x00007fff9321c351 thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff874d2f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff874d23b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a909124 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a9085ec __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff8a907e38 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff90273ed9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
6 com.pancake.therm 0x000000010914c2b8 -[BackgroundThread main] + 280 (BackgroundThread.m:35)
7 com.apple.Foundation 0x00007fff90284e64 __NSThread__start__ + 1351
8 libsystem_pthread.dylib 0x00007fff9321e99d _pthread_body + 131
9 libsystem_pthread.dylib 0x00007fff9321e91a _pthread_start + 168
10 libsystem_pthread.dylib 0x00007fff9321c351 thread_start + 13
Thread 9:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff874d2f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff874d23b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a909124 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a9085ec __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff8a907e38 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff894dad95 _NSEventThread + 149
6 libsystem_pthread.dylib 0x00007fff9321e99d _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff9321e91a _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff9321c351 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007f8a43061800 rbx: 0x00007f8a4414f040 rcx: 0x0000000000000001 rdx: 0x0000000000000000
rdi: 0x00007fff56da7580 rsi: 0x0000000000000cf5 rbp: 0x00007fff56da7a20 rsp: 0x00007fff56da7a10
r8: 0x0000000000000000 r9: 0x0000000008000100 r10: 0x0000000000000000 r11: 0x0000000000000fff
r12: 0x00007fff8f8494c0 r13: 0x00007f8a41f16370 r14: 0x00007fff8f8494c0 r15: 0x00007fff752051b0
rip: 0x00007fff8970ce6a rfl: 0x0000000000010206 cr2: 0x00007f8a43997ffe
Logical CPU: 2
Error Code: 0x00000000
Trap Number: 6
Binary Images:
0x108e58000 - 0x10933bff7 +com.pancake.therm (unknown - unknown) <28F67675-CCC5-359A-A3F5-2F545E0087A9> /Users/USER/*/Therm.app/Contents/MacOS/Therm
0x1097b0000 - 0x1097c8fff libaprutil-1.0.dylib (36)
i have added a try/catch to avoid this exception, can you confirm the fix works for you?
you can download the 0.1.6 release too
On 30 Apr 2018, at 21:34, Adam Kiss notifications@github.com wrote:
@trufae https://github.com/trufae I can of course provide whatever logs you need, I just didn't want to start posting random logs over the internet, possibly without reason.
Trying to build git ^HEAD now.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trufae/Therm/issues/41#issuecomment-385504969, or mute the thread https://github.com/notifications/unsubscribe-auth/AGIjG5tK56J0PD2A5cTq_8fTFp3WX2gCks5tt2ddgaJpZM4Tskmy.
@trufae
Thank you :)
Awesome. Thanks and sorry for the delay. Pretty busy
On 31 May 2018, at 16:06, Adam Kiss notifications@github.com wrote:
@trufae
Installed new version (from gh), didn't help. Removed it with AppCleaner (so prefs as well, etc.) and restarted Now it works. Thank you :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@trufae Hey, no worries :)
Hello,
I installed therm with
brew cask
, and when I start it, the icon shows up in Dock and application bar changes to therm, but no windows show up. When I hit⌘ + N
to open a new window, application crashes with following exception:Versions:
``` ❯ sw_vers; and brew -v ProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G1421 Homebrew 1.6.2-47-g9b56b13 Homebrew/homebrew-core (git revision ea3ba; last commit 2018-04-30) ```
I'd like to try this out, so let me know if you need any additional information. Thank you.