http://bugs.winehq.org/show_bug.cgi?id=11796
Summary: Wedged X servers sometimes cause crash in has_opengl Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
There's been a number of reports of crashes on startup like this:
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0xb7d5acb3). =>1 0xb7d5acb3 strlen+0x33() in libc.so.6 (0x0033ee98) 2 0x7eadc7c2 has_opengl+0x7c2() [dlls/winex11.drv/opengl.c:331] in winex11 (0x0033ef18) 3 0x7eadd0e0 X11DRV_setup_opengl_visual+0x130(display=0x7c038790) [dlls/winex11.drv/opengl.c:3384] in winex11 (0x0033eff8)
Here are some of the reports, with notes:
http://ubuntuforums.org/archive/index.php/t-679911.html wine-0.9.54, found that restarting X helped http://forums.gentoo.org/viewtopic-p-4724099.html wine-0.9.53, ATI 9800, ati driver 8.443.1-r1 http://ge.ubuntuforums.com/showthread.php?t=679704 wine-0.9.46, VIA VT8623 [Apollo CLE266] integrated CastleRock http://www.archivum.info/comp.emulators.ms-windows.wine/2007-07/msg00041.htm... wine-0.9.40, VIA Samuel 2 CPU https://lists.ubuntu.com/archives/ubuntu-br/2007-November/030190.html Gutsy http://forum.eve-ru.com/lofiversion/index.php/t4768-500.html ?
The crash seems to happen on the call to pglXQueryVersion. I'll attach a possible patch to catch the crash and report that opengl is broken.
http://bugs.winehq.org/show_bug.cgi?id=11796
--- Comment #1 from Dan Kegel dank@kegel.com 2008-03-01 09:15:27 --- Created an attachment (id=11059) --> (http://bugs.winehq.org/attachment.cgi?id=11059) Draft patch to catch the exception and report failure
http://bugs.winehq.org/show_bug.cgi?id=11796
--- Comment #2 from Roderick Colenbrander thunderbird2k@gmx.net 2008-03-01 09:39:40 --- As of latest git opengl initialisation isn't done by default anymore. It is only done when the use of OpenGL or Direct3D is requested. Nevertheless the same code is used.
I have seen issues like this before and it are Mesa / driver issues. Adding an exception for this case is very ugly. A few lines higher a GLX context is created and apparently that passes, so when we reach this code GLX must be around.
http://bugs.winehq.org/show_bug.cgi?id=11796
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2008-03-01 14:02:55 --- I ran into this crash annoyingly about 8000 times. I thought it was a bug with my drivers. After logging out and logging in again, the crash was gone again, to reappear again after about half an hour. Latest weeks this crash has changed into another crash. If you want I can attach it here.
http://bugs.winehq.org/show_bug.cgi?id=11796
--- Comment #4 from Dan Kegel dank@kegel.com 2008-03-01 15:17:28 --- I'm more interested in whether my patch makes wine happier in that situation. Can you apply it?
Sure, it may be ugly, but the driver bug is kind of disabling for us, and I'd rather detect it than get screwed by it.
http://bugs.winehq.org/show_bug.cgi?id=11796
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED
--- Comment #5 from Austin English austinenglish@gmail.com 2008-10-23 15:54:12 --- Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=11796
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com 2008-10-23 15:55:21 --- Closing abandoned.
http://bugs.winehq.org/show_bug.cgi?id=11796
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified