[PM800] When running applications in full screen mode, Wine crashes X when quitting application

Bug #388456 reported by thewk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openchrome
New
Undecided
Unassigned
xserver-xorg-video-openchrome (Ubuntu)
Invalid
Low
Bartosz Kosiorek

Bug Description

Binary package hint: wine

When running applications in full screen, Wine crashes on application exit. Best example of this is Doom95, it seems that Wine is unable to switch between display resolutions, I run Doom 95 using 640 x 480 resolution and my desktop is 1024 x 768. When quitting Doom, window system crashes and I have to log in again. When I select "emulate desktop" from Wine settings, the game works perfectly but in 640 x 480 sized window instead of full screen.

Display adapter is Via Unichrome Pro, OS is Ubuntu 9.10, same thing happens in 9.04. I have not installed any other driver after Ubuntu installation and OpenChrome driver is in use. Glxgears works. Wine version is 1.0.1.

thewk (theewk)
description: updated
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please attach your Xorg.0.log file.
It is located at /var/log/Xorg.0.log

Add 'ls -vvnn' output to this bug

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Sorry.
Please attach the output of `lspci -vvnn`.

Revision history for this message
thewk (theewk) wrote :
Revision history for this message
thewk (theewk) wrote :

Here is Xorg.0.log.

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Change openchrome driver to VESA int your xorg.conf and try again.
Does it help?

Revision history for this message
thewk (theewk) wrote :

How can I change the driver? I now have switched from Ubuntu 9.10 to Xubuntu 9.04, but the problem still persists.

Revision history for this message
thewk (theewk) wrote :

OK, I have now tested Doom95 with VESA -driver and crashing does not occur with it. I tested launching, playing and quitting the game 5 times and it didn't crash at all.

thewk (theewk)
affects: wine (Ubuntu) → xserver-xorg-video-openchrome (Ubuntu)
description: updated
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please build/install the latest openchrome driver and enable debug mode.
The detail instruction is available at:
https://help.ubuntu.com/community/OpenChrome

Then attach your Xorg.0.log file.
It is located at /var/log/Xorg.0.log

Changed in xserver-xorg-video-openchrome (Ubuntu):
importance: Undecided → Low
summary: - When running applications in full screen mode, Wine crashes X when
- quitting application
+ [PM800] When running applications in full screen mode, Wine crashes X
+ when quitting application
Revision history for this message
thewk (theewk) wrote :

I hope I did everything correctly, atleast no error messages were shown :)

I tried running the game 3 times, first 2 were succesful, no problems in quitting. First log is taken after second succesful quitting.

At third time X server crashed, second log is saved after I logged in again.

Revision history for this message
thewk (theewk) wrote :
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please check if this patch helps you:

Changed in xserver-xorg-video-openchrome (Ubuntu):
assignee: nobody → Bartosz (gang65)
status: New → Confirmed
Revision history for this message
thewk (theewk) wrote :

How can I install this patch? I tried with instructions here:

https://help.ubuntu.com/community/OpenChrome

but it complains about something...?

"fsc@fsc-laptop:~/Työpöytä$ patch -p0 < modesetting.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/via_mode.c
|===================================================================
|--- src/via_mode.c (wersja 753)
|+++ src/via_mode.c (kopia robocza)
--------------------------

Changed in openchrome:
status: Unknown → New
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please replace your via_mode.c file, by attached file.

Attached file have applied patch modesetting.patch.

Then build and install (https://help.ubuntu.com/community/OpenChrome)

Revision history for this message
thewk (theewk) wrote :

I did replace the file and follow the instructions.

Doom95 is much more stable now than before, I tested running the game 5 times, it worked perfectly on first 4 and crashed only when quitting the game 5th time. It seems that if I play little longer Wine is able to quit without problems. However, it works better now.

Small sidenote, in instructions when it told me log out by pressing CTRL + ALT + F1 and try to start new X screen, my display went garble after I pressed the key combination. I had to restart my machine so I guess something's not right?

I tested playing GTA with Wine and it works perfectly, no crashing when quitting. I don't know anymore whether this Doom -thing is UniChrome issue, Wine issue or Doom95 issue.

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

So the problem wasn't solved.

 Please take the photo of screen after pressing CTRL + ALT + F1 and starting new X screen.

Revision history for this message
thewk (theewk) wrote :
Changed in openchrome:
status: New → Fix Released
Changed in openchrome:
importance: Unknown → Undecided
status: Fix Released → New
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Try change:

  UseLegacyModeSwitch to FALSE

in via_driver.c file:

        case VIA_PM800:
            pVia->VideoEngine = VIDEO_ENGINE_CME;
            pVia->UseLegacyModeSwitch? = FALSE;
            break;

then compile and install.

Attach Xorg.0.log file

Bryce Harrington (bryce)
tags: added: karmic
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Please build/install the latest openchrome driver and enable debug mode.
The detail build instruction for Ubuntu/Debian is available at:
https://help.ubuntu.com/community/OpenChrome

Attach your /var/log/Xorg.0.log file.

Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
Oliver Joos (oliver-joos) wrote :

Even though the comments above are about OpenChrome, this bug could be a special case of bug #567963.

So I'd like to mark this bug as a duplicate of #567963. Please comment if you don't agree!

Bryce Harrington (bryce)
tags: added: jaunty
Revision history for this message
Alberto Jovito (thedemon007) wrote :

Hello wine problem already have solved you thanks to a patch I found here:

http://www.openchrome.org/trac/ticket/400#comment:6

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

How do I apply a patch to the openChrome driver Go into openChrome source code directory and type:

patch -p0 < patch-file-name-here

Changed in xserver-xorg-video-openchrome (Ubuntu):
status: Confirmed → Invalid
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.