Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MIEngine NullArgument error
Reading from channel output...
2019-08-10 14:53:13,545 - INFO - **** INITIALISING NEW VIMSPECTOR SESSION ****
2019-08-10 14:53:13,545 - INFO - VIMSPECTOR_HOME = /Users/ben/.vim/bundle/vimspector
2019-08-10 14:53:13,553 - INFO - gadgetDir = /Users/ben/.vim/bundle/vimspector/gadgets/macos
2019-08-10 14:53:13,554 - INFO - User requested start debug session with {}
2019-08-10 14:53:13,556 - DEBUG - Starting debugger from stack context: [' File "<string>", line 1, in <module>\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 312, in Continue\n self.Start()\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 165, in Start\n self._StartWithConfiguration( configuration, adapter )\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 213, in _StartWithConfiguration\n start()\n', ' File "/Users/ben/.vim/bundle/vimspector/python3/vimspector/debug_session.py", line 170, in start\n traceback.format_stack() )\n']
2019-08-10 14:53:13,556 - INFO - Configuration: {"adapter": "vscode-cpptools", "variables": {}, "configuration": {"type": "cppdbg", "request": "attach", "program": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/bin/clangd", "cwd": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd", "args": [], "env": {"LD_LIBRARY_PATH": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/lib"}, "miMode": "gdb", "stopAtEntry": false, "logging": {"engineLogging": true}}}
2019-08-10 14:53:13,556 - INFO - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/Users/ben/.vim/bundle/vimspector/gadgets/macos/vscode-cpptools/debugAdapters/OpenDebugAD7"], "name": "cppdbg"}
2019-08-10 14:53:13,596 - INFO - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/Users/ben/.vim/bundle/vimspector/gadgets/macos/vscode-cpptools/debugAdapters/OpenDebugAD7"], "name": "cppdbg"}
2019-08-10 14:53:13,600 - INFO - Debug Adapter Started
2019-08-10 14:53:13,601 - DEBUG - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true}, "seq": 0, "type": "request"}
2019-08-10 14:53:13,705 - INFO - Server stderr: waiting for v8 protocol on stdin/stdout
2019-08-10 14:53:14,224 - DEBUG - Message received: {'request_seq': 0, 'success': True, 'command': 'initialize', 'body': {'supportsConfigurationDoneRequest': True, 'supportsFunctionBreakpoints': True, 'supportsConditionalBreakpoints': True, 'supportsEvaluateForHovers': True, 'exceptionBreakpointFilters': [], 'supportsSetVariable': True, 'additionalModuleColumns': [], 'supportedChecksumAlgorithms': []}, 'seq': 1, 'type': 'response'}
2019-08-10 14:53:14,224 - DEBUG - LAUNCH!
2019-08-10 14:53:19,915 - DEBUG - Sending Message: {"command": "attach", "arguments": {"type": "cppdbg", "request": "attach", "program": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/bin/clangd", "cwd": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd", "args": [], "env": {"LD_LIBRARY_PATH": "/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/lib"}, "miMode": "gdb", "stopAtEntry": false, "logging": {"engineLogging": true}, "processId": "62648", "name": "test"}, "seq": 1, "type": "request"}
2019-08-10 14:53:19,981 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5819) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"}, 'seq': 2, 'type': 'event'}
2019-08-10 14:53:19,982 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions ExePath='/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/bin/clangd'\n"}, 'seq': 3, 'type': 'event'}
2019-08-10 14:53:19,983 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions ExeArguments=''\n"}, 'seq': 4, 'type': 'event'}
2019-08-10 14:53:19,983 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions MIMode='gdb'\n"}, 'seq': 5, 'type': 'event'}
2019-08-10 14:53:19,984 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions MIDebuggerPath=''\n"}, 'seq': 6, 'type': 'event'}
2019-08-10 14:53:19,985 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions WaitDynamicLibLoad='false'\n"}, 'seq': 7, 'type': 'event'}
2019-08-10 14:53:19,985 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5828) LaunchOptions ProcessId='62648'\n"}, 'seq': 8, 'type': 'event'}
2019-08-10 14:53:19,986 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5828) LaunchOptions>\n'}, 'seq': 9, 'type': 'event'}
2019-08-10 14:53:19,987 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5828) LaunchOptions <Environment>\n'}, 'seq': 10, 'type': 'event'}
2019-08-10 14:53:19,987 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': "1: (5829) LaunchOptions <EnvironmentEntry Name='LD_LIBRARY_PATH' Value='/Users/ben/Development/llvm-project/clang-tools-extra/clangd/../../build-debug/lib' />\n"}, 'seq': 11, 'type': 'event'}
2019-08-10 14:53:19,988 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5829) LaunchOptions </Environment>\n'}, 'seq': 12, 'type': 'event'}
2019-08-10 14:53:19,988 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5829) LaunchOptions</LocalLaunchOptions>\n'}, 'seq': 13, 'type': 'event'}
2019-08-10 14:53:20,097 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5942) codeSign-stderr: Executable=/usr/local/Cellar/gdb/HEAD-47e3f47/bin/gdb\n'}, 'seq': 14, 'type': 'event'}
2019-08-10 14:53:20,108 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/NonFatalError', 'data': {'VS.Diagnostics.Debugger.NonFatalError.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.NonFatalError.ExceptionType': 'System.ArgumentNullException', 'VS.Diagnostics.Debugger.NonFatalError.ExceptionStack': None, 'VS.Diagnostics.Debugger.NonFatalError.HResult': -2147467261, 'VS.Diagnostics.Debugger.EngineVersion': '14.0.60702.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.HostVersion': '14.0.60702.1'}}, 'seq': 15, 'type': 'event'}
2019-08-10 14:53:20,113 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5955) EXCEPTION: System.ArgumentNullException\n'}, 'seq': 16, 'type': 'event'}
2019-08-10 14:53:20,114 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/NonFatalError', 'data': {'VS.Diagnostics.Debugger.NonFatalError.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.NonFatalError.ExceptionType': 'System.ArgumentNullException', 'VS.Diagnostics.Debugger.NonFatalError.ExceptionStack': None, 'VS.Diagnostics.Debugger.NonFatalError.HResult': -2147467261, 'VS.Diagnostics.Debugger.EngineVersion': '14.0.60702.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.HostVersion': '14.0.60702.1'}}, 'seq': 17, 'type': 'event'}
2019-08-10 14:53:20,117 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5956) EXCEPTION: System.ArgumentNullException\n'}, 'seq': 18, 'type': 'event'}
2019-08-10 14:53:20,118 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'console', 'output': '1: (5963) Send Event AD7MessageEvent\n'}, 'seq': 19, 'type': 'event'}
2019-08-10 14:53:20,120 - DEBUG - Message received: {'event': 'output', 'body': {'category': 'telemetry', 'output': 'VS/Diagnostics/Debugger/Attach', 'data': {'VS.Diagnostics.Debugger.ImplementationName': 'Microsoft.MIDebugEngine', 'VS.Diagnostics.Debugger.EngineVersion': '14.0.60702.1', 'VS.Diagnostics.Debugger.HostVersion': '14.0.60702.1', 'VS.Diagnostics.Debugger.AdapterId': 'cppdbg', 'VS.Diagnostics.Debugger.Attach.ErrorCode': 1012, 'VS.Diagnostics.Debugger.Attach.IsError': True}}, 'seq': 20, 'type': 'event'}
2019-08-10 14:53:20,125 - DEBUG - Message received: {'request_seq': 1, 'success': False, 'command': 'attach', 'message': "Unable to start debugging. Internal error in MIEngine. Exception of type 'System.ArgumentNullException' was thrown.\r\n\r\n at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <2943701620b54f86b436d3ffad010412>:0 \n at MICore.LocalTransport.InitStreams (MICore.LaunchOptions options, System.IO.StreamReader& reader, System.IO.StreamWriter& writer) [0x000af] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at MICore.StreamTransport.Init (MICore.ITransportCallback transportCallback, MICore.LaunchOptions options, MICore.Logger logger, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0000e] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at MICore.Debugger.Init (MICore.ITransport transport, MICore.LaunchOptions options, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0004c] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at Microsoft.MIDebugEngine.DebuggedProcess..ctor (System.Boolean bLaunched, MICore.LaunchOptions launchOptions, Microsoft.MIDebugEngine.ISampleEngineCallback callback, Microsoft.MIDebugEngine.WorkerThread worker, Microsoft.MIDebugEngine.BreakpointManager bpman, Microsoft.MIDebugEngine.AD7Engine engine, Microsoft.DebugEngineHost.HostConfigurationStore configStore, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x002d6] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine+<>c__DisplayClass53_0.<StartDebugging>b__0 (Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread+<>c__DisplayClass24_0.<TrySetOperationInternalWithProgress>b__0 () [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.ThreadFunc () [0x00090] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.MIDebugEngine.WorkerThread.TrySetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00092] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.SetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00021] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.RunOperation (System.String text, System.Threading.CancellationTokenSource canTokenSource, Microsoft.MIDebugEngine.AsyncProgressOperation op) [0x00009] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine.StartDebugging (MICore.LaunchOptions launchOptions) [0x00042] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine.Microsoft.VisualStudio.Debugger.Interop.IDebugEngineLaunch2.LaunchSuspended (System.String pszServer, Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 port, System.String exe, System.String args, System.String dir, System.String env, System.String options, Microsoft.VisualStudio.Debugger.Interop.enum_LAUNCH_FLAGS launchFlags, System.UInt32 hStdInput, System.UInt32 hStdOutput, System.UInt32 hStdError, Microsoft.VisualStudio.Debugger.Interop.IDebugEventCallback2 ad7Callback, Microsoft.VisualStudio.Debugger.Interop.IDebugProcess2& process) [0x00051] in <cbf48b745d1b49e3ae62b68da07425c3>:0 ", 'body': {'error': {'id': 1012, 'format': "Unable to start debugging. Internal error in MIEngine. Exception of type 'System.ArgumentNullException' was thrown.\r\n\r\n at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <2943701620b54f86b436d3ffad010412>:0 \n at MICore.LocalTransport.InitStreams (MICore.LaunchOptions options, System.IO.StreamReader& reader, System.IO.StreamWriter& writer) [0x000af] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at MICore.StreamTransport.Init (MICore.ITransportCallback transportCallback, MICore.LaunchOptions options, MICore.Logger logger, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0000e] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at MICore.Debugger.Init (MICore.ITransport transport, MICore.LaunchOptions options, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0004c] in <2cedc04e188a46ff8cf380f903a3c0d9>:0 \n at Microsoft.MIDebugEngine.DebuggedProcess..ctor (System.Boolean bLaunched, MICore.LaunchOptions launchOptions, Microsoft.MIDebugEngine.ISampleEngineCallback callback, Microsoft.MIDebugEngine.WorkerThread worker, Microsoft.MIDebugEngine.BreakpointManager bpman, Microsoft.MIDebugEngine.AD7Engine engine, Microsoft.DebugEngineHost.HostConfigurationStore configStore, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x002d6] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine+<>c__DisplayClass53_0.<StartDebugging>b__0 (Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread+<>c__DisplayClass24_0.<TrySetOperationInternalWithProgress>b__0 () [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.ThreadFunc () [0x00090] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.MIDebugEngine.WorkerThread.TrySetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00092] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.SetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00021] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.WorkerThread.RunOperation (System.String text, System.Threading.CancellationTokenSource canTokenSource, Microsoft.MIDebugEngine.AsyncProgressOperation op) [0x00009] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine.StartDebugging (MICore.LaunchOptions launchOptions) [0x00042] in <cbf48b745d1b49e3ae62b68da07425c3>:0 \n at Microsoft.MIDebugEngine.AD7Engine.Microsoft.VisualStudio.Debugger.Interop.IDebugEngineLaunch2.LaunchSuspended (System.String pszServer, Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 port, System.String exe, System.String args, System.String dir, System.String env, System.String options, Microsoft.VisualStudio.Debugger.Interop.enum_LAUNCH_FLAGS launchFlags, System.UInt32 hStdInput, System.UInt32 hStdOutput, System.UInt32 hStdError, Microsoft.VisualStudio.Debugger.Interop.IDebugEventCallback2 ad7Callback, Microsoft.VisualStudio.Debugger.Interop.IDebugProcess2& process) [0x00051] in <cbf48b745d1b49e3ae62b68da07425c3>:0 "}}, 'seq': 21, 'type': 'response'}
2019-08-10 14:53:20,125 - ERROR - Request failed: Unable to start debugging. Internal error in MIEngine. Exception of type 'System.ArgumentNullException' was thrown.
at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <2943701620b54f86b436d3ffad010412>:0
at MICore.LocalTransport.InitStreams (MICore.LaunchOptions options, System.IO.StreamReader& reader, System.IO.StreamWriter& writer) [0x000af] in <2cedc04e188a46ff8cf380f903a3c0d9>:0
at MICore.StreamTransport.Init (MICore.ITransportCallback transportCallback, MICore.LaunchOptions options, MICore.Logger logger, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0000e] in <2cedc04e188a46ff8cf380f903a3c0d9>:0
at MICore.Debugger.Init (MICore.ITransport transport, MICore.LaunchOptions options, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x0004c] in <2cedc04e188a46ff8cf380f903a3c0d9>:0
at Microsoft.MIDebugEngine.DebuggedProcess..ctor (System.Boolean bLaunched, MICore.LaunchOptions launchOptions, Microsoft.MIDebugEngine.ISampleEngineCallback callback, Microsoft.MIDebugEngine.WorkerThread worker, Microsoft.MIDebugEngine.BreakpointManager bpman, Microsoft.MIDebugEngine.AD7Engine engine, Microsoft.DebugEngineHost.HostConfigurationStore configStore, Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x002d6] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.AD7Engine+<>c__DisplayClass53_0.<StartDebugging>b__0 (Microsoft.DebugEngineHost.HostWaitLoop waitLoop) [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.WorkerThread+<>c__DisplayClass24_0.<TrySetOperationInternalWithProgress>b__0 () [0x00000] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.WorkerThread.ThreadFunc () [0x00090] in <cbf48b745d1b49e3ae62b68da07425c3>:0
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.MIDebugEngine.WorkerThread.TrySetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00092] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.WorkerThread.SetOperationInternalWithProgress (Microsoft.MIDebugEngine.AsyncProgressOperation op, System.String text, System.Threading.CancellationTokenSource canTokenSource) [0x00021] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.WorkerThread.RunOperation (System.String text, System.Threading.CancellationTokenSource canTokenSource, Microsoft.MIDebugEngine.AsyncProgressOperation op) [0x00009] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.AD7Engine.StartDebugging (MICore.LaunchOptions launchOptions) [0x00042] in <cbf48b745d1b49e3ae62b68da07425c3>:0
at Microsoft.MIDebugEngine.AD7Engine.Microsoft.VisualStudio.Debugger.Interop.IDebugEngineLaunch2.LaunchSuspended (System.String pszServer, Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 port, System.String exe, System.String args, System.String dir, System.String env, System.String options, Microsoft.VisualStudio.Debugger.Interop.enum_LAUNCH_FLAGS launchFlags, System.UInt32 hStdInput, System.UInt32 hStdOutput, System.UInt32 hStdError, Microsoft.VisualStudio.Debugger.Interop.IDebugEventCallback2 ad7Callback, Microsoft.VisualStudio.Debugger.Interop.IDebugProcess2& process) [0x00051] in <cbf48b745d1b49e3ae62b68da07425c3>:0
2019-08-10 14:53:20,157 - INFO - The server has terminated with status 0
2019-08-10 14:53:20,157 - DEBUG - No server exit handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.