hprof2flamegraph icon indicating copy to clipboard operation
hprof2flamegraph copied to clipboard

UnicodeDecodeError

Open VPDong opened this issue 7 years ago • 1 comments

Hi, I hava a file that generated on android,I convert it to a standard binary hprof by the tool "hprof-conv".stackcollapse-hprof use "utf-8" to read it,so error is showed:

    File "./stackcollapse_hprof.py", line 207, in <module>
      main()
    File "./stackcollapse_hprof.py", line 184, in main
      content  = get_file_content(filename)
    File "./stackcollapse_hprof.py", line 60, in get_file_content
      return f.read()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 302, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
      UnicodeDecodeError: 'utf8' codec can't decode byte 0x99 in position 29: invalid start byte

Do you have a solution for android hprof?

VPDong avatar Jun 25 '18 08:06 VPDong

Thanks for the report. Could you send me an example file? (throw away email: [email protected]).

cykl avatar Jun 25 '18 22:06 cykl