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

The document “xyz.trace” could not be opened. Document Missing Template Error #99

Open
drazen-todorovic opened this issue Oct 18, 2023 · 2 comments

Comments

@drazen-todorovic
Copy link

The command

open target/instruments/xyz.trace

Causes the following error: "The document “xyz.trace” could not be opened. Document Missing Template Error".

I am running the cargo instruments with the following command:

cargo instruments --package backend --template alloc --bin backend --release

Debug info for the release profile is enabled.

Os version: macOS Sonoma 14.0
Chip: Apple M2

Latest XCode tools installed.

@sondrelg
Copy link

sondrelg commented Sep 1, 2024

I'm also getting this locally, and when I try to drop my trace into https://www.speedscope.app, it produces a similar error: Failed to load format Error: Expected key form.template.

@arielpeltz
Copy link

I am not sure if it helps anyone, I also encountered this issue and figured out it was because I was killing the process before it was done. My application is a server that is long running and will stop gracefully on on Ctrl+C or SIGHUP.
I was running cargo instruments --template alloc, waiting for a while and then killing it with Ctrl+C.
Moving to cargo instruments --template alloc --time-limit 30000 solved this problem.

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

3 participants