http://bugs.winehq.org/show_bug.cgi?id=10234
Summary: opengl problems (commit 00633e37bcc8da1032f34ea2d87814739de07db4) Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: romosan@sycorax.lbl.gov
Created an attachment (id=8855) --> (http://bugs.winehq.org/attachment.cgi?id=8855) bactrace for tracked using 10/29/07 git wine
somewhere between release 0.9.46 and 0.9.47 of wine i started having problems with applications that use opengl. using git-bisect i found that commit 00633e37bcc8da1032f34ea2d87814739de07db4 (winex11: Use an offscreen redirected window for child OpenGL rendering.) was the first bad commit. this happens both on my thinkpad with an radeon r250 card using the open source drivers and on my desktop using an nvdia card with the proprietary nvidia drivers.
in particular i am trying to run tracked part of racer 0.5.0 final (http://racer.nl/dl_win32.htm).
i am attaching the back traces for the various cases
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #1 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-29 18:03:57 --- Created an attachment (id=8856) --> (http://bugs.winehq.org/attachment.cgi?id=8856) bactrace using wine git version 00633e37bcc8da1032f34ea2d87814739de07db4
http://bugs.winehq.org/show_bug.cgi?id=10234
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8855|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=10234
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8856|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=10234
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chris.kcat@gmail.com URL| |http://racer.nl/dl_win32.htm Keywords| |download, regression
--- Comment #2 from Juan Lang juan_lang@yahoo.com 2007-10-29 18:33:12 --- For reference, that commit is here: http://www.winehq.org/pipermail/wine-cvs/2007-October/036731.html
I'm unable to reproduce the crash on my desktop with an Nvidia card and Nvidia proprietary drivers. What steps do you take to produce the crash?
Adjusting keywords and cc'ing author of patch.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #3 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-29 19:10:52 --- (In reply to comment #2)
For reference, that commit is here: http://www.winehq.org/pipermail/wine-cvs/2007-October/036731.html
I'm unable to reproduce the crash on my desktop with an Nvidia card and Nvidia proprietary drivers. What steps do you take to produce the crash?
Adjusting keywords and cc'ing author of patch.
run tracked, press i (import track) and when it prompts for filter expression type * (or just hit return). if you said * the program will start drawing the track objects and then crash with one of those backtraces.
http://bugs.winehq.org/show_bug.cgi?id=10234
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from Juan Lang juan_lang@yahoo.com 2007-10-29 19:18:54 --- Thanks. Confirming, I can reproduce it too.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #5 from Chris chris.kcat@gmail.com 2007-10-30 03:17:31 --- I've followed those steps, and I can't reproduce it here. Tried with both virtual desktop, and managed. nVidia Geforce 8600 with the latest drivers.
It appears, though, that it's trying to call glFlush when there isn't a valid context. Both traces have..
** Warning: Pixel format (1) is of unknown type; may be slow (software rendering)!
Can you paste a +wgl,+opengl log?
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #6 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-30 10:38:35 --- Created an attachment (id=8871) --> (http://bugs.winehq.org/attachment.cgi?id=8871) log when running with WINEDEBUG=+wgl,+opengl
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #7 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-30 10:55:04 --- (In reply to comment #5)
I've followed those steps, and I can't reproduce it here. Tried with both virtual desktop, and managed. nVidia Geforce 8600 with the latest drivers.
which version of xorg are you using? i am using 7.3.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #8 from Chris chris.kcat@gmail.com 2007-10-30 11:14:24 --- I'm using Xorg 7.2. I notice in the log you're using 16-bit color in X, and the selected pixel format is marked as slow. Can you try 24-bit color?
The log seems to indicate it's setting a NULL context right before calling glFlush, which causes the crash (you can't make GL calls like that without a context set). I can't see anything in the log which would cause the program to do that, nor can I see why that commit would change it.
The only thing I can think of is that the driver's more forgiving when there isn't a context, but that doesn't explain why it works for me.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #9 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-30 11:27:55 --- (In reply to comment #8)
I'm using Xorg 7.2. I notice in the log you're using 16-bit color in X, and the selected pixel format is marked as slow. Can you try 24-bit color?
i run 24-bit color on my desktop and i get the same crash. i have this suspicion the crash is related to using xorg 7.3 (i first noticed it happening around the time i upgraded xorg to 7.3). i'll try to find a computer still running xorg 7.2 and see if i can reproduce the crash.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #10 from Arunas APranckevicius@gmail.com 2007-10-30 14:14:53 --- Hello,
Try to download native linux version of game from http://www.racer.nl/download.htm and see if same problems persist. Both versions crash in my notebook with ATI IGP 320m video card.
It may be driver issue as well.
Cheers, Arunas
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #11 from Arunas APranckevicius@gmail.com 2007-10-30 14:50:41 --- Hi,
Forgot to add, source code is here: http://www.racer.nl/download/v050/rr050src.tgz
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #12 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-30 16:30:19 --- (In reply to comment #10)
Hello,
Try to download native linux version of game from http://www.racer.nl/download.htm and see if same problems persist.
i don't think the linux version of tracked ever worked. this is why i always ran it under wine. on the other hand the windows version of tracked used to work under wine but not any more.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #13 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-30 16:54:40 --- (In reply to comment #9)
(In reply to comment #8)
I'm using Xorg 7.2. I notice in the log you're using 16-bit color in X, and the selected pixel format is marked as slow. Can you try 24-bit color?
i run 24-bit color on my desktop and i get the same crash. i have this suspicion the crash is related to using xorg 7.3 (i first noticed it happening around the time i upgraded xorg to 7.3). i'll try to find a computer still running xorg 7.2 and see if i can reproduce the crash.
there goes my theory. i ran tracked under the latest git wine on a computer with xorg 7.2 and it still crashed. i saved the log if anybody is interested but as far as i can tell it still crashes the same way. this is bizarre.
http://bugs.winehq.org/show_bug.cgi?id=10234
--- Comment #14 from Alex Romosan romosan@sycorax.lbl.gov 2007-10-31 13:26:24 --- (In reply to comment #8)
The log seems to indicate it's setting a NULL context right before calling glFlush, which causes the crash (you can't make GL calls like that without a context set). I can't see anything in the log which would cause the program to do that, nor can I see why that commit would change it.
with this patch applied:
--- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -2053,7 +2053,8 @@ static void WINAPI X11DRV_wglFlush(void) sync_context(ctx); pglFlush(); wine_tsx11_unlock(); - ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL ); + if (ctx) + ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL ); }
tracked runs fine. you seem to believe the context should be set but in this case it's not.
http://bugs.winehq.org/show_bug.cgi?id=10234
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #15 from Roderick Colenbrander thunderbird2k@gmx.net 2008-03-02 06:25:15 --- The program seems to work fine on my Nvidia card. Note a lot has changed in GL over the last couple of months. Second if the child window patch caused issues, most of those are not really fixable (without using hacks). The problem is that not all drivers support the functionality we need properly yet.
http://bugs.winehq.org/show_bug.cgi?id=10234
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2008-03-07 11:28:30 --- Closing bugs fixed in 0.9.57.
http://bugs.winehq.org/show_bug.cgi?id=10234
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified