Open rileytwo opened 5 years ago
Saw Similar issue in SNAPSHOT-347
```log
Process: NvimServer [64273]
Path: /Applications/VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/NvimServer
Identifier: NvimServer
Version: 0
Code Type: X86-64 (Native)
Parent Process: node [64030]
Responsible: VimR [63738]
User ID: 502
Date/Time: 2020-06-03 08:16:52.618 +1000
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Bridge OS Version: 4.4 (17P4281)
Anonymous UUID: EE7DDF1D-C631-4B5E-BF8E-958A892DC4B5
Sleep/Wake UUID: 8C8EC64E-6190-4BFA-8F99-75CC702D02B3
Time Awake Since Boot: 74000 seconds
Time Since Wake: 310 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [64273]
VM Regions Near 0x10:
-->
Kernel Alloc Once 0000000007197000-0000000007199000 [ 8K] rw-/rwx SM=PRV
Application Specific Information:
dyld2 mode
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_pthread.dylib 0x00007fff6b4025ad pthread_mutex_lock + 0
1 com.apple.CoreFoundation 0x00007fff313271be CFMessagePortSendRequest + 143
2 NvimServer 0x0000000107188f37 send_msg_packing + 135
3 NvimServer 0x00000001071890de server_init_remote_port + 94
4 NvimServer 0x0000000107188928 main + 328
5 libdyld.dylib 0x00007fff6b202cc9 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff6b402b68 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x00007fff6b343dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6b344170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff312bc0b5 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff312bab82 __CFRunLoopRun + 1319
4 com.apple.CoreFoundation 0x00007fff312b9ffe CFRunLoopRunSpecific + 462
5 com.apple.CoreFoundation 0x00007fff31342639 CFRunLoopRun + 40
6 libsystem_pthread.dylib 0x00007fff6b407109 _pthread_start + 148
7 libsystem_pthread.dylib 0x00007fff6b402b8b thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000001 rbx: 0x0000000000000000 rcx: 0x00007fff88f36698 rdx: 0x00007fff6a072448
rdi: 0x0000000000000010 rsi: 0x0000000000000003 rbp: 0x00007ffee8a78370 rsp: 0x00007ffee8a782b8
r8: 0x00000000000030a4 r9: 0x0000000000000000 r10: 0x00007fff88f39d80 r11: 0x00007fff88f39d78
r12: 0x00007fb647f040c0 r13: 0x0000000000000010 r14: 0x0000000000000000 r15: 0x00007fb64a0040c0
rip: 0x00007fff6b4025ad rfl: 0x0000000000010287 cr2: 0x0000000000000010
Logical CPU: 8
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14
Binary Images:
0x107187000 - 0x10750eff7 +NvimServer (0) <0A820232-2AA6-3AAC-B5B1-8D61FB979BC2> /Applications/VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/NvimServer
0x10f5c9000 - 0x10f65aeff dyld (750.5) <1F893B81-89A5-3502-8510-95B97B9F730D> /usr/lib/dyld
0x7fff31238000 - 0x7fff316b7ffb com.apple.CoreFoundation (6.9 - 1675.129) <9E632A1E-9622-33D6-BCCE-23AC16DAA6B7> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff67d12000 - 0x7fff67d14ff7 libDiagnosticMessagesClient.dylib (112)
```log
Process: VimR [63358]
Path: /Applications/VimR.app/Contents/MacOS/VimR
Identifier: com.qvacua.VimR
Version: SNAPSHOT-347 (347)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: VimR [63358]
User ID: 502
Date/Time: 2020-06-03 00:23:51.164 +1000
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Bridge OS Version: 4.4 (17P4281)
Anonymous UUID: EE7DDF1D-C631-4B5E-BF8E-958A892DC4B5
Sleep/Wake UUID: 8198D74E-D4C6-4723-A9C3-417BB3606106
Time Awake Since Boot: 67000 seconds
Time Since Wake: 10000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [63358]
VM Regions Near 0x10:
-->
__TEXT 0000000104697000-0000000104874000 [ 1908K] r-x/r-x SM=COW /Applications/VimR.app/Contents/MacOS/VimR
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.qvacua.NvimView 0x000000010529df29 specialized NvimView.attributedSubstring(forProposedRange:actualRange:) + 1001
1 com.qvacua.NvimView 0x000000010529b518 @objc NvimView.attributedSubstring(forProposedRange:actualRange:) + 40
2 com.apple.AppKit 0x00007fff2eee824b -[NSTextInputContext(NSInputContext_WithCompletion) attributedSubstringForProposedRange:completionHandler:] + 135
3 com.apple.AppKit 0x00007fff2eee5499 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_4.532 + 85
4 com.apple.AppKit 0x00007fff2eee1289 __194-[NSTextInputContext tryHandleTSMEvent_attributedString_attributedSubstringForProposedRange_withContext:dispatchCondition:dispatchWork:dispatchFurtherCondition:dispatchFurtherWork:continuation:]_block_invoke + 110
5 com.apple.AppKit 0x00007fff2eee5421 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke.527 + 74
6 com.apple.AppKit 0x00007fff2eee118a -[NSTextInputContext tryHandleTSMEvent_attributedString_attributedSubstringForProposedRange_withContext:dispatchCondition:dispatchWork:dispatchFurtherCondition:dispatchFurtherWork:continuation:] + 157
7 com.apple.AppKit 0x00007fff2e7853ec -[NSTextInputContext handleTSMEvent:completionHandler:] + 3447
8 com.apple.AppKit 0x00007fff2e784605 _NSTSMEventHandler + 299
9 com.apple.HIToolbox 0x00007fff2fec68ff DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1254
10 com.apple.HIToolbox 0x00007fff2fec5d8d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 329
11 com.apple.HIToolbox 0x00007fff2fec5c3d SendEventToEventTargetWithOptions + 45
12 com.apple.HIToolbox 0x00007fff2ff2292b SendTSMEvent_WithCompletionHandler + 381
13 com.apple.HIToolbox 0x00007fff300ce143 __SendTextInputEvent_WithCompletionHandler_block_invoke + 489
14 com.apple.HIToolbox 0x00007fff300cc92c SendTextInputEvent_WithCompletionHandler + 1126
15 com.apple.HIToolbox 0x00007fff3012d5f4 -[IMKInputSession _postEvent:completionHandler:] + 156
16 com.apple.HIToolbox 0x00007fff30140e60 -[IMKInputSession _copyUniCharsForRange:intoBuffer:ofLength:completionHandler:] + 492
17 com.apple.HIToolbox 0x00007fff30141525 -[IMKInputSession _coreAttributesFromRange:whichAttributes:completionHandler:] + 257
18 com.apple.HIToolbox 0x00007fff30143118 -[IMKInputSession attributedSubstringFromRange:completionHandler:] + 206
19 com.apple.HIToolbox 0x00007fff3012fbb0 __61-[IMKInputSession imkxpc_attributedSubstringFromRange:reply:]_block_invoke + 485
20 com.apple.CoreFoundation 0x00007fff312bbbac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
21 com.apple.CoreFoundation 0x00007fff312bbaf4 __CFRunLoopDoBlocks + 379
22 com.apple.CoreFoundation 0x00007fff312bafed __CFRunLoopRun + 2450
23 com.apple.CoreFoundation 0x00007fff312b9ffe CFRunLoopRunSpecific + 462
24 com.apple.HIToolbox 0x00007fff2feedabd RunCurrentEventLoopInMode + 292
25 com.apple.HIToolbox 0x00007fff2feed7d5 ReceiveNextEventCommon + 584
26 com.apple.HIToolbox 0x00007fff2feed579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
27 com.apple.AppKit 0x00007fff2e538c99 _DPSNextEvent + 883
28 com.apple.AppKit 0x00007fff2e5374e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
29 com.apple.AppKit 0x00007fff2e5291ee -[NSApplication run] + 658
30 com.apple.AppKit 0x00007fff2e4faff6 NSApplicationMain + 777
31 com.qvacua.VimR 0x000000010469aaf9 main + 9
32 libdyld.dylib 0x00007fff6b202cc9 start + 1
Thread 1:: Dispatch queue: com.apple.root.background-qos
0 libsystem_kernel.dylib 0x00007fff6b34a3be __accept + 10
1 pl.kolakowski.SwifterMac 0x000000010501aae8 closure #1 in HttpServerIO.start(_:forceIPv4:priority:) + 1144
2 pl.kolakowski.SwifterMac 0x000000010501afc9 thunk for @escaping @callee_guaranteed () -> () + 25
3 libdispatch.dylib 0x00007fff6b1a86c4 _dispatch_call_block_and_release + 12
4 libdispatch.dylib 0x00007fff6b1a9658 _dispatch_client_callout + 8
5 libdispatch.dylib 0x00007fff6b1b7aa8 _dispatch_root_queue_drain + 663
6 libdispatch.dylib 0x00007fff6b1b8097 _dispatch_worker_thread2 + 92
7 libsystem_pthread.dylib 0x00007fff6b4039f7 _pthread_wqthread + 220
8 libsystem_pthread.dylib 0x00007fff6b402b77 start_wqthread + 15
Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff6b343dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6b344170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff312bc0b5 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff312bab82 __CFRunLoopRun + 1319
4 com.apple.CoreFoundation 0x00007fff312b9ffe CFRunLoopRunSpecific + 462
5 com.apple.AppKit 0x00007fff2e6da5b4 _NSEventThread + 132
6 libsystem_pthread.dylib 0x00007fff6b407109 _pthread_start + 148
7 libsystem_pthread.dylib 0x00007fff6b402b8b thread_start + 15
Thread 3:: JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x00007fff6b346882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6b407425 _pthread_cond_wait + 698
2 libc++.1.dylib 0x00007fff684d6592 std::__1::condition_variable::wait(std::__1::unique_lock
I was actually able to figure out what the problem was (or at least I think) @ray-x. I had a plugin that was causing the EXC_BAD_ACCESS
exception. I don't recall which one specifically, although I believe the plugin was lua-based.
edit: Once I removed the plugin, the issue no longer occurred.
My crash is more from nvimserver which access invalid memory address. I am not using lua plugin. Most are vimL plugins and CoC (node.js based). From the log, it seems maybe a type of message was not parsed/pack correctly and CFMessagePortSendRequest failed.
Reason for Issue
Vimr (version v0.28.0-328) hangs when I try to open a file. This happens when running
vimr
from the command line, or when I open the app and presscmd
+o
to open a file. If I open the app without opening a file (by just clicking on the app), I'm able to open preferences and use the app without any noticable issues.Vimr only hangs when I try and open a file in the app. I tried looking in the console when opening the app, and also found a few crash reports related to
NvimServer
.I downloaded v0.27.3-325 to see if I could reproduce the errors, but I didn't have any issues with this release. Everything worked as expected!
Making things even more interesting, after I got v0.27.3-325 to work (and as I was typing this), I tried downloading the latest release again to see if I had any issues. Surprisingly, I had no trouble using the app, although I was still getting the same errors in the logs as before.
Logs
Details
``` Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlementcom.apple.security.automation.apple-events but it is missing for ACC:{ ID: com.qvacua.VimR, PID[1526], auid: 501, euid: 501, binary path: '/Applications/VimR.app/Contents/MacOS/VimR' }, REQ:{ ID: com.apple.appleeventsd, PID[305], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd' } ``` ``` Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for RESP:{ ID: com.qvacua.VimR, PID[1539], auid: 501, euid: 501, responsible path: '/Applications/VimR.app/Contents/MacOS/VimR', binary path: '/Applications/VimR.app/Contents/MacOS/VimR' }, ACC:{ ID: com.apple.appkit.xpc.openAndSavePanelService, PID[1546], auid: 501, euid: 501, binary path: '/System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc/Contents/MacOS/com.apple.appkit.xpc.openAndSavePanelService' }, REQ:{ ID: com.apple.appleeventsd, PID[305], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd' } ``` ``` Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for RESP:{ ID: com.qvacua.VimR, PID[1539], auid: 501, euid: 501, responsible path: '/Applications/VimR.app/Contents/MacOS/VimR', binary path: '/Applications/VimR.app/Contents/MacOS/VimR' }, ACC:{ ID: com.apple.quicklook.QuickLookUIService, PID[1547], auid: 501, euid: 501, binary path: '/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/XPCServices/QuickLookUIService.xpc/Contents/MacOS/QuickLookUIService' }, REQ:{ ID: com.apple.appleeventsd, PID[305], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd' } ``` ``` Prompting policy for hardened runtime; service: kTCCServiceCalendar requires entitlement com.apple.security.personal-information.calendars but it is missing for RESP:{ ID: com.qvacua.VimR, PID[1539], auid: 501, euid: 501, responsible path: '/Applications/VimR.app/Contents/MacOS/VimR', binary path: '/Applications/VimR.app/Contents/MacOS/VimR'}, ACC:{ ID: com.apple.appkit.xpc.openAndSavePanelService, PID[1546], auid: 501, euid: 501, binary path: '/System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/com.apple.appkit.xpc.openAndSavePanelService.xpc/Contents/MacOS/com.apple.appkit.xpc.openAndSavePanelService'}, REQ:{ ID: com.apple.mds, PID[126], auid: 0, euid: 0, binary path: '/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds' } ```Crash Reports
Details
``` Process: NvimServer [1558] Path: /Applications/VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/PlugIns/NvimServer Identifier: NvimServer Version: 0 Code Type: X86-64 (Native) Parent Process: VimR [1552] Responsible: VimR [1552] User ID: 501 Date/Time: 2019-10-27 11:18:17.054 -0500 OS Version: Mac OS X 10.15 (19A603) Report Version: 12 Bridge OS Version: 4.0 (17P572) Anonymous UUID: 553B2FF1-39DB-D6F3-6994-45F43C3FDDC3 Time Awake Since Boot: 720 seconds System Integrity Protection: enabled Crashed Thread: 3 Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x000000013901ff68 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace CODESIGNING, Code 0x2 kernel messages: VM Regions Near 0x13901ff68: __LINKEDIT 0000000115ac3000-0000000115afa000 [ 220K] r--/r-- SM=COW /usr/lib/dyld --> VM_ALLOCATE 0000000139010000-0000000139020000 [ 64K] r-x/rwx SM=COW STACK GUARD 00007000041b7000-00007000041b8000 [ 4K] ---/rwx SM=NUL stack guard for thread 1 Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff66db1146 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff66db16ac mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff2f96a19b __CFRunLoopServiceMachPort + 322 3 com.apple.CoreFoundation 0x00007fff2f969737 __CFRunLoopRun + 1695 4 com.apple.CoreFoundation 0x00007fff2f968e13 CFRunLoopRunSpecific + 499 5 com.apple.CoreFoundation 0x00007fff2f968bea CFRunLoopRun + 40 6 NvimServer 0x000000010ef2f892 main + 386 7 libdyld.dylib 0x00007fff66c68405 start + 1 Thread 1: 0 libsystem_pthread.dylib 0x00007fff66e715b4 start_wqthread + 0 Thread 2: 0 libsystem_kernel.dylib 0x00007fff66db1146 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff66db16ac mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff2f96a19b __CFRunLoopServiceMachPort + 322 3 com.apple.CoreFoundation 0x00007fff2f969737 __CFRunLoopRun + 1695 4 com.apple.CoreFoundation 0x00007fff2f968e13 CFRunLoopRunSpecific + 499 5 com.apple.CoreFoundation 0x00007fff2f968bea CFRunLoopRun + 40 6 libsystem_pthread.dylib 0x00007fff66e74d76 _pthread_start + 125 7 libsystem_pthread.dylib 0x00007fff66e715d7 thread_start + 15 Thread 3 Crashed: 0 ??? 0x000000013901ff68 0 + 5251399528 Thread 4: 0 libsystem_kernel.dylib 0x00007fff66db796a kevent + 10 1 NvimServer 0x000000010efe539f uv__io_poll + 1983 2 NvimServer 0x000000010efc758f uv_run + 207 3 NvimServer 0x000000010f08b606 loop_poll_events + 134 4 NvimServer 0x000000010ef3136d server_ui_main + 509 5 libsystem_pthread.dylib 0x00007fff66e74d76 _pthread_start + 125 6 libsystem_pthread.dylib 0x00007fff66e715d7 thread_start + 15 Thread 3 crashed with X86 Thread State (64-bit): rax: 0x000000013901ff68 rbx: 0x000000001108028c rcx: 0x000000001103bd50 rdx: 0x000000001105d6d8 rdi: 0x00000000110351c0 rsi: 0x000000010ef3df0f rbp: 0x0000000011034378 rsp: 0x000070000523d0e0 r8: 0x000000010ef3dd69 r9: 0x000000010ef3de3a r10: 0x000000010ef3df98 r11: 0xfffffffffffffb28 r12: 0x000000000000001a r13: 0x000000000f102600 r14: 0x0000000011034f70 r15: 0x0000000011080390 rip: 0x000000013901ff68 rfl: 0x0000000000010202 cr2: 0x000000013901ff68 Logical CPU: 8 Error Code: 0x00000015 (invalid protections for user instruction write) Trap Number: 14 Binary Images: 0x10ef2e000 - 0x10f2a9ff7 +NvimServer (0) <0B37F387-B3B9-34D1-9E76-319BDC903816> /Applications/VimR.app/Contents/Frameworks/NvimView.framework/PlugIns/NvimServer 0x1159f9000 - 0x115a8793f dyld (732.8) <42C11B81-6928-369F-B03E-D57355572700> /usr/lib/dyld 0x7fff2f92f000 - 0x7fff2fdaeff7 com.apple.CoreFoundation (6.9 - 1671.15)