Skip to content

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

@MtnDewritos

Description

@MtnDewritos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions