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

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

Open
PinetreePantry opened this issue Sep 10, 2024 · 2 comments

Comments

@PinetreePantry
Copy link

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
Copy link
Owner

jlfwong commented Sep 10, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants