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
{{ message }}
Repository navigation
browser.test_cubegeom_pre fails with headless chromium-browser #5668
$ EMSCRIPTEN_BROWSER="chromium-browser --disable-gpu --headless --disable-popup-blocking --remote-debugging-port=9222" python2 emscripten/tests/runner.py browser.test_cubegeom_pre
WARNING:root:use EM_ALL_ENGINES=1 in the env to run against all JS engines, which is slower but provides more coverage
Test suites:
['test_browser']
Running test_browser: (1 tests)
[Browser harness server on process 129]
Running the browser tests. Make sure the browser allows popups from localhost.
test_cubegeom_pre (test_browser.browser) ... [browser launch: test.html ]
[server response: /report_result?10 ]
ERROR
[Browser harness server terminated]
======================================================================
ERROR: test_cubegeom_pre (test_browser.browser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/saschanaz/emscripten/tests/test_browser.py", line 1752, in test_cubegeom_pre
self.btest('cubegeom_pre.c', reference='cubegeom_pre.png', args=['-s', 'LEGACY_GL_EMULATION=1', '-lGL', '-lSDL'])
File "/home/saschanaz/emscripten/tests/runner.py", line 968, in btest
self.run_browser(outfile + url_suffix, message, ['/report_result?' + e for e in expected], timeout=timeout)
File "/home/saschanaz/emscripten/tests/runner.py", line 810, in run_browser
self.assertIdentical(expectedResult, output)
File "/home/saschanaz/emscripten/tests/runner.py", line 485, in assertIdentical
limit_size(''.join([a.rstrip()+'\n' for a in difflib.unified_diff(x.split('\n'), y.split('\n'), fromfile='expected', tofile='actual')]))
Exception: Expected to have '/report_result?0' == '/report_result?10', diff:
--- expected
+++ actual
@@ -1 +1 @@
-/report_result?0
+/report_result?10
----------------------------------------------------------------------
Ran 1 test in 7.354s
FAILED (errors=1)
Not sure why as test_cubegeom_color passes. Any clue why this happens?
(I won't open a PR for Travis browser test unless there is an explicit agreement on #5660)
changed the title [-]browser.test_cubegeom_pre fails with chromium-browser[/-][+]browser.test_cubegeom_pre fails with headless chromium-browser[/+]on Oct 15, 2017
Does it pass on firefox on the same machine? And what does the rendered image look like - anything similar to what it should (tests/cubegeom_pre.png)?
It's possible GL rendering is not 100% exact, but an error of 10 means quite a lot of difference, more than I'd expect. But it could still be that, we have reference_slack in some tests for that reason. So if the result looks correct, and so is a GL rendering imprecision, we can just add slack.
Hmm yes, that looks wrong. The top 20% part with two colors separated by a slanted line should not appear at all. It's like some extra triangles block part of the properly-rendered tiles.
This is probably a GPU or browser bug. What GPU is that on?
All that's on chrome, correct? Perhaps it's all using chrome's software renderer (even on a machine with a seemingly normal GPU it might decide to not use it), and the bug is there?
Anyhow, it's fine to skip this test I guess. The only other thing I'd suggest doing is verifying whether this is in fact a chrome software renderer bug (e.g. seeing it works on firefox on the same machine, or making sure the chrome software renderer is or isn't on) and if so filing it.
Activity
[-]browser.test_cubegeom_pre fails with chromium-browser[/-][+]browser.test_cubegeom_pre fails with headless chromium-browser[/+]kripken commentedon Oct 16, 2017
Does it pass on firefox on the same machine? And what does the rendered image look like - anything similar to what it should (
tests/cubegeom_pre.png)?It's possible GL rendering is not 100% exact, but an error of 10 means quite a lot of difference, more than I'd expect. But it could still be that, we have
reference_slackin some tests for that reason. So if the result looks correct, and so is a GL rendering imprecision, we can just add slack.saschanaz commentedon Oct 20, 2017
Removed
--headlessand I'm seeing this screen:Chromium version 61.0.3163.100. Similar to
cubegeom_pre.png, but not in pixel-to-pixel :/kripken commentedon Oct 20, 2017
Hmm yes, that looks wrong. The top 20% part with two colors separated by a slanted line should not appear at all. It's like some extra triangles block part of the properly-rendered tiles.
This is probably a GPU or browser bug. What GPU is that on?
saschanaz commentedon Oct 20, 2017
Intel Atom X7-Z8700 integrated GPU, but this cannot be fixed by forcing software rendering by
--disable-gpu.saschanaz commentedon Oct 20, 2017
I'm getting same diff errors on the cubegeom_pre tests also on Travis. Logs: https://travis-ci.org/SaschaNaz/emscripten/builds/290295450
kripken commentedon Oct 20, 2017
All that's on chrome, correct? Perhaps it's all using chrome's software renderer (even on a machine with a seemingly normal GPU it might decide to not use it), and the bug is there?
Anyhow, it's fine to skip this test I guess. The only other thing I'd suggest doing is verifying whether this is in fact a chrome software renderer bug (e.g. seeing it works on firefox on the same machine, or making sure the chrome software renderer is or isn't on) and if so filing it.
saschanaz commentedon Oct 21, 2017
Thanks for the tips, it seems Chrome software renderer is causing this error! Closing.