Read pixels broken in Chrome/Chromium on 18.04 using the NVIDIA driver

Bug #1764648 reported by dmiller309
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

2 ways to reproduce:
1) Go to https://www.khronos.org/registry/webgl/sdk/tests/webgl-conformance-tests.html and run the all/conformance/reading tests.
2) Go to photoeditor.polarr.co. Select the Pro workspace. Skip the tutorial. Press F to open the filters panel (or click the 3 circle icon on the left). All of the filter previews will be garbled or black for any image that you edit.

I've tried this on 2 computers, one with a 980, and one with a 1070. They both fail on Ubuntu 18.04 but work correctly on 16.04 and 17.10. Firefox works correctly. I attempted to use the Noveau driver, but I got a max resolution of 640p and WebGL didn't work at all so far as I could tell.

I've tried running my Polarr photo editor (an Electron app) on 18.04, and it also doesn't work correctly any more.

This is what I get in the terminal for chromium-browser when I run the WebGL conformance tests for reading pixels:
amiller@amiller-All-Series:~$ chromium-browser
[4775:4775:0417/000030.985800:ERROR:gles2_cmd_decoder.cc(12024)] [.Offscreen-For-WebGL-0x55577c136f80]GL ERROR :GL_INVALID_OPERATION : glReadPixels: format and type incompatible with the current read framebuffer
[4775:4775:0417/000030.986559:ERROR:gles2_cmd_decoder.cc(12024)] [.Offscreen-For-WebGL-0x55577c136f80]GL ERROR :GL_INVALID_OPERATION : glReadPixels: format and type incompatible with the current read framebuffer
[4775:4775:0417/000030.987074:ERROR:gles2_cmd_decoder.cc(12024)] [.Offscreen-For-WebGL-0x55577c136f80]GL ERROR :GL_INVALID_OPERATION : glReadPixels: format and type incompatible with the current read framebuffer
[4775:4775:0417/000030.987630:ERROR:gles2_cmd_decoder.cc(12024)] [.Offscreen-For-WebGL-0x55577c136f80]GL ERROR :GL_INVALID_OPERATION : glReadPixels: format and type incompatible with the current read framebuffer

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: chromium-browser 65.0.3325.181-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
NonfreeKernelModules: wl nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
Date: Tue Apr 17 00:06:03 2018
Desktop-Session:
 'ubuntu'
 '/etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg'
 '/usr/share/ubuntu:/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
DetectedPlugins:

Env:
 'None'
 'None'
ExecutablePath: /usr/lib/chromium-browser/chromium-browser
InstallationDate: Installed on 2018-04-10 (6 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
InstalledPlugins:
 /usr/lib/mozilla/plugins:
   => libgnome-shell-browser-plugin.so
         (size: 18856 bytes, mtime: Sat Apr 7 06:58:00 2018)
Load-Avg-1min: 0.29
Load-Processes-Running-Percent: 0.1%
MachineType: ASUS All Series
ProcEnviron:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-15-generic root=UUID=a9752952-f843-46f2-9206-e16c858d6d33 ro quiet splash vt.handoff=1
SourcePackage: chromium-browser
UpgradeStatus: Upgraded to bionic on 2018-04-17 (0 days ago)
dmi.bios.date: 12/10/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1203
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: X99-DELUXE
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1203:bd12/10/2014:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnX99-DELUXE:rvrRev1.xx:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: ASUS MB
dmi.product.name: All Series
dmi.product.version: System Version
dmi.sys.vendor: ASUS
modified.conffile..etc.default.chromium-browser: [deleted]

Revision history for this message
dmiller309 (dmiller309) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

This sounds like it could be an issue with recent versions of the NVIDIA proprietary driver (that would explain why 16.04 and 17.10 don't exhibit the issue).

Unfortunately I don't have NVIDIA hardware, so I can't reproduce the issue (the Khronos WebGL conformance tests for readpixels pass with an Intel GPU).

I couldn't find an upstream bug report that matches this issue, would you mind filing one at https://crbug.com/ and linking it here?

Revision history for this message
dmiller309 (dmiller309) wrote :

I filed an upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=833984

I saw the issue a couple weeks ago but waited to report it because Ubuntu 18.04 is still in beta. 18.04 is scheduled for release next week though, so it would be ideal if the issue was resolved before then.

Revision history for this message
Olivier Tilloy (osomon) wrote :

According to the upstream bug report this is fixed in chromium 66, which is currently in beta and will be released to the stable channel this week.

Changed in chromium-browser (Ubuntu):
status: New → Fix Committed
Changed in chromium-browser (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.