asmagill / hammerspoon_asm

Hammerspoon modules in progress...
MIT License
52 stars 12 forks source link

Crash - hs._asm.cfpreferences #17

Closed latenitefilms closed 4 years ago

latenitefilms commented 5 years ago

FYI - just spotted this on Fabric. Feel free to close this issue if it's unhelpful.

Crashed on this line of code.

Crash log:

crash_info_entry_0 | *** __CFTypeCollectionRelease() called with NULL; likely a collection has been corrupted ***

 # Crashlytics - plaintext stacktrace downloaded by Chris Hocking at Thu, 06 Jun 2019 02:15:02 GMT
# URL: https://fabric.io/latenite-films/mac/apps/org.latenitefilms.commandpost/issues/5cf86fa2f8b88c296393beb6?time=last-ninety-days/sessions/9ce91f263fc240f690824b0d8cf6e0f5_DNE_0_v2
# Organization: LateNite Films
# Platform: mac_os_x
# Application: CommandPost
# Version: 1.0.0-beta.72
# Bundle Identifier: org.latenitefilms.CommandPost
# Issue ID: 5cf86fa2f8b88c296393beb6
# Session ID: 9ce91f263fc240f690824b0d8cf6e0f5_DNE_0_v2
# Date: 2019-06-06T01:27:00Z
# OS Version: 10.14.0 (18A391)
# Device: MacBook Pro Retina, 15", Mid 2018
# RAM Free: 54.3%
# Disk Free: 22.3%

#0. Crashed: com.apple.main-thread
0  CoreFoundation                 0x7fff38528579 __CFTypeCollectionRelease + 32
1  CoreFoundation                 0x7fff3852850a __CFBasicHashDrain + 477
2  CoreFoundation                 0x7fff3865a6d6 _CFRelease + 239
3  CoreFoundation                 0x7fff38528494 __CFBasicHashDrain + 359
4  CoreFoundation                 0x7fff3865a6d6 _CFRelease + 239
5  CoreFoundation                 0x7fff38549522 -[CFPrefsSearchListSource alreadylocked_getDictionary:] + 740
6  CoreFoundation                 0x7fff38548f55 -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 155
7  CoreFoundation                 0x7fff38548ea0 -[CFPrefsSource copyValueForKey:] + 47
8  CoreFoundation                 0x7fff38548e5e __76-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
9  CoreFoundation                 0x7fff38532b24 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 268
10 CoreFoundation                 0x7fff385327e6 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 337
11 CoreFoundation                 0x7fff38532530 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 144
12 CoreFoundation                 0x7fff385320ee _CFPreferencesCopyAppValueWithContainerAndConfiguration + 107
13 internal.so                    0x105ec381f cfpreferences_copyAppValue (internal.m:80)
14 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
15 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
16 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
17 LuaSkin                        0x10118029d luaT_callTM (ltm.c:110)
18 LuaSkin                        0x10117cbe9 luaV_execute (lvm.c:886)
19 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
20 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
21 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
22 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
23 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
24 LuaSkin                        0x10117e4ea luaB_xpcall (lbaselib.c:442)
25 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
26 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
27 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
28 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
29 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
30 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
31 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
32 LuaSkin                        0x10117e4ea luaB_xpcall (lbaselib.c:442)
33 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
34 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
35 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
36 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
37 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
38 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
39 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
40 LuaSkin                        0x101162f58 -[LuaSkin protectedCallAndTraceback:nresults:] (Skin.m:244)
41 internal.so                    0x104aa143c -[HSTimer callback:] (internal.m:51)
42 Foundation                     0x7fff3a8fe776 __NSFireTimer + 80
43 CoreFoundation                 0x7fff38573e6d __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
44 CoreFoundation                 0x7fff38573a20 __CFRunLoopDoTimer + 859
45 CoreFoundation                 0x7fff38573560 __CFRunLoopDoTimers + 333
46 CoreFoundation                 0x7fff385547b7 __CFRunLoopRun + 2176
47 CoreFoundation                 0x7fff38553ce4 CFRunLoopRunSpecific + 463
48 HIToolbox                      0x7fff377ed895 RunCurrentEventLoopInMode + 293
49 HIToolbox                      0x7fff377ed5cb ReceiveNextEventCommon + 618
50 HIToolbox                      0x7fff377ed348 _BlockUntilNextEventMatchingListInModeWithFilter + 64
51 AppKit                         0x7fff35aaa95b _DPSNextEvent + 997
52 AppKit                         0x7fff35aa96fa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
53 AppKit                         0x7fff35aa375d -[NSApplication run] + 699
54 AppKit                         0x7fff35a92e97 NSApplicationMain + 780
55 libdyld.dylib                  0x7fff655e9085 start + 1

--

#0. Crashed: com.apple.main-thread
0  CoreFoundation                 0x7fff38528579 __CFTypeCollectionRelease + 32
1  CoreFoundation                 0x7fff3852850a __CFBasicHashDrain + 477
2  CoreFoundation                 0x7fff3865a6d6 _CFRelease + 239
3  CoreFoundation                 0x7fff38528494 __CFBasicHashDrain + 359
4  CoreFoundation                 0x7fff3865a6d6 _CFRelease + 239
5  CoreFoundation                 0x7fff38549522 -[CFPrefsSearchListSource alreadylocked_getDictionary:] + 740
6  CoreFoundation                 0x7fff38548f55 -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 155
7  CoreFoundation                 0x7fff38548ea0 -[CFPrefsSource copyValueForKey:] + 47
8  CoreFoundation                 0x7fff38548e5e __76-[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:]_block_invoke + 32
9  CoreFoundation                 0x7fff38532b24 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 268
10 CoreFoundation                 0x7fff385327e6 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 337
11 CoreFoundation                 0x7fff38532530 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 144
12 CoreFoundation                 0x7fff385320ee _CFPreferencesCopyAppValueWithContainerAndConfiguration + 107
13 internal.so                    0x105ec381f cfpreferences_copyAppValue (internal.m:80)
14 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
15 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
16 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
17 LuaSkin                        0x10118029d luaT_callTM (ltm.c:110)
18 LuaSkin                        0x10117cbe9 luaV_execute (lvm.c:886)
19 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
20 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
21 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
22 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
23 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
24 LuaSkin                        0x10117e4ea luaB_xpcall (lbaselib.c:442)
25 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
26 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
27 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
28 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
29 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
30 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
31 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
32 LuaSkin                        0x10117e4ea luaB_xpcall (lbaselib.c:442)
33 LuaSkin                        0x10117ef93 luaD_precall (ldo.c:453)
34 LuaSkin                        0x10117b1ab luaV_execute (lvm.c:1134)
35 LuaSkin                        0x10117f11b luaD_call (ldo.c:517)
36 LuaSkin                        0x10117f15c luaD_callnoyield (ldo.c:527)
37 LuaSkin                        0x10116a640 luai_objcttry (lobjectivec_exceptions.m:173)
38 LuaSkin                        0x10117f6e4 luaD_pcall (ldo.c:162)
39 LuaSkin                        0x101178bf5 lua_pcallk (lapi.c:969)
40 LuaSkin                        0x101162f58 -[LuaSkin protectedCallAndTraceback:nresults:] (Skin.m:244)
41 internal.so                    0x104aa143c -[HSTimer callback:] (internal.m:51)
42 Foundation                     0x7fff3a8fe776 __NSFireTimer + 80
43 CoreFoundation                 0x7fff38573e6d __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
44 CoreFoundation                 0x7fff38573a20 __CFRunLoopDoTimer + 859
45 CoreFoundation                 0x7fff38573560 __CFRunLoopDoTimers + 333
46 CoreFoundation                 0x7fff385547b7 __CFRunLoopRun + 2176
47 CoreFoundation                 0x7fff38553ce4 CFRunLoopRunSpecific + 463
48 HIToolbox                      0x7fff377ed895 RunCurrentEventLoopInMode + 293
49 HIToolbox                      0x7fff377ed5cb ReceiveNextEventCommon + 618
50 HIToolbox                      0x7fff377ed348 _BlockUntilNextEventMatchingListInModeWithFilter + 64
51 AppKit                         0x7fff35aaa95b _DPSNextEvent + 997
52 AppKit                         0x7fff35aa96fa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
53 AppKit                         0x7fff35aa375d -[NSApplication run] + 699
54 AppKit                         0x7fff35a92e97 NSApplicationMain + 780
55 libdyld.dylib                  0x7fff655e9085 start + 1

#1. com.twitter.crashlytics.mac.MachExceptionServer
0  CommandPost                    0x100ef533e CLSProcessRecordAllThreads + 193
1  CommandPost                    0x100ef5739 CLSProcessRecordAllThreads + 1212
2  CommandPost                    0x100ee4cb1 CLSHandler + 45
3  CommandPost                    0x100ee01fc CLSMachExceptionServer + 1241
4  libsystem_pthread.dylib        0x7fff657db33d _pthread_body + 126
5  libsystem_pthread.dylib        0x7fff657de2a7 _pthread_start + 70
6  libsystem_pthread.dylib        0x7fff657da425 thread_start + 13

#2. Thread
0  libsystem_kernel.dylib         0x7fff65721c2a mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff65722174 mach_msg + 60
2  CoreMIDI                       0x7fff393b2ec5 XServerMachPort::ReceiveMessage(int&, void*, int&) + 95
3  CoreMIDI                       0x7fff393d0563 MIDIProcess::RunMIDIInThread() + 333
4  CoreMIDI                       0x7fff393e735c XThread::RunHelper(void*) + 10
5  CoreMIDI                       0x7fff393ec29d CAPThread::Entry(CAPThread*) + 77
6  libsystem_pthread.dylib        0x7fff657db33d _pthread_body + 126
7  libsystem_pthread.dylib        0x7fff657de2a7 _pthread_start + 70
8  libsystem_pthread.dylib        0x7fff657da425 thread_start + 13

#3. com.apple.NSEventThread
0  libsystem_kernel.dylib         0x7fff65721c2a mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff65722174 mach_msg + 60
2  CoreFoundation                 0x7fff3855505e __CFRunLoopServiceMachPort + 337
3  CoreFoundation                 0x7fff385545ad __CFRunLoopRun + 1654
4  CoreFoundation                 0x7fff38553ce4 CFRunLoopRunSpecific + 463
5  AppKit                         0x7fff35ab3581 _NSEventThread + 160
6  libsystem_pthread.dylib        0x7fff657db33d _pthread_body + 126
7  libsystem_pthread.dylib        0x7fff657de2a7 _pthread_start + 70
8  libsystem_pthread.dylib        0x7fff657da425 thread_start + 13

#4. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x7fff65721c2a mach_msg_trap + 10
1  libsystem_kernel.dylib         0x7fff65722174 mach_msg + 60
2  CoreFoundation                 0x7fff3855505e __CFRunLoopServiceMachPort + 337
3  CoreFoundation                 0x7fff385545ad __CFRunLoopRun + 1654
4  CoreFoundation                 0x7fff38553ce4 CFRunLoopRunSpecific + 463
5  CFNetwork                      0x7fff37457ef5 -[__CoreSchedulingSetRunnable runForever] + 195
6  Foundation                     0x7fff3a8aa234 __NSThread__start__ + 1218
7  libsystem_pthread.dylib        0x7fff657db33d _pthread_body + 126
8  libsystem_pthread.dylib        0x7fff657de2a7 _pthread_start + 70
9  libsystem_pthread.dylib        0x7fff657da425 thread_start + 13

#5. Thread
0  libsystem_kernel.dylib         0x7fff657235be __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff657da641 _pthread_wqthread + 446
2  libsystem_pthread.dylib        0x7fff657da415 start_wqthread + 13
3  (Missing)                      0x2000a900200074 (Missing)

#6. Thread
0  libsystem_kernel.dylib         0x7fff657235be __workq_kernreturn + 10
1  libsystem_pthread.dylib        0x7fff657da721 _pthread_wqthread + 670
2  libsystem_pthread.dylib        0x7fff657da415 start_wqthread + 13
3  (Missing)                      0x54485244 (Missing)
asmagill commented 4 years ago

Sorry for the long delay... has this issue recurred?

latenitefilms commented 4 years ago

Not sure to be honest. I'll close this for now and will reopen if the crash re-surfaces.

asmagill commented 4 years ago

FYI, cfpreferences now tracked at https://github.com/asmagill/hs._asm.cfpreferences so if this needs to be reopened, please do so there.