You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .prof file, which is generated by python 3.9.2 which is built into Blender 2.93.1.
Now I try to parse it with my system's python 3.9.2:
[portnov]$ python3 ./gprof2dot.py /tmp/test.prof master [9:58]
Traceback (most recent call last):
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 3555, in <module>
main()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 3509, in main
profile = parser.parse()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1322, in parse
self.parse_cg()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1304, in parse_cg
while not self._cg_header_re.match(self.readline()):
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1142, in readline
line = self.fp.readline()
File "/usr/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfb in position 0: invalid start byte
I also tried with Blender's python, just in case the problem is in python's compilation options:
[portnov]$ ~/soft/blender-2.93.1-linux-x64/2.93/python/bin/python3.9 ./gprof2dot.py /tmp/test.prof master [10:01]
Traceback (most recent call last):
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 3555, in <module>
main()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 3509, in main
profile = parser.parse()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1322, in parse
self.parse_cg()
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1304, in parse_cg
while not self._cg_header_re.match(self.readline()):
File "/home/portnov/src/gprof2dot/./gprof2dot.py", line 1142, in readline
line = self.fp.readline()
File "/home/portnov/soft/blender-2.93.1-linux-x64/2.93/python/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfb in position 0: invalid start byte
I have a
.prof
file, which is generated by python 3.9.2 which is built into Blender 2.93.1.Now I try to parse it with my system's python 3.9.2:
I also tried with Blender's python, just in case the problem is in python's compilation options:
No luck either :/
Attaching prof file:
test.zip
Also note: https://github.com/baverman/flameprof tool parses the same file successfully.
The text was updated successfully, but these errors were encountered: