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

Cannot visualize capture file "Wrong format. Did not save any metrics for visualization." #103

Open
MtnDewritos opened this issue Jul 12, 2024 · 0 comments

Comments

@MtnDewritos
Copy link

I do a capture for 10 seconds, it generates a csv file, but when selecting it for visualization and hitting Visualize i get the error "Wrong format. Did not save any metrics for visualization."

In PlotData.cs something seems to go wrong with the while loop at line 243 inside the LoadData function, specifically the double parsing in the if statement on line 254 if (double.TryParse(values[indexFrameStart], out var frameStart) && double.TryParse(values[indexFrameTimes], out var frameTimes) && int.TryParse(values[indexAppMissed], out var appMissed))

It seems that by changing the values in the TimeInSeconds, MsBetweenPresents and MsUntilRenderComplete columns in my csv file to integers managed to get me past the error, I also tried replacing the "." in every decimal number with "," but that didn't help.
Since the check on line 254 is the point that needs to be passed for anything to be added to session.frameStart and the error only shows up when session.frameStart.Count() == 0 on line 310 failure to parse the values from the csv file as doubles should be the issue.

Why the double parser is unable to parse decimal numbers however is a complete mystery to me. Someone with more knowledge of how CSV readers and double parsers in C# work could probably figure this out though.

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

1 participant