MASTER: -nvidia driver does not support XRANDR 1.2

Bug #567963 reported by Eemil Lagerspetz
96
This bug affects 16 people
Affects Status Importance Assigned to Milestone
openchrome
Fix Released
Unknown
nvidia-graphics-drivers (Ubuntu)
Fix Released
Wishlist
Unassigned
Precise
Won't Fix
Wishlist
Unassigned
Quantal
Fix Released
Wishlist
Unassigned

Bug Description

[Problem]
The -nvidia video driver does not support the XRANDR protocol version 1.2+ that most other video drivers support. This can lead to crashes when applications assume the support is there and make XRANDR calls to do things like change or restore the resolution, screen layout, rotation, etc.

[Workaround]
Applications which trigger this bug should be modified to check for XRANDR driver support before making these calls.

[Original Report]
I downloaded the free version of Command & Conquer: Tiberian Sun (2.03) +
Firestorm. Both Firestorm and the Tiberian Sun exhibit this behaviour. After
getting to the game main menu, I click Skirmish and start a Skirmish game. If I
then abort the game and exit from the main menu, my X crashes and I am forced
to re-login to my system. This is on Ubuntu x86_64.
See attached Xorg.0.log.old

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x28) [0x4a3248]
1: /usr/bin/X (0x400000+0x655ad) [0x4655ad]
2: /lib/libpthread.so.0 (0x7fe423f6b000+0xf8f0) [0x7fe423f7a8f0]
3: /usr/bin/X (0x400000+0x13d23e) [0x53d23e]
4: /usr/bin/X (0x400000+0x13d5f2) [0x53d5f2]
5: /usr/bin/X (0x400000+0x81abf) [0x481abf]
6: /usr/bin/X (0x400000+0x81c95) [0x481c95]
7: /usr/bin/X (RRCrtcSet+0x162) [0x4c18c2]
8: /usr/bin/X (ProcRRSetScreenConfig+0x508) [0x4c72e8]
9: /usr/bin/X (0x400000+0x30c3c) [0x430c3c]
10: /usr/bin/X (0x400000+0x261aa) [0x4261aa]
11: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7fe422c63c4d]
12: /usr/bin/X (0x400000+0x25d59) [0x425d59]
Segmentation fault at address (nil)

Caught signal 11 (Segmentation fault). Server aborting

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xserver-xorg 1:7.5+5ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Apr 21 11:43:10 2010
MachineType: System manufacturer System Product Name
ProcCmdLine: root=UUID=48c3f35c-462e-4f34-9238-54826fce5c27 ro vdso32=0 quiet hpet=force
SourcePackage: xorg
dmi.bios.date: 04/07/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2102
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5Q
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2102:bd04/07/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5Q:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
system:
 distro: Ubuntu
 codename: lucid
 architecture: x86_64
 kernel: 2.6.32-21-generic

Revision history for this message
Eemil Lagerspetz (eemil-lagerspetz) wrote :
Bryce Harrington (bryce)
affects: xorg (Ubuntu) → xorg-server (Ubuntu)
Bryce Harrington (bryce)
tags: added: crash
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
Eemil Lagerspetz (eemil-lagerspetz) wrote :

As a workaround, If I set wine to use an emulated desktop instead of real fullscreen mode, this crash does not occur.
It also does not seem to occur even in fullscreen mode on my eee pc 901 Ubuntu Lucid i386 with intel 945GM (i915) graphics.

Revision history for this message
Oliver Joos (oliver-joos) wrote :

I confirm, this bug also happens on Ubuntu Karmic 9.10 (with wine-1.0.1). I have a HP nx8220 with ATI X600 graphic card and have no other problems with X. Compiz and Kernel-Mode-Setting are disabled on my system.

$ lspci
01:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon Mobility X600]
...

Revision history for this message
Alberto Jovito (thedemon007) wrote :

For those with openchrome driver this patch solves

Changed in openchrome:
status: Unknown → New
Bryce Harrington (bryce)
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote :

From the backtrace it appears the game is trying to use the XRANDR api to reset the screen, but this is not supported by the -nvidia video driver (yet).

@Oliver, you didn't specify whether you're using -fglrx or -ati, however I *think* karmic's -fglrx did not have randr support, so could be it's the same issue. Regardless, you should re-test against natty alpha-3 and file a *new* bug (via the command 'ubuntu-bug xorg') if the crash still occurs (attaching a full backtrace would be a huge help if you know how to do that.)

@Alberto, hey thanks for posting a patch! I took a look and reviewed the source code, and I *think* that may just be a workaround for that particular case. However it's not clear what this rop parameter is used for. In any case, your patch definitely provides a strong hint for the developers. I don't know whether -openchrome on whatever Ubuntu version you're using supports this XRANDR api call, but I would suggest doing the same as Oliver - test natty and file a new bug (via the command 'ubuntu-bug xserver-xorg-video-openchrome') if it still occurs, and post a full backtrace if you know how.

From this point on, this bug report will focus only on the -nvidia issue. I'll update the title.

Changed in xorg-server (Ubuntu):
status: Confirmed → New
summary: - X crashes when exiting some Wine applications
+ [Needs XRANDR Support] -nvidia driver crashes X when exiting some Wine
+ applications
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
affects: xorg-server (Ubuntu) → nvidia-graphics-drivers (Ubuntu)
tags: added: patch
Changed in openchrome:
status: New → Fix Released
Bryce Harrington (bryce)
Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Wishlist
summary: - [Needs XRANDR Support] -nvidia driver crashes X when exiting some Wine
- applications
+ -nvidia driver does not support XRANDR 1.2
tags: added: maverick natty oneiric precise
Bryce Harrington (bryce)
summary: - -nvidia driver does not support XRANDR 1.2
+ MASTER: -nvidia driver does not support XRANDR 1.2
Revision history for this message
Albert Astals Cid (aacid) wrote :

Isn't this fixed in quantal by the 304.43 drivers?

Revision history for this message
Albert Astals Cid (aacid) wrote :

I'm setting this as fix released in Quantal as it contains the 304.43 drivers by nvidia that support XRandr1.2. Please reopen in case it still does not work with Quantal

Changed in nvidia-graphics-drivers (Ubuntu Quantal):
status: Triaged → Fix Released
Revision history for this message
Fred (eldmannen+launchpad) wrote :

Hopefully we will also see XRandR 1.3 support and 1.4 support.
Wouldn't count on it, but I hope so.

Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in nvidia-graphics-drivers (Ubuntu Precise):
status: Triaged → Won't Fix
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.