jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.56k stars 243 forks source link

Failed to load format Error: Could not find events for key: undefined #480

Open PinetreePantry opened 2 months ago

PinetreePantry commented 2 months ago

Hello, I was analyzing a big torch profiling trace with speedscope. The webgl javascript throws an error called "Failed to load format Error: Could not find events for key: undefined". This matches this line in the code. Thing is, even if events for this key could not be found, I would hope that the profiler could continue process the remaining information, so that I could see at least some flames out of there. Otherwise it is very disappointing to see "Something went wrong" after speedscope parsed the file for about a minute.

Attached is my console's screenshot.

Screen Shot 2024-09-09 at 11 28 27 PM
jlfwong commented 2 months ago

Hi @PinetreePantry! Without the example profile that reproduces this issue, it would be hard to make any progress on this. Would you be able to provide that?

It would also be helpful to understand how the profile was produced in case this is a bug in the profiler, rather than speedscope.

The other log messages shown in the console indicate that the profile is malformed (the two warnings above the "Failed to load format", so I suspect something is wrong in the profiler.

PinetreePantry commented 2 months ago

Hi, I later successfully opened the trace (.pt.trace.json file) successfully via Tensorboard pytorch profiler, so I think we are good to go! If you are still interested in why that parsing was failing, you can send me a gmail account where I can share the trace via google drive.