http://bugs.winehq.org/show_bug.cgi?id=11436
Summary: Pepakura viewer: err:wgl:X11DRV_wglShareLists Could not share display lists, context already created ! Product: Wine Version: CVS/GIT Platform: PC URL: http://www.tamasoft.co.jp/pepakura- en/download/viewer.html OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: x11-driver AssignedTo: wine-bugs@winehq.org ReportedBy: fabio.capela@yahoo.com
Created an attachment (id=10567) --> (http://bugs.winehq.org/attachment.cgi?id=10567) Trace until the error.
I'm trying to run the Pepakura viewer, but it's giving an strange error on startup (error: no error) and is having some graphical glitches, as well as being extremely slow.
The grafical glitches are a flickering 3D model and no textures on the 2D model.
The bug seems to be the same one affecting Pepakura Designer 2.
The console shows an error with X11DRV_wglShareLists (err:wgl:X11DRV_wglShareLists Could not share display lists, context already created !). I've attached a wgl trace up to the moment the error dialog appears. Seems like the workaround to handle the different way to share OpenGL contexts in Windows and Linux can't handle this specific software.
The software is freeware and can be downloaded from http://www.tamasoft.co.jp/pepakura-en/download/viewer.html
http://bugs.winehq.org/show_bug.cgi?id=11436
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|x11-driver |opengl
--- Comment #1 from Roderick Colenbrander thunderbird2k@gmx.net 2008-02-01 14:33:14 --- I need to check out this app when I have time but it could be an app which we can't support on Wine :(
The problem is that GLX and WGL work slighthly differently regarding the sharing of 'display lists'. In case of GLX you share display lists at context creation time but in case of WGL you can do this at a later stage. Most apps don't do that but it appears yours does...
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #2 from Fábio Capela fabio.capela@yahoo.com 2008-02-01 14:52:23 --- Created an attachment (id=10568) --> (http://bugs.winehq.org/attachment.cgi?id=10568) Small hack that solves the error message and part of the graphical corruption
I've made an experiment, inverting the arguments to X11DRV_wglShareLists, and it gets rid of the error message and restores the texture to the 2D view, although the problems in the 3D view persists.
Seems like this specific app creates its contexts in a different order than the one Wine expects.
http://bugs.winehq.org/show_bug.cgi?id=11436
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download
--- Comment #3 from Austin English austinenglish@gmail.com 2008-02-04 08:12:01 --- Confirming in wine 0.9.54, kubuntu feisty.
http://bugs.winehq.org/show_bug.cgi?id=11436
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #4 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2008-03-16 07:11:33 --- Gametap is also affected by this bug. The hack/patch seems to resolve the issue for gametap as well
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #5 from Fábio Capela fabio.capela@yahoo.com 2008-04-11 23:27:45 --- Created an attachment (id=12081) --> (http://bugs.winehq.org/attachment.cgi?id=12081) New hack that should not break anything else
Another hack. This one first tries to share the context in the original order; if it can't because the destination context is already created, it inverts the original context with the destination and try again. Might not be the optimal solution, but it should work without breaking anything.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #6 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-01 07:10:29 --- *** Bug 12062 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #7 from Austin English austinenglish@gmail.com 2008-12-09 22:06:05 --- Still present in git.
http://bugs.winehq.org/show_bug.cgi?id=11436
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #8 from Austin English austinenglish@gmail.com 2009-01-18 03:47:52 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=11436
nsandschn@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nsandschn@gmx.de
--- Comment #9 from nsandschn@gmx.de 2009-05-18 14:36:06 --- Bug still there in wine 1.1.21
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #10 from Austin English austinenglish@gmail.com 2010-10-01 03:47:07 CDT --- Still in wine-1.3.3-417-g536fc57
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #11 from olof olof_nord_@hotmail.com 2011-05-19 11:50:16 CDT --- Created an attachment (id=34780) --> (http://bugs.winehq.org/attachment.cgi?id=34780) console output when trying to run pepakuka viewer 3
console output when trying to run pepakuka viewer 3, using wine 1.3.20 and ubuntu 11.04.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #12 from Martin Neumann neumaennl@gmx.net 2011-08-10 14:19:01 CDT --- Created an attachment (id=35912) --> (http://bugs.winehq.org/attachment.cgi?id=35912) Console log
http://bugs.winehq.org/show_bug.cgi?id=11436
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #13 from joaopa jeremielapuree@yahoo.fr 2012-11-11 23:58:19 CST --- Still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=11436
kagesenshi.87@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kagesenshi.87@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #14 from Jerome Leclanche adys.wh@gmail.com 2013-08-24 21:26:08 CDT --- I believe it is.
http://bugs.winehq.org/show_bug.cgi?id=11436
NSLW lukasz.wojnilowicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lukasz.wojnilowicz@gmail.co | |m
--- Comment #15 from NSLW lukasz.wojnilowicz@gmail.com 2013-08-30 15:19:04 CDT --- Still issue in Wine 1.7.1 I tested on SolidWorks Explorer 2010.
http://bugs.winehq.org/show_bug.cgi?id=11436
Pekka Helenius fincer89@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fincer89@hotmail.com
http://bugs.winehq.org/show_bug.cgi?id=11436
Yanis Lukes Pendrokar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Pendrokar@gmail.com
--- Comment #16 from Yanis Lukes Pendrokar@gmail.com --- Unity Editor has a force OpenGL rendering mode, removing DirectX as the default renderer.
To enable, the "-force-opengl" argument must follow the executable, the default would be "-force-d3d9".
This mode crashes Unity.
A player of Endless Space, which was created using Unity, created a patch to fix this bug/issue. It works, although some inner windows of Unity have their frames delayed. That is showing previous frame until some action is done. This was also an issue in Direct3D mode, but only for NVIDIA cards.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #17 from Yanis Lukes Pendrokar@gmail.com --- Created attachment 49085 --> http://bugs.winehq.org/attachment.cgi?id=49085 Endless Space/Unity Wine patch
Note I am not the developer of the patch, so can't help explaining what was changed and why.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #18 from Yanis Lukes Pendrokar@gmail.com --- This is still an issue on Wine 1.7.22 32bit WINEARCH Operating system - Ubuntu Desktop 14.04 (64bit) Graphics card - NVIDIA Geforce 9600GT NVIDIA binary driver 337.25
http://bugs.winehq.org/show_bug.cgi?id=11436
Yanis Lukes Pendrokar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |36964
http://bugs.winehq.org/show_bug.cgi?id=11436
Yanis Lukes Pendrokar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on|36964 |
http://bugs.winehq.org/show_bug.cgi?id=11436
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #19 from Béla Gyebrószki gyebro69@gmail.com --- I tested Pepakura Viewer v3.05a in wine-1.7.23-33-gc654b7b.
The application starts with an error message: 'Error: invalid operation'
and terminal shows:
fixme:dib:dibdrv_wglShareLists not supported yet
Despite of the error message, the app is started and the 2 demo objects can be opened without issues.
The hackish patch from comment #17 didn't make it any better, the error message remained on startup.
On the other hand, the patch in comment #17 fixes bug #25420 and bug #25419 for me. In addition there's a bug when you run Blender 2.7.x under Wine where some fonts are unreadable (http://forum.winehq.org/viewtopic.php?f=8&t=23200). The patch fixes this problem too. Could a Wine developer review this patch in case it would be acceptable?
setup_pepakura_viewer305a_en.exe md5sum: b8287756e36c1aa790aab787fa8cf583
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #20 from Yanis Lukes Pendrokar@gmail.com --- Since the patch has resolved other issues, this is the source of the patch Endless Space/Unity Wine patch - http://forums.amplitude-studios.com/showthread.php?4459-Question-Linux-versi...
http://bugs.winehq.org/show_bug.cgi?id=11436
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matteo.mystral@gmail.com
--- Comment #21 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Béla Gyebrószki from comment #19)
On the other hand, the patch in comment #17 fixes bug #25420 and bug #25419 for me. In addition there's a bug when you run Blender 2.7.x under Wine where some fonts are unreadable (http://forum.winehq.org/viewtopic.php?f=8&t=23200). The patch fixes this problem too. Could a Wine developer review this patch in case it would be acceptable?
That patch looks to be essentially equivalent to mine from bug 33407 comment 6. I think my comment there still stands.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #22 from Yanis Lukes Pendrokar@gmail.com --- So can we add the patch and have it override the default behavior when a certain Registry key is assigned?
Because right now we have to use a different Wine version for running such OpenGL apps.
http://bugs.winehq.org/show_bug.cgi?id=11436
Doctor Jellyface doctorjellyface@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |doctorjellyface@outlook.com
--- Comment #23 from Doctor Jellyface doctorjellyface@outlook.com --- It is possible to use the patch from comment #17 without recompiling wine.
You have to replace the $WINEPREFIX/windows/system32/winex11.drv file with this (https://www.dropbox.com/s/cnoietzphwqi2si/winex11.drv) file. DLL overrides are not needed.
However, the file comes from a self-compiled patched wine, which is several releases old, and it would be a good idea to recompile every version.
Also, the patch used is a hack, and although it solves some things, it breaks others. For ex. in Unity the rendering of the GUI is delayed (lagged) and makes Unity a pain to use. Also, some buttons are have slight (but visible) render errors.
As Yanis Lukes mentioned, the best thing to do would probably ship a patched and non-patched version of winex11.drv, with a registry key with the file preference, until this bug becomes officially fixed.
http://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #24 from Yanis Lukes Pendrokar@gmail.com --- "the best thing to do would probably ship a patched and non-patched version of winex11.drv, with a registry key with the file preference"
That is not what I am recommending. I am recommending that the code posted in available patches to be ran by Wine if a registry key is added to the wineprefix. This is a temporary solution to OpenGL apps who have problems or crashes due to "wglShareLists" implementation.
https://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #25 from Yanis Lukes Pendrokar@gmail.com --- Created attachment 49402 --> https://bugs.winehq.org/attachment.cgi?id=49402 Same as "Endless Space/Unity Wine patch", but with registry key activation
So I have created a patch that is the same as the previous "Endless Space/Unity Wine patch", but is activated with a boolean registry key, "UseWGLShareListsHack" under "X11 Drivers" like in UsefulRegistryKeys. Use the following command to add the key(default WINEPREFIX if unspecified):
./wine reg add "HKCU\Software\Wine\X11 Driver" /v UseWGLShareListsHack /t REG_SZ /d Y
This patch should have no effect on default Wine behavior. This is a temporary solution for some applications regarding this issue, so that this patch should not be applied to every new version of Wine.
@Matteo Bruni,
Actually there is one significant change between the patches, after the script determines that "'dest' context is current.\n", your patch does "return false". For Unity3D it makes the patch to not work, so my posted patch has it commented out.
https://bugs.winehq.org/show_bug.cgi?id=11436
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=25419
https://bugs.winehq.org/show_bug.cgi?id=11436
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=11436
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED CC| |michael@fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/winex11-wglSha | |reLists
https://bugs.winehq.org/show_bug.cgi?id=11436
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Version|unspecified |0.9.54.
https://bugs.winehq.org/show_bug.cgi?id=11436
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=11436
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |otaku@rambler.ru
--- Comment #26 from Bruno Jesus 00cpxxx@gmail.com --- *** Bug 33407 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=11436
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/winex11-wglSha |er/patches/winex11-wglShare |reLists |Lists
https://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #27 from Béla Gyebrószki gyebro69@gmail.com --- *** Bug 25419 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=11436
Michael Curran curran.michaelp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |curran.michaelp@gmail.com
--- Comment #28 from Michael Curran curran.michaelp@gmail.com --- I'm seeing this error on a different title but the staged patchset doesn't seem to match any of the patches attached to this bug report. Is there any chance of getting one of the more advanced patches moved into staging?
https://bugs.winehq.org/show_bug.cgi?id=11436
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #29 from Zebediah Figura z.figura12@gmail.com --- (In reply to Michael Curran from comment #28)
I'm seeing this error on a different title but the staged patchset doesn't seem to match any of the patches attached to this bug report. Is there any chance of getting one of the more advanced patches moved into staging?
Is the current wine-staging patch set insufficient to fix this bug?
https://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #30 from Michael Curran curran.michaelp@gmail.com --- It isn't, I'm just getting the error message:
err:wgl:glxdrv_wglShareLists Recreating OpenGL context to share display lists, although the context has been current!
instead of:
err:wgl:glxdrv_wglShareLists Could not share display lists, one of the contexts has been current already !
which is consistent with the Staging changeset but not the patches.
I'm trying to run The Immortals of Terra, which doesn't look to be in WineDB.
https://bugs.winehq.org/show_bug.cgi?id=11436
--- Comment #31 from Michael Curran curran.michaelp@gmail.com --- I'm going to have to backtrack some, digging into it a bit further, it does look like it is getting a bit further using wine-staging. I'm thinking that the application is accessing the wrong context immediately after the the new code in Staging kicks in.
https://bugs.winehq.org/show_bug.cgi?id=11436
jpleonard12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jpleonard12@gmail.com
--- Comment #32 from jpleonard12@gmail.com --- A similar error is present when SolidWorks 2008 crashes. This application worked great up until Wine v5.21, but now always crashes when a 3D part is opened.
0118:fixme:dib:dibdrv_wglShareLists not supported yet
https://bugs.winehq.org/show_bug.cgi?id=11436
ax 34noff otaku@rambler.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|otaku@rambler.ru |
https://bugs.winehq.org/show_bug.cgi?id=11436
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |28233dd3bc4963e6205d33aedb6 | |65bfdb995c9c6 Resolution|--- |FIXED CC| |alexhenrie24@gmail.com Component|opengl |winex11.drv
--- Comment #33 from Alex Henrie alexhenrie24@gmail.com --- Fixed by https://gitlab.winehq.org/wine/wine/-/commit/28233dd3bc4963e6205d33aedb665bf...
https://bugs.winehq.org/show_bug.cgi?id=11436
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #34 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.6.
https://bugs.winehq.org/show_bug.cgi?id=11436
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|wglShareLists |
https://bugs.winehq.org/show_bug.cgi?id=11436
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x
https://bugs.winehq.org/show_bug.cgi?id=11436
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.0.x |---
--- Comment #35 from Michael Stefaniuc mstefani@winehq.org --- Removing the 8.0.x milestone from bug fixes included in 8.0.2.