Closed Yellow-King21 closed 1 month ago
The value returned by ftell is INT64_MAX
, which is in the valid range. An error would be indicated by -1
, which is not the case here. Can you provide more information about the file, such as the on-disk size, or the filesystem you are using? Note that the problem is not with the trace you have saved, but with an auxiliary data file that has its path constructed in OpenFile()
.
Thank you for your response.
I looked into it and found that Tracy opens a directory (so the value is valid but doesn't make sense) and opens <home_path>/.config/tracy/user/
, but the correct path should be <home_path>/Documents/big_trace.tracy
. I followed your suggestion, and the filesystem is /dev/mapper/vgubuntu-root ext4
, and the on-disk size is 275M big_trace.tracy
. Could you provide some more information how could I trace this bug and also how do I compile debug version with gdb symbols because I tried cmake -DLEGACY=ON -DCMAKE_C_FLAGS="-O0 -g3 -ggdb" -DCMAKE_CXX_FLAGS="-O0 -g3 -ggdb" ..
but there is always optimized values. Thank you.
-DCMAKE_BUILD_TYPE=Debug
I recompile it and in DEBUG version it stop working at assert TracyStorage.cpp:120 GetSavePath
, I look at the pointer but is empty. At RELEASE version it give me <home_path>/.config/tracy/user/
as I mentioned early. I also found that PATH is correct when function at main.cpp:885.
207e065f should fix this for you.
Yes, this fix the problem and trace file was loaded as expected.
Thank you
I have a question: I tried to use Tracy with sudo, but there is no sampling data. Is this the same issue as described in issue #442?
Thank you for your answer
Hello,
I have encountered a problem when saving a file from Trace and then attempting to view it afterward. The issue occurs in
TracyUserData.cpp
at line 45. Upon debugging, I discovered that the statementconst auto sz = ftell(f);
setssz
to9223372036854775807
. The file I tried to open is287.8 MB
, but I also tried with a file that is only49.8 kB
. I save the file from the profiler (GUI).For your reference, I am using:
Best regards, Marek