Skip to content

Hammerspoon Crashes on Reload #1672

Description

@latenitefilms

@cmsj & @asmagill - Since updating CommandPost to the latest Hammerspoon code, CommandPost now crashes whenever you try to reload. I can also reproduce this by building Hammerspoon from the latest master branch - so it seems one of the most recent commits has broken something?

 # Crashlytics - plaintext stacktrace downloaded by Chris Hocking at Mon, 05 Feb 2018 02:59:49 GMT
# URL: https://fabric.io/latenite-films/mac/apps/org.latenitefilms.commandpost/issues/5a765ed38cb3c2fa633fa597?time=last-hour/sessions/604aca31fb98467796b8a96d11a6767a_DNE_0_v2
# Organization: LateNite Films
# Platform: mac_os_x
# Application: CommandPost
# Version: 1.0.0-beta.22
# Bundle Identifier: org.latenitefilms.CommandPost
# Issue #: 78
# Issue ID: 5a765ed38cb3c2fa633fa597
# Session ID: 604aca31fb98467796b8a96d11a6767a_DNE_0_v2
# Date: 2018-02-05T02:56:00Z
# OS Version: 10.13.2 (17C88)
# Device: MacBook Pro 14,3
# RAM Free: 1.4%
# Disk Free: 5%

#0. Crashed: com.apple.main-thread
0  LuaSkin                        0x105f5e0ae lua_atpanic (lapi.c:137)
1  CommandPost                    0x105c1b568 MJLuaAlloc (MJLua.m:587)
2  CommandPost                    0x105c1bec0 MJLuaReplace (MJLua.m:568)
3  libdispatch.dylib              0x7fff5b47e591 _dispatch_call_block_and_release + 12
4  libdispatch.dylib              0x7fff5b476d50 _dispatch_client_callout + 8
5  libdispatch.dylib              0x7fff5b48232d _dispatch_main_queue_callback_4CF + 1148
6  CoreFoundation                 0x7fff33c9a7a9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
7  CoreFoundation                 0x7fff33c5c9ca __CFRunLoopRun + 2586
8  CoreFoundation                 0x7fff33c5bd23 CFRunLoopRunSpecific + 483
9  HIToolbox                      0x7fff32f73e26 RunCurrentEventLoopInMode + 286
10 HIToolbox                      0x7fff32f73b96 ReceiveNextEventCommon + 613
11 HIToolbox                      0x7fff32f73914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
12 AppKit                         0x7fff3123ef5f _DPSNextEvent + 2085
13 AppKit                         0x7fff319d4b4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
14 AppKit                         0x7fff31233d6d -[NSApplication run] + 764
15 AppKit                         0x7fff31202f1a NSApplicationMain + 804
16 libdyld.dylib                  0x7fff5b4b0115 start + 1

--

#0. Crashed: com.apple.main-thread
0  LuaSkin                        0x105f5e0ae lua_atpanic (lapi.c:137)
1  CommandPost                    0x105c1b568 MJLuaAlloc (MJLua.m:587)
2  CommandPost                    0x105c1bec0 MJLuaReplace (MJLua.m:568)
3  libdispatch.dylib              0x7fff5b47e591 _dispatch_call_block_and_release + 12
4  libdispatch.dylib              0x7fff5b476d50 _dispatch_client_callout + 8
5  libdispatch.dylib              0x7fff5b48232d _dispatch_main_queue_callback_4CF + 1148
6  CoreFoundation                 0x7fff33c9a7a9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
7  CoreFoundation                 0x7fff33c5c9ca __CFRunLoopRun + 2586
8  CoreFoundation                 0x7fff33c5bd23 CFRunLoopRunSpecific + 483
9  HIToolbox                      0x7fff32f73e26 RunCurrentEventLoopInMode + 286
10 HIToolbox                      0x7fff32f73b96 ReceiveNextEventCommon + 613
11 HIToolbox                      0x7fff32f73914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
12 AppKit                         0x7fff3123ef5f _DPSNextEvent + 2085
13 AppKit                         0x7fff319d4b4c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
14 AppKit                         0x7fff31233d6d -[NSApplication run] + 764
15 AppKit                         0x7fff31202f1a NSApplicationMain + 804
16 libdyld.dylib                  0x7fff5b4b0115 start + 1

#1. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b06a _pthread_wqthread + 1035
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13
3  (Missing)                      0x0 (Missing)

#2. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b06a _pthread_wqthread + 1035
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13
3  (Missing)                      0x120080001200 (Missing)

#3. com.twitter.crashlytics.mac.MachExceptionServer
0  CommandPost                    0x105ccc341 CLSProcessRecordAllThreads + 1449
1  CommandPost                    0x105ccc1de CLSProcessRecordAllThreads + 1094
2  CommandPost                    0x105cbbad1 CLSHandler + 45
3  CommandPost                    0x105cb6bc5 CLSMachExceptionServer + 546
4  libsystem_pthread.dylib        0x7fff5b73b6c1 _pthread_body + 340
5  libsystem_pthread.dylib        0x7fff5b73b56d _pthread_start + 375
6  libsystem_pthread.dylib        0x7fff5b73ac5d thread_start + 13

#4. Thread
0  libsystem_kernel.dylib         0x7fff5b5f67c2 mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff5b5f5cdc mach_msg + 60
2  CoreMIDI                       0x7fff349f1b83 XServerMachPort::ReceiveMessage(int&, void*, int&) + 93
3  CoreMIDI                       0x7fff34a089a0 MIDIProcess::RunMIDIInThread() + 336
4  CoreMIDI                       0x7fff34a19c8e XThread::RunHelper(void*) + 10
5  CoreMIDI                       0x7fff34a1de7b CAPThread::Entry(CAPThread*) + 77
6  libsystem_pthread.dylib        0x7fff5b73b6c1 _pthread_body + 340
7  libsystem_pthread.dylib        0x7fff5b73b56d _pthread_start + 375
8  libsystem_pthread.dylib        0x7fff5b73ac5d thread_start + 13

#5. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x7fff5b5f67c2 mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff5b5f5cdc mach_msg + 60
2  CoreFoundation                 0x7fff33c5d355 __CFRunLoopServiceMachPort + 341
3  CoreFoundation                 0x7fff33c5c6a7 __CFRunLoopRun + 1783
4  CoreFoundation                 0x7fff33c5bd23 CFRunLoopRunSpecific + 483
5  CFNetwork                      0x7fff32dd4f84 -[__CoreSchedulingSetRunnable runForever] + 722
6  Foundation                     0x7fff35d49e48 __NSThread__start__ + 1197
7  libsystem_pthread.dylib        0x7fff5b73b6c1 _pthread_body + 340
8  libsystem_pthread.dylib        0x7fff5b73b56d _pthread_start + 375
9  libsystem_pthread.dylib        0x7fff5b73ac5d thread_start + 13

#6. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b26f _pthread_wqthread + 1552
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13

#7. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b06a _pthread_wqthread + 1035
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13
3  (Missing)                      0x630069006c0070 (Missing)

#8. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b06a _pthread_wqthread + 1035
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13
3  (Missing)                      0x6080000e4201 (Missing)

#9. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b26f _pthread_wqthread + 1552
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13

#10. Thread
0  libsystem_kernel.dylib         0x7fff5b600562 __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff5b73b06a _pthread_wqthread + 1035
2  libsystem_pthread.dylib        0x7fff5b73ac4d start_wqthread + 13
3  (Missing)                      0x100dfe9f0 (Missing)

#11. com.apple.NSEventThread
0  libsystem_kernel.dylib         0x7fff5b5f67c2 mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff5b5f5cdc mach_msg + 60
2  CoreFoundation                 0x7fff33c5d355 __CFRunLoopServiceMachPort + 341
3  CoreFoundation                 0x7fff33c5c6a7 __CFRunLoopRun + 1783
4  CoreFoundation                 0x7fff33c5bd23 CFRunLoopRunSpecific + 483
5  AppKit                         0x7fff3137c3c8 _NSEventThread + 184
6  libsystem_pthread.dylib        0x7fff5b73b6c1 _pthread_body + 340
7  libsystem_pthread.dylib        0x7fff5b73b56d _pthread_start + 375
8  libsystem_pthread.dylib        0x7fff5b73ac5d thread_start + 13


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions