vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

codelldb consume a lot of memory. #992

Closed yuyang-ok closed 7 months ago

yuyang-ok commented 9 months ago

OS:

yuyang@yuyang-virtual-machine:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

VSCode version:

Version: 1.82.2 (user setup)
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T05:55:25.390Z
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045

CodeLLDB version:

v1.10.0

Compiler:

cargo 1.74.0-nightly (d14c85f4e 2023-09-05)

Debuggee:

a rust binary?

codelldb consumed a lot of memory and got killed.

Verbose log
  

image

vadimcn commented 9 months ago

Depending on what you are debugging, this may be normal. There is not enough info in your report for me to tell one way or the other.

yuyang-ok commented 9 months ago

Is this binary too big??

-rwxrwxr-x 1 yuyang yuyang 469M  9-р сар 22 09:36 target/debug/deps/datasources-9e62f012ac2369fa

This extension works fine for me in recently years. just not working for me for just couple of days ago, Is this relate to some updates??

yuyang-ok commented 9 months ago

I use the lldb to debug my app,looks works fine.

yuyang@yuyang-virtual-machine:~/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin$ ./lldb ~/data-fabric/target/debug/deps/datasources-d918da606dda4a92
(lldb) target create "/home/yuyang/data-fabric/target/debug/deps/datasources-d918da606dda4a92"
Current executable set to '/home/yuyang/data-fabric/target/debug/deps/datasources-d918da606dda4a92' (x86_64).
(lldb) r
Process 167027 launched: '/home/yuyang/data-fabric/target/debug/deps/datasources-d918da606dda4a92' (x86_64)

running 19 tests
test driver::datasource::mysql::tests::test_infer_schema ... ignored, need local database
test driver::datasource::mysql::tests::test_mysql_source ... ignored, need local database
test driver::datasource::pgsql::tests::test_infer_schema ... ignored
test driver::datasource::pgsql::tests::test_pgsql_source ... ignored
test driver::datasource::rest::tests::load_partitions ... ignored,
test driver::datasource::rest::tests::load_partitions2 ... ignored,
test monitor::tests::test_connection ... ignored, This test maybe run a little longer
test sql_filter::filter_to_strin_test::filter_push_down ... ignored,
test table_provider::external_view::rest_table::tests::load_partitions ... ignored,
test table_provider::external_view::rest_table::tests::load_partitions2 ... ignored,
test table_provider::external_view::xlsx_table::tests::load_xlsx_with_toml_config ... ignored, need local xlsx file
test io::tests::path_test ... ok
test monitor::tests::test_status_cal ... ok
test table_provider::external_view::xlsx_table::tests::schema_interface ... ok
test table_provider::external_view::xlsx_table::tests::xlsx_value_to_record_batch ... ok
test create_view::tests::create_static_view ... ok
test json::tests::test_json ... ok
test table_provider::external_view::csv_table::tests::load_partitions ... ok
test json::tests::test_json_array_encode ... ok

test result: ok. 8 passed; 0 failed; 11 ignored; 0 measured; 0 filtered out; finished in 0.05s

Process 167027 exited with status = 0 (0x00000000)
(lldb) quit
yuyang@yuyang-virtual-machine:~/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin$ ./lldb ~/data-fabric/target/debug/deps/datasources-d918da606dda4a92^C
yuyang@yuyang-virtual-machine:~/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin$ ls -l -h  ~/data-fabric/target/debug/deps/datasources-d918da606dda4a92
-rwxrwxr-x 1 yuyang yuyang 448M  9-р сар 22 12:29 /home/yuyang/data-fabric/target/debug/deps/datasources-d918da606dda4a92
yuyang@yuyang-virtual-machine:~/.vscode-server/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin$

image lldb use this amount of memory.