microsoft / vscode-js-profile-visualizer

A custom editor for viewing `.cpuprofile` files in VS Code
MIT License
139 stars 29 forks source link

Error when loading heap snapshot #183

Open addy opened 3 months ago

addy commented 3 months ago

Hey there, as far as I can tell, I'm using the tool correctly, although I haven't had a chance to debug locally. Just received this error when attempting to load a .heapsnapshot file generated today.

Error: RuntimeError: unreachable at wasm://wasm/000b0852:wasm-function[127]:0x1f244 at wasm://wasm/000b0852:wasm-function[184]:0x24977 at wasm://wasm/000b0852:wasm-function[183]:0x24882 at wasm://wasm/000b0852:wasm-function[118]:0x1e96e at wasm://wasm/000b0852:wasm-function[71]:0x192f3 at wasm://wasm/000b0852:wasm-function[44]:0x11d17 at z (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.vscode-js-profile-table/out/425.heapsnapshotWorker.js:1:1869) at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.vscode-js-profile-table/out/heapsnapshotWorker.js:1:2855
connor4312 commented 3 months ago

Are you able to share the .heapsnapshot with me so I can debug it?

elliots commented 2 months ago

i'm getting the same with a 1.1gb heap dump

image
SimonSiefke commented 1 month ago

@connor4312 This heapsnapshot reproduces the issue for me: syntax-highlighting-worker.zip

heapsnapshot

addy commented 1 month ago

Are you able to share the .heapsnapshot with me so I can debug it?

Unfortunately not for this application :( thankfully it does look like others are experiencing. I can try to replicate in an exposable app if needed.