Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap snapshot does not seem to work anymore on 1.11 (in chrome profile loader) #54414

Open
KristofferC opened this issue May 8, 2024 · 3 comments
Labels
kind:regression Regression in behavior compared to a previous version profiler

Comments

@KristofferC
Copy link
Sponsor Member

julia> using Profile

julia> Profile.take_heap_snapshot("1.11.heapsnapshot")
"1.11.heapsnapshot"

Trying to load this in Chrome leads to

An error occurred when a call to method 'buildSnapshot' was requested
TypeError: Cannot read properties of undefined (reading '1')
    at F.name (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:8216)
    at F.rawName (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:38825)
    at F.name (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:39038)
    at F.isDocumentDOMTreesRoot (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:40431)
    at b.isUserRoot (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:35720)
    at b.calculateDistances (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:18912)
    at b.calculateDistances (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:35160)
    at b.initialize (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:14141)
    at new b (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:33684)
    at A.buildSnapshot (devtools://devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js:1:43578)

On 1.10 the same procedure works fine.

@KristofferC KristofferC added kind:regression Regression in behavior compared to a previous version profiler labels May 8, 2024
@IanButterworth
Copy link
Sponsor Member

Does the snapshot load in vscode's viewer?

@KristofferC
Copy link
Sponsor Member Author

In VSCode I can load the 1.11 snapshot but not the 1.10 one...

@KristofferC KristofferC changed the title Heap snapshot does not seem to work anymore on 1.11 Heap snapshot does not seem to work anymore on 1.11 (in chrome profile loader) May 8, 2024
@IanButterworth
Copy link
Sponsor Member

Yeah these aren't backported to 1.10 yet
#53833
#53984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:regression Regression in behavior compared to a previous version profiler
Projects
None yet
Development

No branches or pull requests

2 participants