[Piglit] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117: ordinal not in range(128)

Dai, XiangX xiangx.dai at intel.com
Thu May 11 05:54:45 UTC 2017


Hi, all!

I test with piglit/igt-basic which is a wonderfule test tool.
But i find a confused issue like below:
Traceback (most recent call last):
  File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 209, in execute
    self.run()
  File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 270, in run
    self._run_command()
  File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 337, in _run_command
    out, err = proc.communicate(timeout=self.timeout)
  File "/usr/lib/python3.5/subprocess.py", line 801, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.5/subprocess.py", line 1485, in _communicate
    self.stdout.encoding)
  File "/usr/lib/python3.5/subprocess.py", line 705, in _translate_newlines
    data = data.decode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117: ordinal not in range(128)

When test igt-gem_pread-basic and igt-gem_pwrite-basic, the above issue occur.
I try to set the default code way to ues utf-8 but not help.

My test host is debian with the kernel v4.11-rc8.

And if i directly run the script no with piglit, it seems ok:
root at lkp-hsw-d01 /lkp/benchmarks/piglit/lib/piglit/bin/igt/tests# ./gem_pread
IGT-Version: 1.16-g5bfbbea (x86_64) (Linux: 4.11.0-rc8 x86_64)
Time to pread 16384 bytes x      1:     45.000µs, 364.1MiB/s
Time to pread 16384 bytes x      2:      4.000µs, 4.1GiB/s
Time to pread 16384 bytes x      4:      3.500µs, 4.7GiB/s
Time to pread 16384 bytes x      8:      4.750µs, 3.4GiB/s
Time to pread 16384 bytes x     16:      4.812µs, 3.4GiB/s
Time to pread 16384 bytes x     32:      4.781µs, 3.4GiB/s
Time to pread 16384 bytes x     64:      4.094µs, 4.0GiB/s
Time to pread 16384 bytes x    128:      3.305µs, 5.0GiB/s
Time to pread 16384 bytes x    256:      3.145µs, 5.2GiB/s
Time to pread 16384 bytes x    512:      3.100µs, 5.3GiB/s
Time to pread 16384 bytes x   1024:      3.037µs, 5.4GiB/s
Time to pread 16384 bytes x   2048:      2.919µs, 5.6GiB/s
Time to pread 16384 bytes x   4096:      2.663µs, 6.2GiB/s
Time to pread 16384 bytes x   8192:      2.340µs, 7.0GiB/s
Time to pread 16384 bytes x  16384:      1.938µs, 8.5GiB/s
Time to pread 16384 bytes x  32768:      1.521µs, 10.8GiB/s
Time to pread 16384 bytes x  65536:      1.151µs, 14.2GiB/s
Time to pread 16384 bytes x 131072:      0.847µs, 19.3GiB/s
Subtest basic: SUCCESS (0.311s)
Time to uncached pread 16384 bytes x      1:      2.000µs, 8.2GiB/s
Time to uncached pread 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to uncached pread 16384 bytes x      4:      0.750µs, 21.8GiB/s
Time to uncached pread 16384 bytes x      8:      0.875µs, 18.7GiB/s
Time to uncached pread 16384 bytes x     16:      1.312µs, 12.5GiB/s
Time to uncached pread 16384 bytes x     32:      1.000µs, 16.4GiB/s
Time to uncached pread 16384 bytes x     64:      0.969µs, 16.9GiB/s
Time to uncached pread 16384 bytes x    128:      0.852µs, 19.2GiB/s
Time to uncached pread 16384 bytes x    256:      0.793µs, 20.7GiB/s
Time to uncached pread 16384 bytes x    512:      0.768µs, 21.3GiB/s
Time to uncached pread 16384 bytes x   1024:      0.718µs, 22.8GiB/s
Time to uncached pread 16384 bytes x   2048:      0.729µs, 22.5GiB/s
Time to uncached pread 16384 bytes x   4096:      0.725µs, 22.6GiB/s
Time to uncached pread 16384 bytes x   8192:      0.722µs, 22.7GiB/s
Time to uncached pread 16384 bytes x  16384:      0.708µs, 23.2GiB/s
Time to uncached pread 16384 bytes x  32768:      0.688µs, 23.8GiB/s
Time to uncached pread 16384 bytes x  65536:      0.685µs, 23.9GiB/s
Time to uncached pread 16384 bytes x 131072:      0.680µs, 24.1GiB/s
Subtest uncached: SUCCESS (0.180s)
Time to snoop pread 16384 bytes x      1:      2.000µs, 8.2GiB/s
Time to snoop pread 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to snoop pread 16384 bytes x      4:      0.750µs, 21.8GiB/s
Time to snoop pread 16384 bytes x      8:      0.875µs, 18.7GiB/s
Time to snoop pread 16384 bytes x     16:      1.312µs, 12.5GiB/s
Time to snoop pread 16384 bytes x     32:      1.094µs, 15.0GiB/s
Time to snoop pread 16384 bytes x     64:      0.875µs, 18.7GiB/s
Time to snoop pread 16384 bytes x    128:      0.773µs, 21.2GiB/s
Time to snoop pread 16384 bytes x    256:      0.711µs, 23.0GiB/s
Time to snoop pread 16384 bytes x    512:      0.701µs, 23.4GiB/s
Time to snoop pread 16384 bytes x   1024:      0.702µs, 23.3GiB/s
Time to snoop pread 16384 bytes x   2048:      0.701µs, 23.4GiB/s
Time to snoop pread 16384 bytes x   4096:      0.686µs, 23.9GiB/s
Time to snoop pread 16384 bytes x   8192:      0.690µs, 23.8GiB/s
Time to snoop pread 16384 bytes x  16384:      0.685µs, 23.9GiB/s
Time to snoop pread 16384 bytes x  32768:      0.684µs, 24.0GiB/s
Time to snoop pread 16384 bytes x  65536:      0.687µs, 23.9GiB/s
Time to snoop pread 16384 bytes x 131072:      0.685µs, 23.9GiB/s
Subtest snoop: SUCCESS (0.180s)
Time to display pread 16384 bytes x      1:      1.000µs, 16.4GiB/s
Time to display pread 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to display pread 16384 bytes x      4:      1.000µs, 16.4GiB/s
Time to display pread 16384 bytes x      8:      0.875µs, 18.7GiB/s
Time to display pread 16384 bytes x     16:      1.312µs, 12.5GiB/s
Time to display pread 16384 bytes x     32:      1.000µs, 16.4GiB/s
Time to display pread 16384 bytes x     64:      0.953µs, 17.2GiB/s
Time to display pread 16384 bytes x    128:      0.852µs, 19.2GiB/s
Time to display pread 16384 bytes x    256:      0.789µs, 20.8GiB/s
Time to display pread 16384 bytes x    512:      0.729µs, 22.5GiB/s
Time to display pread 16384 bytes x   1024:      0.685µs, 23.9GiB/s
Time to display pread 16384 bytes x   2048:      0.691µs, 23.7GiB/s
Time to display pread 16384 bytes x   4096:      0.687µs, 23.9GiB/s
Time to display pread 16384 bytes x   8192:      0.688µs, 23.8GiB/s
Time to display pread 16384 bytes x  16384:      0.684µs, 24.0GiB/s
Time to display pread 16384 bytes x  32768:      0.687µs, 23.8GiB/s
Time to display pread 16384 bytes x  65536:      0.687µs, 23.9GiB/s
Time to display pread 16384 bytes x 131072:      0.685µs, 23.9GiB/s
Subtest display: SUCCESS (0.180s)
Test requirement not met in function main, file gem_pread.c:155:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-normal: SKIP (0.000s)
Test requirement not met in function main, file gem_pread.c:171:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-uncached: SKIP (0.000s)
Test requirement not met in function main, file gem_pread.c:171:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-snoop: SKIP (0.000s)
Test requirement not met in function main, file gem_pread.c:171:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-display: SKIP (0.000s)
Test requirement not met in function main, file gem_pread.c:195:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest pagefault-pread: SKIP (0.000s)
root at lkp-hsw-d01 /lkp/benchmarks/piglit/lib/piglit/bin/igt/tests# ./gem_pwrite
IGT-Version: 1.16-g5bfbbea (x86_64) (Linux: 4.11.0-rc8 x86_64)
Time to pwrite 16384 bytes x      1:     27.000µs, 606.8MiB/s
Time to pwrite 16384 bytes x      2:      5.000µs, 3.3GiB/s
Time to pwrite 16384 bytes x      4:      3.750µs, 4.4GiB/s
Time to pwrite 16384 bytes x      8:      3.625µs, 4.5GiB/s
Time to pwrite 16384 bytes x     16:      3.500µs, 4.7GiB/s
Time to pwrite 16384 bytes x     32:      3.531µs, 4.6GiB/s
Time to pwrite 16384 bytes x     64:      4.000µs, 4.1GiB/s
Time to pwrite 16384 bytes x    128:      3.500µs, 4.7GiB/s
Time to pwrite 16384 bytes x    256:      3.000µs, 5.5GiB/s
Time to pwrite 16384 bytes x    512:      2.850µs, 5.7GiB/s
Time to pwrite 16384 bytes x   1024:      2.821µs, 5.8GiB/s
Time to pwrite 16384 bytes x   2048:      2.644µs, 6.2GiB/s
Time to pwrite 16384 bytes x   4096:      2.052µs, 8.0GiB/s
Time to pwrite 16384 bytes x   8192:      1.907µs, 8.6GiB/s
Time to pwrite 16384 bytes x  16384:      1.692µs, 9.7GiB/s
Time to pwrite 16384 bytes x  32768:      1.423µs, 11.5GiB/s
Time to pwrite 16384 bytes x  65536:      1.129µs, 14.5GiB/s
Time to pwrite 16384 bytes x 131072:      0.859µs, 19.1GiB/s
Subtest basic: SUCCESS (0.297s)
Time to uncached pwrite 16384 bytes x      1:      1.000µs, 16.4GiB/s
Time to uncached pwrite 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to uncached pwrite 16384 bytes x      4:      1.000µs, 16.4GiB/s
Time to uncached pwrite 16384 bytes x      8:      2.000µs, 8.2GiB/s
Time to uncached pwrite 16384 bytes x     16:      1.562µs, 10.5GiB/s
Time to uncached pwrite 16384 bytes x     32:      1.375µs, 11.9GiB/s
Time to uncached pwrite 16384 bytes x     64:      1.109µs, 14.8GiB/s
Time to uncached pwrite 16384 bytes x    128:      0.984µs, 16.6GiB/s
Time to uncached pwrite 16384 bytes x    256:      0.867µs, 18.9GiB/s
Time to uncached pwrite 16384 bytes x    512:      0.844µs, 19.4GiB/s
Time to uncached pwrite 16384 bytes x   1024:      0.801µs, 20.5GiB/s
Time to uncached pwrite 16384 bytes x   2048:      0.794µs, 20.6GiB/s
Time to uncached pwrite 16384 bytes x   4096:      0.792µs, 20.7GiB/s
Time to uncached pwrite 16384 bytes x   8192:      0.791µs, 20.7GiB/s
Time to uncached pwrite 16384 bytes x  16384:      0.789µs, 20.8GiB/s
Time to uncached pwrite 16384 bytes x  32768:      0.781µs, 21.0GiB/s
Time to uncached pwrite 16384 bytes x  65536:      0.781µs, 21.0GiB/s
Time to uncached pwrite 16384 bytes x 131072:      0.782µs, 21.0GiB/s
Subtest uncached: SUCCESS (0.205s)
Time to snoop pwrite 16384 bytes x      1:      1.000µs, 16.4GiB/s
Time to snoop pwrite 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to snoop pwrite 16384 bytes x      4:      4.750µs, 3.4GiB/s
Time to snoop pwrite 16384 bytes x      8:      2.125µs, 7.7GiB/s
Time to snoop pwrite 16384 bytes x     16:      1.375µs, 11.9GiB/s
Time to snoop pwrite 16384 bytes x     32:      1.844µs, 8.9GiB/s
Time to snoop pwrite 16384 bytes x     64:      1.281µs, 12.8GiB/s
Time to snoop pwrite 16384 bytes x    128:      0.969µs, 16.9GiB/s
Time to snoop pwrite 16384 bytes x    256:      0.887µs, 18.5GiB/s
Time to snoop pwrite 16384 bytes x    512:      0.820µs, 20.0GiB/s
Time to snoop pwrite 16384 bytes x   1024:      0.810µs, 20.2GiB/s
Time to snoop pwrite 16384 bytes x   2048:      0.795µs, 20.6GiB/s
Time to snoop pwrite 16384 bytes x   4096:      0.790µs, 20.7GiB/s
Time to snoop pwrite 16384 bytes x   8192:      0.789µs, 20.8GiB/s
Time to snoop pwrite 16384 bytes x  16384:      0.787µs, 20.8GiB/s
Time to snoop pwrite 16384 bytes x  32768:      0.787µs, 20.8GiB/s
Time to snoop pwrite 16384 bytes x  65536:      0.783µs, 20.9GiB/s
Time to snoop pwrite 16384 bytes x 131072:      0.780µs, 21.0GiB/s
Subtest snoop: SUCCESS (0.205s)
Time to display pwrite 16384 bytes x      1:      1.000µs, 16.4GiB/s
Time to display pwrite 16384 bytes x      2:      1.000µs, 16.4GiB/s
Time to display pwrite 16384 bytes x      4:      0.750µs, 21.8GiB/s
Time to display pwrite 16384 bytes x      8:      2.125µs, 7.7GiB/s
Time to display pwrite 16384 bytes x     16:      1.500µs, 10.9GiB/s
Time to display pwrite 16384 bytes x     32:      1.469µs, 11.2GiB/s
Time to display pwrite 16384 bytes x     64:      1.234µs, 13.3GiB/s
Time to display pwrite 16384 bytes x    128:      1.008µs, 16.3GiB/s
Time to display pwrite 16384 bytes x    256:      0.887µs, 18.5GiB/s
Time to display pwrite 16384 bytes x    512:      0.830µs, 19.7GiB/s
Time to display pwrite 16384 bytes x   1024:      0.809µs, 20.3GiB/s
Time to display pwrite 16384 bytes x   2048:      0.797µs, 20.5GiB/s
Time to display pwrite 16384 bytes x   4096:      0.797µs, 20.5GiB/s
Time to display pwrite 16384 bytes x   8192:      0.792µs, 20.7GiB/s
Time to display pwrite 16384 bytes x  16384:      0.782µs, 21.0GiB/s
Time to display pwrite 16384 bytes x  32768:      0.782µs, 21.0GiB/s
Time to display pwrite 16384 bytes x  65536:      0.779µs, 21.0GiB/s
Time to display pwrite 16384 bytes x 131072:      0.781µs, 21.0GiB/s
Subtest display: SUCCESS (0.205s)
Test requirement not met in function main, file gem_pwrite.c:283:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-normal: SKIP (0.000s)
Test requirement not met in function main, file gem_pwrite.c:301:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-uncached: SKIP (0.000s)
Test requirement not met in function main, file gem_pwrite.c:301:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-snoop: SKIP (0.000s)
Test requirement not met in function main, file gem_pwrite.c:301:
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)
Subtest stolen-display: SKIP (0.000s)
Subtest small-cpu-forwards: SUCCESS (0.187s)
Subtest small-gtt-forwards: SUCCESS (0.217s)
Subtest big-cpu-forwards: SUCCESS (0.731s)
Subtest big-gtt-forwards: SUCCESS (0.999s)
Subtest huge-cpu-forwards: SUCCESS (0.912s)
Subtest huge-gtt-forwards: SUCCESS (0.988s)
Subtest small-cpu-backwards: SUCCESS (0.400s)
Subtest small-gtt-backwards: SUCCESS (0.217s)
Subtest big-cpu-backwards: SUCCESS (0.743s)
Subtest big-gtt-backwards: SUCCESS (1.012s)
Subtest huge-cpu-backwards: SUCCESS (0.962s)
Subtest huge-gtt-backwards: SUCCESS (1.002s)
Subtest small-cpu-random: SUCCESS (0.411s)
Subtest small-gtt-random: SUCCESS (0.197s)
Subtest big-cpu-random: SUCCESS (0.782s)
Subtest big-gtt-random: SUCCESS (0.864s)
Subtest huge-cpu-random: SUCCESS (0.985s)
Subtest huge-gtt-random: SUCCESS (1.079s)
Subtest small-cpu-fbr: SUCCESS (0.409s)
Subtest small-gtt-fbr: SUCCESS (0.301s)
Subtest big-cpu-fbr: SUCCESS (1.444s)
Subtest big-gtt-fbr: SUCCESS (1.765s)
Subtest huge-cpu-fbr: SUCCESS (1.591s)
Subtest huge-gtt-fbr: SUCCESS (1.700s)

Also, i met a question when i want to retest pread:
root at lkp-hsw-d01 /lkp/benchmarks/piglit# bin/piglit run igt -t igt/gem_pread/basic /tmp/lkp/piglit-results -x igt/gem_pread/basic
Fatal Error: There are no tests scheduled to run. Aborting run.

Could you help me?

Thanks
Dai Xiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20170511/a1d65041/attachment-0001.html>


More information about the Piglit mailing list