WebGL shader regular update crashes nouveau driver 17.3.3
Submitted by Hugues Evrard
Assigned to Nouveau Project
Link to original bug (#105629)
Description
Created attachment 138227 Standalone HTML file for reproduction
The repetitive updating + rendering of a fragment shader leads to a crash of the nouveau driver.
Reproduction steps:
- OS: Linux 4.13.0-37-generic #42 (closed)~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018 x86_64
- Mesa 17.3.3 (from ppa:ubuntu-x-swat)
- GPU: NVIDIA Corporation GK107 [GeForce GT 630 OEM] (rev a1)
Using chromium (64.0.3282.167, firefox does not reproduce), visit the html page attached to that bug report, and wait for approx. 30 times of shader update. Nouveau crashes with error:
nouveau: kernel rejected pushbuf: No such file or directory nouveau: ch7: krec 0 pushes 1 bufs 24 relocs 0 nouveau: ch7: buf 00000000 00000004 00000004 00000004 00000000 nouveau: ch7: buf 00000001 00000006 00000004 00000000 00000004 nouveau: ch7: buf 00000002 00000008 00000002 00000002 00000002 ...
See attachment for the whole error trace.
Reproduction is non-deterministic as the number of time to render the shader may vary, but it does crash reliably within the first 50 shader updates (sometimes less than 20 updates are enough) on my setup.
Attachment 138227, "Standalone HTML file for reproduction":
multi-rose.html
Version: 17.3