debug session exited unexpectedly
OS: macOS Catalina VSCode version: 1.56.0 Extension version: 1.6.3 Compiler: Apple clang version 12.0.0 (clang-1200.0.32.29), c/c++ Build target: x86_64-darwin
During the debug (step in/out, continue, watch variable, etc.), the debug session exited unexpectedly. This problem had been happened many times since I started using codeLLDB, a extension which I love very much.
Debug log
[2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error::1:1: use of undeclared identifier 'area' area.y ^ [2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error: <user expression 1902>:1:1: use of undeclared identifier 'cu' cu.cs.m_reco.bufs ^
[2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error: <user expression 1904>:1:1: use of undeclared identifier 'other' other.bufs[1].buf[15*64+3] ^
[2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error: <user expression 1905>:1:1: use of undeclared identifier 'parameterSetManager' parameterSetManager->m_apsMap ^
[2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2357,"success":false,"message":"Internal debugger error: error: <user expression 1889>:1:1: use of undeclared identifier 'm_Range'\nm_Range\n^\n","show_user":true} [2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error: <user expression 1906>:1:1: use of undeclared identifier 'm_parameterSetManager' m_parameterSetManager->m_apsMap ^
[2021-05-08T03:14:04.949Z ERROR codelldb::debug_session] Internal debugger error: error: <user expression 1907>:1:1: use of undeclared identifier 'm_modeCtrl' m_modeCtrl ^
[2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2358,"success":false,"message":"Internal debugger error: error: <user expression 1890>:1:2: use of undeclared identifier 'rcProbModel'\n(rcProbModel.m_state[1] << 16) + rcProbModel.m_state[0]\n ^\nerror: <user expression 1890>:1:34: use of undeclared identifier 'rcProbModel'\n(rcProbModel.m_state[1] << 16) + rcProbModel.m_state[0]\n ^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2359,"success":true,"command":"evaluate","body":{"result":"0","type":"PosType","variablesReference":0}} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2360,"success":true,"command":"evaluate","body":{"result":"32","type":"PosType","variablesReference":0}} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2361,"success":true,"command":"evaluate","body":{"result":"64","type":"SizeType","variablesReference":0}} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2362,"success":true,"command":"evaluate","body":{"result":"32","type":"SizeType","variablesReference":0}} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2363,"success":false,"message":"Internal debugger error: error: <user expression 1895>:1:1: use of undeclared identifier 'currCU'\ncurrCU.blocks[0].x\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2364,"success":false,"message":"Internal debugger error: error: <user expression 1896>:1:1: use of undeclared identifier 'currCU'\ncurrCU.blocks[0].y\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2365,"success":false,"message":"Internal debugger error: error: <user expression 1897>:1:1: use of undeclared identifier 'currCU'\ncurrCU.blocks[0].width\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2366,"success":false,"message":"Internal debugger error: error: <user expression 1898>:1:1: use of undeclared identifier 'currCU'\ncurrCU.blocks[0].height\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2367,"success":false,"message":"Internal debugger error: error: <user expression 1899>:1:1: use of undeclared identifier 'piPred'\npiPred->buf[2 * 128 + 11]\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2368,"success":false,"message":"Internal debugger error: error: <user expression 1900>:1:1: use of undeclared identifier 'm_encPicYuvBuffer'\nm_encPicYuvBuffer\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2369,"success":false,"message":"Internal debugger error: error: <user expression 1901>:1:1: use of undeclared identifier 'area'\narea.y\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2370,"success":false,"message":"Internal debugger error: error: <user expression 1902>:1:1: use of undeclared identifier 'cu'\ncu.cs.m_reco.bufs\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2371,"success":true,"command":"evaluate","body":{"result":"50064","type":"int","variablesReference":0}} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2372,"success":false,"message":"Internal debugger error: error: <user expression 1904>:1:1: use of undeclared identifier 'other'\nother.bufs[1].buf[1564+3]\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2373,"success":false,"message":"Internal debugger error: error: <user expression 1905>:1:1: use of undeclared identifier 'parameterSetManager'\nparameterSetManager->m_apsMap\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2374,"success":false,"message":"Internal debugger error: error: <user expression 1906>:1:1: use of undeclared identifier 'm_parameterSetManager'\nm_parameterSetManager->m_apsMap\n^\n","show_user":true} [2021-05-08T03:14:04.949Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":2375,"success":false,"message":"Internal debugger error: error: <user expression 1907>:1:1: use of undeclared identifier 'm_modeCtrl'\nm_modeCtrl\n^\n","show_user":true} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"m_Range","frameId":1180,"context":"watch"},"type":"request","seq":2376} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"(rcProbModel.m_state[1] << 16) + rcProbModel.m_state[0]","frameId":1180,"context":"watch"},"type":"request","seq":2377} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"partitioner.m_currArea.blocks[0].x","frameId":1180,"context":"watch"},"type":"request","seq":2378} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"partitioner.m_currArea.blocks[0].y","frameId":1180,"context":"watch"},"type":"request","seq":2379} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"partitioner.m_currArea.blocks[0].width","frameId":1180,"context":"watch"},"type":"request","seq":2380} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"partitioner.m_currArea.blocks[0].height","frameId":1180,"context":"watch"},"type":"request","seq":2381} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"currCU.blocks[0].x","frameId":1180,"context":"watch"},"type":"request","seq":2382} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"currCU.blocks[0].y","frameId":1180,"context":"watch"},"type":"request","seq":2383} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"currCU.blocks[0].width","frameId":1180,"context":"watch"},"type":"request","seq":2384} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"currCU.blocks[0].height","frameId":1180,"context":"watch"},"type":"request","seq":2385} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"piPred->buf[2 * 128 + 11]","frameId":1180,"context":"watch"},"type":"request","seq":2386} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"m_encPicYuvBuffer","frameId":1180,"context":"watch"},"type":"request","seq":2387} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"area.y","frameId":1180,"context":"watch"},"type":"request","seq":2388} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"cu.cs.m_reco.bufs","frameId":1180,"context":"watch"},"type":"request","seq":2389} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"(92/21088)+(32/2)","frameId":1180,"context":"watch"},"type":"request","seq":2390} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"other.bufs[1].buf[15*64+3]","frameId":1180,"context":"watch"},"type":"request","seq":2391} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"parameterSetManager->m_apsMap","frameId":1180,"context":"watch"},"type":"request","seq":2392} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"m_parameterSetManager->m_apsMap","frameId":1180,"context":"watch"},"type":"request","seq":2393} [2021-05-08T03:14:10.341Z DEBUG codelldb::dap_codec] --> {"command":"evaluate","arguments":{"expression":"m_modeCtrl","frameId":1180,"context":"watch"},"type":"request","seq":2394} [2021-05-08T03:14:10.342Z DEBUG codelldb::debug_session] End of the requests stream [2021-05-08T03:14:10.342Z DEBUG codelldb::debug_session] DebugSession::drop() [2021-05-08T03:14:10.342Z DEBUG codelldb] Session has ended [2021-05-08T03:14:10.352Z DEBUG codelldb] Exiting Debug adapter exit code=0, signal=null.
Can you please provide the entire log? From what I can see here, the debug session ended because VSCode closed connection from its end.
Can you please provide the entire log? From what I can see here, the debug session ended because VSCode closed connection from its end.
Sure, I will provide the entire log file when this problem happens again. Thanks for your kind reply and help.
Can you please provide the entire log? From what I can see here, the debug session ended because VSCode closed connection from its end.
And, I never met such a problem when I was debugging using c/c++ extension provided by Microsoft.
Can you please provide the entire log? From what I can see here, the debug session ended because VSCode closed connection from its end. Enclosed please find an entire log. Thanks for your help. I really do not want to give up codelldb. log.txt
Looks like there's an overflow in one of the internal message queues in the adapter. This is triggered when a large number of messages arrive at once (in this case by all the watch expressions you use). For now, please try to have no more than about 8 watch expressions.
Looks like there's an overflow in one of the internal message queues in the adapter. This is triggered when a large number of messages arrive at once (in this case by all the watch expressions you use). For now, please try to have no more than about 8 watch expressions.
OK. Thanks. I will try your suggestion. Could this problem be fixed in the later version?
Yeah, that's the plan.