[Webkit-unassigned] [Bug 176852] New: [GTK] WebKitGtk does not work with NVIDIA Optimus hybrid systems with Bumblebee and Accelerated Compositing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 13 10:17:55 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=176852

            Bug ID: 176852
           Summary: [GTK] WebKitGtk does not work with NVIDIA Optimus
                    hybrid systems with Bumblebee and Accelerated
                    Compositing
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: svillar at igalia.com
                CC: bugs-noreply at webkitgtk.org

NVIDIA Optimus is a technology that allows an Intel integrated GPU and discrete NVIDIA GPU to be built into and accessed by a laptop. See https://wiki.archlinux.org/index.php/NVIDIA_Optimus

This is a typical setup in laptops. The discrete card, the NVIDIA, is not connected to any video output (LCD screen or external monitor). It's only used to render and then it passes the result to the integrated card (the Intel) which is the one that sends the result to the screen.

There are some projects to make NVIDIA Optimus work in Linux, one of them is Bumblebee (see https://wiki.archlinux.org/index.php/Bumblebee). Whenever I want an application to use the NVIDIA card I prepend "primusrun" to the actual command, for example "primusrun glxinfo". So I decided to give it a try with WebKitGtk:

$ WEB_PREFIX_CMD_PREFIX="/usr/bin/primusrun" Tools/Scripts/run-minibrowser --gtk

It apparently works, it renders the webkitgtk web page fine. Then I go to google.com and search something. Instead of getting the results page I get a gray background. My first thought was that the WebProcess was killed. I was wrong it was still there. Then I started to move the mouse pointer over the gray area and voilà the cursor was changing as if I were hovering a link, and in the bottom I could see the URL of the links I was hovering. So the WebProcess worked fine. 

The problem is likely that the UIProcess is using something not compatible with Bumblebee (X redirected windows maybe?). I also tried disabling AC by also prepending WEBKIT_DISABLE_COMPOSITING_MODE=1 and then it worked fine (I know that it was using the NVIDIA card because I was getting far more FPS in various WebGL demos).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170913/f1b58d99/attachment.html>


More information about the webkit-unassigned mailing list