http://bugs.winehq.org/show_bug.cgi?id=17233
Summary: Zanzarah game opens a black fullscreen window and then crashes Product: Wine Version: 1.1.14 Platform: PC-x86-64 URL: http://www.download.com/Zanzarah-demo/3000-7492_4- 10246951.html OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-ddraw AssignedTo: wine-bugs@winehq.org ReportedBy: gryffus@hkfree.org
Game opens a black fullscreen window and then crashes. I am using an nvidia card.
http://bugs.winehq.org/show_bug.cgi?id=17233
Lukáš Krejza gryffus@hkfree.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #1 from Lukáš Krejza gryffus@hkfree.org 2009-02-02 08:04:53 --- Created an attachment (id=19208) --> (http://bugs.winehq.org/attachment.cgi?id=19208) Zanzarah wine output
http://bugs.winehq.org/show_bug.cgi?id=17233
nsandschn@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nsandschn@gmx.de
--- Comment #2 from nsandschn@gmx.de 2009-06-07 15:51:54 --- I can confirm this bug in wine 1.1.23. I get a different terminal output though (see attachment)
http://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #3 from nsandschn@gmx.de 2009-06-07 15:55:23 --- Created an attachment (id=21629) --> (http://bugs.winehq.org/attachment.cgi?id=21629) Terminal output
http://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #4 from GyB gyebro69@gmail.com 2010-03-21 00:10:14 --- Created an attachment (id=26940) --> (http://bugs.winehq.org/attachment.cgi?id=26940) Terminal output including backtrace
Tried the demo with Wine-1.1.41, the black screen issue still exists, additionally Wine dies with an exception.
Fedora 12 x86 Nvidia card with proprietary driver 195.36.08
http://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #5 from joaopa jeremielapuree@yahoo.fr 2011-03-26 23:42:58 CDT --- Created an attachment (id=33821) --> (http://bugs.winehq.org/attachment.cgi?id=33821) Backtrace
I confirm with wine 1-3-36. I have a Nvidia geforce 7600go with 260-19-44 driver
http://bugs.winehq.org/show_bug.cgi?id=17233
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #6 from GyB gyebro69@gmail.com 2011-09-11 06:52:02 CDT --- The demo download link in the url field now points to a small .exe (probably a download manager?)
Here's another, direct download link to the demo: http://www.fileplanet.com/87706/80000/fileinfo/Zanzarah:-The-Hidden-Portal-D...
The bug is still present in 1.3.28 Nvidia 250 / driver 280.13
http://bugs.winehq.org/show_bug.cgi?id=17233
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-ddraw |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=17233
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |00cpxxx@gmail.com Ever Confirmed|0 |1
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2012-06-19 01:29:15 CDT --- Still present in wine 1.5.6.
http://bugs.winehq.org/show_bug.cgi?id=17233
TOM l12436@yahoo.com.tw changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |l12436@yahoo.com.tw
--- Comment #8 from TOM l12436@yahoo.com.tw 2013-06-15 22:16:45 CDT --- still exists in 1.6 RC2
http://bugs.winehq.org/show_bug.cgi?id=17233
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winebugs140@gmail.com
--- Comment #9 from WineBuG winebugs140@gmail.com 2013-10-15 14:18:13 CDT --- Not fixed in Wine 1.7.4.
Tested with: Windows Vista (without Wine), GeForce 9600M GS--the program works fine here Ubuntu 13.04, GeForce 9600M GS (NVIDIA driver 313) Mac OS X 10.7.5, ATI HD 2600 Pro, Mac Driver/X11
http://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #10 from WineBuG winebugs140@gmail.com --- Not fixed in Wine 1.7.15
https://bugs.winehq.org/show_bug.cgi?id=17233
hidefromkgb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hidefromkgb@gmail.com
--- Comment #11 from hidefromkgb@gmail.com --- Gentlemen, I seem to have discovered the problem`s root.
In short, the game does not display anything because it doesn`t know how. It uses IDirectDraw7::EnumSurfaces() to find a pixel format of the primary video device, but in WINE this method is just a stub, and it does not return any actual formats.
As a quick and dirty workaround, I propose to change the code that requires EnumSurfaces to a direct call of its callback (EnumSurfacesCallback7), where lpDDSurface is NULL, lpContext is the same as passed to EnumSurfaces, and lpDDSurfaceDesc is just a generic BGR/888 format description.
Here`s the patch I made that is described above: www.old-games.ru/forum/attachment.php?attachmentid=23621&d=1424674826
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #12 from TOM l12436@yahoo.com.tw --- It is actually work. I can prove it. but another problem appear. input is not working... still find a way to let input work.
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #13 from hidefromkgb@gmail.com --- Hm, that`s strange. On my machine it`s working fine. Arch Linux 3.18.6, WINE 1.7.36-1, Core i5 2557M / 4GB / Intel HD 3000.
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #14 from TOM l12436@yahoo.com.tw --- (In reply to hidefromkgb from comment #13)
Hm, that`s strange. On my machine it`s working fine. Arch Linux 3.18.6, WINE 1.7.36-1, Core i5 2557M / 4GB / Intel HD 3000.
in ubuntu, wine is stock on 1.7.34. maybe this is the different. I am waiting ubuntu-wine ppa update wine, or I just cloud compile by myself
https://bugs.winehq.org/show_bug.cgi?id=17233
LinuxInTrouble petrovgeorguu@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |petrovgeorguu@yandex.ru
--- Comment #15 from LinuxInTrouble petrovgeorguu@yandex.ru --- Thank you for this patch. It's really working. Although i have a question. I have an optimus laptop. And if i use nvidia-prime package everything working just fine(except rather long start and some rare fps drops in menus) - but due to some perfomance issues (nvidia 310m), i forced to use bumblebee - it's working really better with my video card (don't know why), and if i'm trying to start the game with optirun or primusrun commands - game starts - all sounds are working, but there is no image on the screen at all. Any ways to fix that?
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #16 from hidefromkgb@gmail.com --- (In reply to LinuxInTrouble from comment #15)
Thank you for this patch. It's really working. Although i have a question. I have an optimus laptop. And if i use nvidia-prime package everything working just fine(except rather long start and some rare fps drops in menus)
- but due to some perfomance issues (nvidia 310m), i forced to use bumblebee
- it's working really better with my video card (don't know why), and if
i'm trying to start the game with optirun or primusrun commands - game starts - all sounds are working, but there is no image on the screen at all. Any ways to fix that?
It seems that 310M does not support BGR/888. I haven`t used NVidia since 2007, so I can`t even guess the format it might need. Four main things in question are its RGBA bitmasks. Knowing these I would be able to forge a suitable DDPIXELFORMAT structure. Can you please add my printf() to this code and compile/run it on your machine, and then show the screenshot and post its output?
https://www.opengl.org/wiki/Programming_OpenGL_in_Linux:_GLX_and_Xlib
printf("\nscreen = %d, depth = %d, class = %d\nR = %08X, G = %08X, B = %08X\nmap = %d, bits = %d\n\n", vi->screen, vi->depth, vi->class, vi->red_mask, vi->green_mask, vi->blue_mask, vi->colormap_size, vi->bits_per_rgb);
The code and its build line are given at the bottom of the wiki page. The printf() I need is just above. It has to be inserted right before glEnable(GL_DEPTH_TEST). I haven`t tested this line, but I hope it will work as expected.
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #17 from LinuxInTrouble petrovgeorguu@yandex.ru --- (In reply to hidefromkgb from comment #16) Ty for fast answer. Some issues with types, but they are not important in this case (as i understood). quad.c:77:1: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] printf("\nscreen = %d, depth = %d, class = %d\nR = %08X, G = %08X, B = %08X\nmap = %d, bits = %d\n\n", vi->screen, vi->depth, vi->class, vi->red_mask, vi->green_mask, vi->blue_mask, vi->colormap_size, vi->bits_per_rgb); ^ quad.c:77:1: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] quad.c:77:1: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=]
Output for executiong quad: visual 0x20 selected
screen = 0, depth = 24, class = 4 R = 00FF0000, G = 0000FF00, B = 000000FF map = 256, bits = 8
Output for "optirun ./quad" visual 0x20 selected
screen = 0, depth = 24, class = 4 R = 00FF0000, G = 0000FF00, B = 000000FF map = 256, bits = 8
As i see they are exactly the same ). May be the problem is with bumblebee - it's using VirtualGl. Bumblebee renders frames for your Optimus NVIDIA card in an invisible X Server with VirtualGL and transports them back to your visible X Server. Frames will be compressed before they are transported - this saves bandwidth and can be used for speed-up optimization of bumblebee:
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #18 from LinuxInTrouble petrovgeorguu@yandex.ru --- (In reply to hidefromkgb from comment #16) primus: warning: recreating incompatible pbuffer - this line is wrriten for 14 times. 4 of them on start menu (which is being shown for every time before the game)
https://bugs.winehq.org/show_bug.cgi?id=17233
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |michael@fds-team.de
--- Comment #19 from Michael Müller michael@fds-team.de --- The following patch should fix the issue:
https://github.com/wine-compholio/wine-staging/blob/master/patches/ddraw-Enu...
Could you please test it?
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #20 from LinuxInTrouble petrovgeorguu@yandex.ru --- (In reply to Michael Müller from comment #19)
Could you please test it?
I will do my best, but sorry it will take some time, cause i don't know how to apply it (newbie to linux) - need to read some docs before that. And yes, also thank you for this work.
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #21 from LinuxInTrouble petrovgeorguu@yandex.ru ---
Could you please test it?
Well. I've made custom build of wine with this patch. Good news are that zanzarah starts with the original zanthp.exe (i have some issues though - many with enumsurfaces). Bad news for me are that it's still impossible to run it via "optirun" -still no image - and intel videocard is'nt enough to run it via wine with normal fps (very big fps drops in all menus near 8-10). But for most users the problem is solved (there are some problems with changing keyboard settings on ubuntu).
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #22 from hidefromkgb@gmail.com --- (In reply to LinuxInTrouble from comment #21)
Could you please test it?
Well. I've made custom build of wine with this patch. Good news are that zanzarah starts with the original zanthp.exe (i have some issues though - many with enumsurfaces). Bad news for me are that it's still impossible to run it via "optirun" -still no image - and intel videocard is'nt enough to run it via wine with normal fps (very big fps drops in all menus near 8-10). But for most users the problem is solved (there are some problems with changing keyboard settings on ubuntu).
Try 16-bit color mode. On my Intel HD 3000 the FPS is stable with 16-bit.
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #23 from LinuxInTrouble petrovgeorguu@yandex.ru --- Yes. That helped a lot. Not perfect but playable 20+ fps. Thank you.
https://bugs.winehq.org/show_bug.cgi?id=17233
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |focht@gmx.net Summary|Zanzarah game opens a black |Zanzarah game opens a black |fullscreen window and then |fullscreen window and then |crashes |crashes (needs support for | |IDirectDraw7::EnumSurfaces | |'DDENUMSURFACES_CANBECREATE | |D')
--- Comment #24 from Anastasius Focht focht@gmx.net --- Hello folks,
obviously still present.
Old patch link got broken due to rework, update here:
https://github.com/wine-compholio/wine-staging/tree/master/patches/ddraw-Enu...
Regards
https://bugs.winehq.org/show_bug.cgi?id=17233
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED CC| |sebastian@fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/ddraw-EnumSurf | |aces
https://bugs.winehq.org/show_bug.cgi?id=17233
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
--- Comment #25 from mrdeathjr28@yahoo.es --- In my case crash at begins too in wine 1.7.52
System Specs
Nvidia Drivers 355.00.09 Linux Mint 17.2 Raffaela XFCE Edition 64Bit - Kernel 4.0.0-040000-generic (ubuntu mainline) CPU: INTEL Pentium G3258 (Haswell 22nm) 4.1Ghz + Artic Cooling Alpine 11 Plus MEMORY: 8GB DDR3 1333 (2x4) Patriot value (dual channel: 21.3 gb/s) GPU: Zotac Nvidia Geforce GT630 (GK208 28nm: 384 Shaders / 8 ROPS) Zone Edition Passive Cooling 2GB DDR3 1800Mhz 64Bit (14.4Gb/s) MAINBOARD: MSI H81M E33
Console output
wine zanzarah.exe starting zanzarah....hello worldfixme:win:EnumDisplayDevicesW ((null),0,0x33f218,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x33eb48,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x33f4e8,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x33ecd8,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x33f4b8,0x00000000), stub! err:d3d:wined3d_format_get_float_color_key Unhandled color key to float conversion for format WINED3DFMT_R8G8_SNORM_L8X8_UNORM. err:d3d:wined3d_format_get_float_color_key Unhandled color key to float conversion for format WINED3DFMT_R5G5_SNORM_L6_UNORM. err:d3d:wined3d_format_get_float_color_key Unhandled color key to float conversion for format WINED3DFMT_R8G8_SNORM. fixme:d3d:wined3d_device_decref Device released with resources still bound, acceptable but unexpected. fixme:d3d:wined3d_device_decref Leftover resource 0x1ab330 with type WINED3D_RTYPE_BUFFER (0x6).
https://bugs.winehq.org/show_bug.cgi?id=17233
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #26 from super_man@post.com --- (In reply to mrdeathjr28 from comment #25)
In my case crash at begins too in wine 1.7.52
You need to apply the wine-staging patches to get this working.
https://bugs.winehq.org/show_bug.cgi?id=17233
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #27 from joaopa jeremielapuree@yahoo.fr --- No plans to send these patches to Winehq?
https://bugs.winehq.org/show_bug.cgi?id=17233
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #28 from fjfrackiewicz@gmail.com --- Will these patches get added to the non-staging version of Wine?
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #29 from joaopa jeremielapuree@yahoo.fr --- Still a bug in current wine?
https://bugs.winehq.org/show_bug.cgi?id=17233
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #30 from winetest@luukku.com --- (In reply to joaopa from comment #29)
Still a bug in current wine?
Why wouldnt it be if staging patches arent upstreamed?
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #31 from Austin English austinenglish@gmail.com --- (In reply to winetest from comment #30)
(In reply to joaopa from comment #29)
Still a bug in current wine?
Why wouldnt it be if staging patches arent upstreamed?
The comment would still be helpful for anyone who hasn't checked the status of staging.
I don't see how your comment was helpful at all, however.
https://bugs.winehq.org/show_bug.cgi?id=17233
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/ddraw-EnumSurf |er/patches/ddraw-EnumSurfac |aces |es CC| |nerv@dawncrow.de
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #32 from joaopa jeremielapuree@yahoo.fr --- Still a bu in current wine (wine-3.19)?
https://bugs.winehq.org/show_bug.cgi?id=17233
meissatan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |meissatan@gmail.com
--- Comment #33 from meissatan@gmail.com --- (In reply to joaopa from comment #32)
Still a bu in current wine (wine-3.19)?
Yes still a bug in wine-4.6
https://bugs.winehq.org/show_bug.cgi?id=17233
AleWin32 alehiphopdj2@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alehiphopdj2@hotmail.com
--- Comment #34 from AleWin32 alehiphopdj2@hotmail.com --- Can anyone test this bug again?
In the latest development version of Wine this is said: Initial support for enumerating display devices.
corresponding to these changes: user32: Improve EnumDisplayDevicesW stub. user32: Implement EnumDisplayDevicesW().
So maybe this works now...
THANKS
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #35 from AleWin32 alehiphopdj2@hotmail.com --- With development version I mean the 4.11 version
https://bugs.winehq.org/show_bug.cgi?id=17233
--- Comment #36 from TOM l12436@yahoo.com.tw --- According to my test, no. Game still crash without this patch.
https://bugs.winehq.org/show_bug.cgi?id=17233
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |616585d7fbd7cd447a9e66a86f5 | |dc8272584bb0b Status|STAGED |RESOLVED Resolution|--- |FIXED CC| |z.figura12@gmail.com
--- Comment #37 from Zebediah Figura z.figura12@gmail.com --- Should be fixed by https://source.winehq.org/git/wine.git/commitdiff/616585d7fbd7cd447a9e66a86f5dc8272584bb0b.
https://bugs.winehq.org/show_bug.cgi?id=17233
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #38 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.8.