Piglit dies with errors coming from decode('utf-8')
As mentioned in mesa!11756 (merged) I can't run piglit on a Yocto 3.3 based system.
Neither the pre-built
piglit package nor the latest git version built locally.
# ./piglit run -p glx tests/sanity results/sanity Traceback (most recent call last): File "/home/root/git/piglit/./piglit", line 170, in <module> main() File "/home/root/git/piglit/./piglit", line 166, in main sys.exit(runner(args)) File "/home/root/git/piglit/framework/exceptions.py", line 49, in _inner return func(*args, **kwargs) File "/home/root/git/piglit/framework/programs/run.py", line 357, in run backend.initialize(_create_metadata( File "/home/root/git/piglit/framework/programs/run.py", line 263, in _create_metadata metadata['info']['system'] = core.collect_system_info() File "/home/root/git/piglit/framework/core.py", line 194, in collect_system_info result[name] = out.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 680-681: invalid continuation byte
UnicodeDecodeError error has some variations but the failing backtrace is the same as above:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9b in position 681: invalid start byte UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 681: invalid start byte
All glibc gconv modules and language localedata subpackages are installed. All the mandatory runtime and build dependencies are installed to build piglit locally, there were no build errors.