WineHQ
Bug Tracking Database – Bug 8557

 Bugzilla

 

Last modified: 2008-03-19 19:37:04 CDT  

glxcmds.c:343: CreateContext: Assertion `mode != ((void*)0)' failed.

Bug 8557 - glxcmds.c:343: CreateContext: Assertion `mode != ((void*)0)' failed.
glxcmds.c:343: CreateContext: Assertion `mode != ((void*)0)' failed.
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: -unknown
0.9.37.
Other Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-06-01 03:50 CDT by James
Modified: 2008-03-19 19:37 CDT (History)
3 users (show)

See Also:
Regression SHA1:
Fixed by SHA1:
Distribution: ---
Staged patchset:


Attachments
tracelog (10.82 KB, text/plain)
2007-07-18 19:50 CDT, Daniel Reichelt
Details
relates to comment #10 (5.71 KB, application/octet-stream)
2007-12-01 09:14 CST, Daniel Reichelt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James 2007-06-01 03:50:16 CDT
Experiencing this error on Debian Etch running vnc4server and various window
managers (tried gnome, kde and fluxbox). Running the standard terminal without
invoking a window manager in ~.vnc/xstartup causes wine to run fine. However
after attempting to run wine in a window manager, receiving the error in the
attached, then reverting to the default xstartup causes wine to crash with the
same error.
Comment 1 Vitaliy Margolen 2007-06-01 07:30:55 CDT
Can you explain again what are you trying to do? You running vnc4server where?
What different window managers has anything to do with this?

Also please attach text file with complete terminal output, including command
you used to start Wine (as attachment, not link to external screen grab).
Comment 2 Daniel Reichelt 2007-07-18 19:50:46 CDT
Created attachment 7161 [details]
tracelog

Hi
same problem here.
System: debian etch, AMD Duron 1000 CPU, 4MB graphics adapter
tried to start winecfg from a vncserver with only twm running (~/.wine
non-existant yet)

As soon as I hit enter, I get the "Wine Launch Window", then the trace runs by
and then I get "Wine exited with a successful status". I'd be happy to provide
you with more information.

Just in case: I've had a similar problem earlier. First I tried to re-compile
wine w/o OpenGL support. While that ran fine, I wasn't happy mixing my debian
with non-dpkg installations...so I played around a little and found out that
the error back then only occured when the VNC client was set to 24bit. At 256
or even less colors, everything went fine out-of-the-box. A simple entry in
user.reg helped:

[Software\\Wine\\X11 Driver]
"DesktopDoubleBuffered"="N"

Sadly it doesn't now...

cya

Daniel
Comment 3 Roderick Colenbrander 2007-07-27 04:43:12 CDT
Ah someone who is suffering from wine not supporting single buffering anymore.

Near line 437 in dlls/winex11.drv/x11drv_main.c you'll see:
    /* If OpenGL is available, change the default visual, etc as necessary */
    if ((desktop_vi = X11DRV_setup_opengl_visual( display )))

try to skip that line by changing it to lets say:
    /* If OpenGL is available, change the default visual, etc as necessary */
    if (0 && (desktop_vi = X11DRV_setup_opengl_visual( display )))
Comment 4 Daniel Reichelt 2007-07-27 16:59:33 CDT
Hi Rod,

great, your "patch" worked!

Yesterday I tried compiling with ./configue --without-opengl but clearly your
solution is much less of an impairment. Many thanks!

cu
Daniel
Comment 5 Dexter 2007-08-09 19:10:59 CDT
how do i patch a rpm version of wine? i installed mine with "apt-get install
wine" and i have that problem too how can i fix it? i'm using Debian 3.1.
Comment 6 Lei Zhang 2007-08-09 20:16:23 CDT
patches are for the wine source code, not for binary builds.
Comment 7 Daniel Reichelt 2007-09-21 15:38:35 CDT
Hi again,

will this problem be addressed by the dev team or am I to workaround everytime a new release is made by myself? Not pressing, just wondering.

Cheers
Daniel
Comment 8 Dan Kegel 2007-09-21 17:15:26 CDT
Confirming, since Roderick came up with a working fix for it.

James, you could submit the patch yourself to wine-patches,
I suppose.  See http://kegel.com/academy/opensource.html#patches.making
and http://winehq.org/site/sending_patches
Comment 9 James Hawkins 2007-09-21 20:56:37 CDT
(In reply to comment #8)
> Confirming, since Roderick came up with a working fix for it.
> 
> James, you could submit the patch yourself to wine-patches,
> I suppose.  See http://kegel.com/academy/opensource.html#patches.making
> and http://winehq.org/site/sending_patches
> 

Dan, I think the fix is a hack that won't be committed.
Comment 10 Daniel Reichelt 2007-12-01 09:05:33 CST
since the debian release of wine 0.45, the hack mentioned by Rod doesn't work anymore. I can launch e.g. winefile allright, however I get a messed up display: every bit of text gets displayed in marlett.ttf instead of the standard SSerif font. But when I manually move marlett.ttf out of its default location, it works again (renaming doesn't suffice, obviously the first found truetype font is used). Any ideas appreciated! thx

Daniel
Comment 11 Daniel Reichelt 2007-12-01 09:12:01 CST
PS: the actions in comment #10 took place not under vnc but under a remote X-Server. When I try the same thins under vncserver, this happens:
- with marlett.ttf existing, I just get the messed up display.
- with marlett.ttf gone, the attached tracelog2 applies.
cu
Comment 12 Daniel Reichelt 2007-12-01 09:14:40 CST
Created attachment 9431 [details]
relates to comment #10
Comment 13 Daniel Reichelt 2007-12-01 09:18:19 CST
one quirks in ##10 and 11: the version is not 0.45 but 0.44 - sorry for the confusion.
Comment 14 Roderick Colenbrander 2008-02-27 12:26:32 CST
Using a recent git version (monday 25/2/2008 or newer) this problem should not occur anymore in 2d programs. Before OpenGL was initialised at startup due to some limitations on pixel formats in winex11.drv (we used the same pixel format for the window and GL). This limitation has been lifted and due to that we don't have to initialise opengl at startup anymore. Now you should only get the issue if you launch e.g. an opengl program.

The crash itself is a GLX bug either in Mesa or VNC/Xephyr/Xnest.
Comment 15 Alexandre Julliard 2008-03-07 11:28:04 CST
Closing bugs fixed in 0.9.57.
Comment 16 Daniel Reichelt 2008-03-19 19:37:04 CDT
works fine now, thanks!


Hosted By CodeWeavers