Bug 46533

Summary: Firefox WebGL crash with Nouveau 3D; user claims it came installed by default on OpenSuse 12.1
Product: Mesa Reporter: Benoit Jacob <bjacob>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: ahmadsamir3891
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Benoit Jacob 2012-02-23 11:25:17 UTC
Please see this Mozilla bug report:

https://bugzilla.mozilla.org/show_bug.cgi?id=729817

it has some Nouveau_dri crashes with call stacks, like:

https://crash-stats.mozilla.com/report/index/bp-ec695c14-0f53-49c6-a78c-ddaf22120221

The GL strings are:
  nouveau -- Gallium 0.4 on NV84 -- 2.1 Mesa 7.11

We don't blacklist Nouveau 3D because it's officially experimental, so we expect that its users are aware of that. But this user says that he gets this on a fresh OpenSuse 12.1 install without special attention paid to drivers. Do you know if OpenSuse started installing Nouveau 3D by default? If yes, we would need to blacklist at least that version of it. Should we then blacklist Nouveau 3D altogether, or do you think that the Mesa 8.0 version has made enough progress over 7.11 that it's worth blacklisting only versions <= 7.11 ?
Comment 1 Johannes Obermayr 2012-02-23 11:34:53 UTC
He should try packages from home:jobermayr (daily snapshots of libdrm, Mesa, ddx, kernel modules [drm-nouveau-kmp-{flavor}]).
Comment 2 Benoit Jacob 2012-02-23 11:41:58 UTC
Johannes, do you know if Nouveau 3D is installed automatically by OpenSuse 12.1, breaking my assumption that only people who know what they are doing, are using it?
Comment 3 Johannes Obermayr 2012-02-23 11:55:06 UTC
Since 12.1 it was integrated in Mesa main package and so installed by default (as in 11.3):
https://build.opensuse.org/package/rdiff?linkrev=base&package=Mesa&project=X11%3AXOrg&rev=165
Comment 4 Benoit Jacob 2012-02-23 12:07:30 UTC
Oops. What about the big warning on the Nouveau website?
http://nouveau.freedesktop.org/wiki/MesaDrivers
"You should be prepared to face issues, and be able to recover from them yourself. If the GPU hangs, you can either reboot or suspend"
Comment 5 Christopher James Halse Rogers 2012-02-23 16:16:58 UTC
It's also installed by default on Ubuntu (as of 11.10, IIRC), and Fedora.

The nouveau wiki page is (a) somewhat out of date, (b) moderately unloved, and (c) overly conservative.
Comment 6 Benoit Jacob 2012-02-23 16:22:18 UTC
(In reply to comment #5)
> It's also installed by default on Ubuntu (as of 11.10, IIRC), and Fedora.
> 
> The nouveau wiki page is (a) somewhat out of date, (b) moderately unloved, and
> (c) overly conservative.

Well the Mozilla bug I'm forwarding here shows that as of Mesa 7.11, the wiki page is accurate: creating a WebGL context is enough to get a crash. Maybe it's better in 8.0 though.
Comment 7 Benoit Jacob 2012-02-23 16:23:37 UTC
Specifically, the first MakeCurrent on a newly created GL context backed by a pixmap, crashes.
Comment 8 Christoph Bumiller 2012-02-26 05:35:18 UTC
I can't reproduce it, for me WebGL works fine with mesa-7.11 (git branch) and FireFox 10.0.1 (Gentoo ebuild).

Things like mere context creation are just supposed to work, the "experimental" excuse certainly doesn't count here.
Comment 9 Benoit Jacob 2012-02-26 08:17:13 UTC
(In reply to comment #8)
> I can't reproduce it, for me WebGL works fine with mesa-7.11 (git branch) and
> FireFox 10.0.1 (Gentoo ebuild).

The user reports that while certain WebGL pages work fine, github.com causes a crash. Can you try github?

(Not clear to me at all, what github might be doing with WebGL. The user on the Mozilla bug might be able to provide more precise STR).

> 
> Things like mere context creation are just supposed to work, the "experimental"
> excuse certainly doesn't count here.

"experimental" in "experimental-webgl" just means that there still exist browser bugs, not just driver bugs, causing conformance test failures. Once Firefox is able to pass 100% of the conformance tests on some setup, we'll enable the "webgl" context id.
Comment 10 Benoit Jacob 2012-03-09 05:42:30 UTC
It appears that the crash is fixed for users of Mesa 8.0. Firefox now only blacklists Nouveau when the Mesa version is older than 8.0.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.