godotjs / javascript

Javascript binding for godotengine
https://godotjs.github.io/
MIT License
982 stars 82 forks source link

Debugger : memory leaks #62

Closed linkpy closed 4 years ago

linkpy commented 4 years ago

Before any debugging session :

image

After a single debugging session (which crashed because of missing resource) :

image

And it keep increasing, even if there is nothing running now in vscode. 30sec after :

image

I dont know if this comes from the original QuickJS debugger or if it comes from the fork for godot, and sadly i have no idea how i can find that out.

linkpy commented 4 years ago

From the process explorer of VSCode, the memory leaks is related to the "extensionHost" process.

image

"C:\Users\linkie-pi\AppData\Local\Programs\Miocrosoft VS Code\Code.exe" --inspect-port=0 "c:\Users\linkie-pi\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork" --type=extensionHost

linkpy commented 4 years ago

I narrowed down the memory leak origin : It happens when i try to stop the godot process by pressing the stop button from VSCode debugger. If i close godot directly, the memory leak doesn't happen. It happen after pressing the stop button.

Futhermore, when pressing the stop button in vscode, the godot's window isn't closed.