Bug 58210 - vmwgfx freezes system when starting Xorg
Summary: vmwgfx freezes system when starting Xorg
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: 9.0
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 20:43 UTC by John Kåre Alsaker
Modified: 2013-03-06 03:51 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description John Kåre Alsaker 2012-12-12 20:43:47 UTC
Enabling 3D acceleration in VMware Workstation 9.0.1 causes the system to freeze after starting Xorg. With 3D acceleration disabled things work fine using llvmpipe.

This started happening after Mesa 8.0 (9.0 and git master). It does work for Arch Linux's mesa-9.0-1 packages, but not for mesa-9.0.1-1 or any of the manual builds I made.

Relevant software versions:
libdrm : 2.4.40-1
xorg-server : 1.13.0.902-2
linux : 3.6.9-1
xf86-video-vmware : 12.0.2-2
Comment 1 John Kåre Alsaker 2013-03-03 00:16:16 UTC
Removing assert(svga_texture(texture)->key.cachable == 0); at svga_resource_texture.c:207 seems to fix this...
Comment 2 Jose Fonseca 2013-03-03 14:49:12 UTC
(In reply to comment #1)
> Removing assert(svga_texture(texture)->key.cachable == 0); at
> svga_resource_texture.c:207 seems to fix this...

The assertion should only affect debug builds. Does Xorg only crash on debug builds?

The fact the assertion fails means we're trying to share a resource which wasn't created shareable by the state tracker...

We set svga_texture(texture)->key.cachable = 0 on the next line, so things should still sort of work, bu I think this is the symptom of some other issue with resource creation.
Comment 3 John Kåre Alsaker 2013-03-06 03:06:14 UTC
It works with non-debug builds too.

It could be that this is fixed in 9.1. I tried building the 9.0 branch, but I think I hit some 2D fallback mode in GDM and couldn't trigger the bug.

Building Mesa 9.1 for Fedora 18 would be a way to test that at least.
Comment 4 Zack Rusin 2013-03-06 03:28:49 UTC
Is this Fedora or are you using gnome-shell or anything clutter based? If so then, we know about this and it's already been fixed in master and backported to stable branches: https://bugzilla.redhat.com/show_bug.cgi?id=903413
Comment 5 John Kåre Alsaker 2013-03-06 03:45:05 UTC
I've been triggering it with GDM and Cinnamon. Closing this then.
Comment 6 Zack Rusin 2013-03-06 03:51:25 UTC
I haven't tested Cinnamon, but iirc it was using Clutter and since Clutter uses GLX_INTEL_swap_event it had to be broken (all GLX_INTEL_swap_event using apps were freezing waiting for the sync event that would never come). So it should be fixed like everything else Clutter based but if you'll notice any problems, reopen and we'll take a closer look.


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.