Skip to content

UnicodeDecodeError for speedscope #256

@njgrisafi

Description

@njgrisafi

I generated an austin out with austin -g -o austin-latest.out pytest

Then when running austin2speedscope austin-latest.out austin.speedscope
I get the following error

Traceback (most recent call last):
  File "/home/admin/workspace/app/.venv/bin/austin2speedscope", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/admin/workspace/app/.venv/lib/python3.11/site-packages/austin/format/speedscope.py", line 214, in main
    for line in fin:
  File "/home/admin/workspace/app/.venv/lib/python3.11/site-packages/austin/stats.py", line 434, in _
    for line in self._stream_iter:
  File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2875: invalid start byte

Our austin output is fairly large ~7GB not sure if that has anything to do with it.

Running this on a debian machine

Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Python version is 3.11.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions