http://bugs.winehq.org/show_bug.cgi?id=13490
Summary: Touhou Suimusou (Scarlet Weather Rhapsody): freezes when started (black screen) Product: Wine Version: 1.0-rc2 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: matthewsage@live.com
Created an attachment (id=13415) --> (http://bugs.winehq.org/attachment.cgi?id=13415) winedbg output
When running the Touhou Suimusou executable (th105.exe), a window is created with the correct title of the app, but its background is completely black. Program freezes after a few seconds.
Hardware: Core 2 Quad Q6600 Intel DG31PR 4 GB RAM Nvidia GeForce 7300GS Genius SoundMaker Value 5.1
OS: Ubuntu 8.04
http://bugs.winehq.org/show_bug.cgi?id=13490
Matthew Sage matthewsage@live.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Touhou Suimusou (Scarlet |Touhou Hisouten (Scarlet |Weather Rhapsody): freezes |Weather Rhapsody): freezes |when started (black screen) |when started (black screen)
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #1 from ghost99@mail.ru 2008-05-29 02:46:49 --- Created an attachment (id=13453) --> (http://bugs.winehq.org/attachment.cgi?id=13453) Output of Scarlet_Weather_Rhapsody with native wine libs
With some windows d3d libs the empty window appears, but game is still unplayable. Just freeze after some time.
http://bugs.winehq.org/show_bug.cgi?id=13490
ghost99@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ghost99@mail.ru
--- Comment #2 from ghost99@mail.ru 2008-05-29 02:50:13 --- I think, may be there is effect of unimplemented d3dx9_36.dll.D3DXCreateTextureFromFileA http://bugs.winehq.org/show_bug.cgi?id=13297
http://bugs.winehq.org/show_bug.cgi?id=13490
Philip Nilsson leffeman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leffeman@gmail.com
--- Comment #3 from Philip Nilsson leffeman@gmail.com 2008-05-30 14:00:12 --- This also happens with a native d3dx9_36.dll.
I have investigated[1] this somewhat and found that the last function called in the thread that blocks is wglMakeCurrent.
[1] Launch with WINEDEBUG=trace+relay LANG=ja_JP.UTF-8 ~/dev/wine/wine th105.exe 2>trace.log, let the program run for a little while, break it twice. Less the log, search for block, search backwards for whatever thread blocks the execution.
0020:Call gdi32.wglMakeCurrent(000002b8,0470bad8) ret=7e34db24
err:ntdll:RtlpWaitForCriticalSection section 0x7e2ecac0 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 0009, blocked by 0020, retrying (60 sec)
http://bugs.winehq.org/show_bug.cgi?id=13490
tyle7@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from tyle7@hotmail.com 2008-05-31 14:54:02 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=13490
Andrew Eikum coldpies.devel@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |coldpies.devel@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #5 from Philip Nilsson leffeman@gmail.com 2008-06-11 13:52:20 --- Created an attachment (id=13921) --> (http://bugs.winehq.org/attachment.cgi?id=13921) Stack trace.
With 189603a995fd6c712975f80ede3cfe345742baea I get a stack trace.
http://bugs.winehq.org/show_bug.cgi?id=13490
Charles Christie cchris0396@students.pcci.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cchris0396@students.pcci.edu
--- Comment #6 from Charles Christie cchris0396@students.pcci.edu 2008-10-29 21:37:28 --- I have the same problem. I'm simply DYING to play this game. My friends are going to beat it before I do at this rate! ;)
If this bug is fixed, Touhou 11 will work fine as well. I really hope you can get it working next version. I'm keeping my fingers crossed!
If it's a small enough problem, it'd be awesome if you could fix it for next version, but if there's one thing I know about open source, its that developers work on what they want to work on, and it's not right to try to demand them to do otherwise. I want to take a moment and thank you for all of the time you guys have volunteered to getting my Windows apps working in WINE.
http://bugs.winehq.org/show_bug.cgi?id=13490
Wyatt Epp epp.8@osu.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |epp.8@osu.edu
http://bugs.winehq.org/show_bug.cgi?id=13490
Nao Nakashima nao.nakashima@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nao.nakashima@gmail.com
--- Comment #7 from Nao Nakashima nao.nakashima@gmail.com 2009-02-02 13:49:19 --- With native d3dx9_36.dll game plaing but crashes on many menus and on end of fight.
http://bugs.winehq.org/show_bug.cgi?id=13490
Wai Ling Tsang simotsa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simotsa@gmail.com
--- Comment #8 from Wai Ling Tsang simotsa@gmail.com 2009-05-05 07:25:08 --- With the latest Xorg-server (1.5.3), mesa-7.3, libdrm-2.4.6, and wine (1.1.20), PatchCon runs without crashing. I can hear the music, and heard my mouse hovering over buttons etc..., but the screen is black.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #9 from Austin English austinenglish@gmail.com 2009-11-19 12:52:35 --- This is your friendly reminder that there has been no bug activity for 6 months. Is this still an issue in current (1.1.33 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13490
Andrew Eikum andrew@brightnightgames.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@brightnightgames.com
--- Comment #10 from Andrew Eikum andrew@brightnightgames.com 2009-11-19 13:55:30 --- Yes, still occurs in 1.1.33 with native d3dx9_36.dll
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #11 from Philip Nilsson leffeman@gmail.com 2009-11-21 04:22:24 --- I think this page contains some information relevant to this bug: http://swr.mizuumi.net/index.php/Linux_support#Bugs
http://bugs.winehq.org/show_bug.cgi?id=13490
tyle7@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tyle7@hotmail.com
--- Comment #12 from tyle7@hotmail.com 2009-11-21 09:56:17 --- (In reply to comment #11)
I think this page contains some information relevant to this bug: http://swr.mizuumi.net/index.php/Linux_support#Bugs
Did some testing with Scarlet Weather Rhapsody and native d3d9x_36.dll, and the RtlpWaitForCriticalSection hang only happens when using Nvidia proprietary drivers.
With nouveau drivers it gets a bit further, and hangs first after printing the title screen.
Looks like that site was right in that it is an Nvidia driver bug.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #13 from Wai Ling Tsang simotsa@gmail.com 2009-11-28 04:57:44 --- I have confirmed that SWR does not freeze when using either ATI open or proprietary driver.
http://bugs.winehq.org/show_bug.cgi?id=13490
Knightlain pastorrub@msn.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pastorrub@msn.com
--- Comment #14 from Knightlain pastorrub@msn.com 2010-07-10 22:02:47 --- I can't open Touhou Hisouten since I have an NVIDIA driver and a 64 bit distro. However, in this article it explains what happens on NVIDIA and maybe the information can help to solve it.
http://hisouten.koumakan.jp/wiki/Linux_support
http://bugs.winehq.org/show_bug.cgi?id=13490
Mdu7078@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Mdu7078@aol.com
--- Comment #15 from Mdu7078@aol.com 2010-08-05 11:17:43 --- Still does not work on Wine 1.2 same blank screen
Hardware: Intel Core 2 Duo 4 GB RAM NVIDIA GeForce GT 120
Xfce 4.6.1
http://bugs.winehq.org/show_bug.cgi?id=13490
thunder_8888@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thunder_8888@mail.ru
--- Comment #16 from thunder_8888@mail.ru 2010-09-05 22:22:46 CDT --- *** Bug 24207 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #17 from thunder_8888@mail.ru 2010-09-06 03:08:32 CDT --- For fix this bug, we need make wrapped next call: pd3d->DrawPrimitiveUP
Before call save fpu rounding mode, make it 0x027F, and after call - restore saved fpu rounding mode.
It's already tested on my system with NVIDIA card.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #18 from Wai Ling Tsang simotsa@gmail.com 2010-09-06 03:25:41 CDT --- (In reply to comment #17)
For fix this bug, we need make wrapped next call: pd3d->DrawPrimitiveUP
Before call save fpu rounding mode, make it 0x027F, and after call - restore saved fpu rounding mode.
It's already tested on my system with NVIDIA card.
Thanks a lot, thunder_8888.
Could you show us which file need to be changed in the wine source tree? I would like to test this out myself as well since I have be plagued by this issue for years.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #19 from thunder_8888@mail.ru 2010-09-06 12:47:54 CDT --- Created an attachment (id=30608) --> (http://bugs.winehq.org/attachment.cgi?id=30608) Patch
Try this patch. It's work for me.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #20 from thunder_8888@mail.ru 2010-09-06 12:59:03 CDT --- It's patch for wine/dlls/d3d9/device.c
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #21 from Wai Ling Tsang simotsa@gmail.com 2010-09-06 13:22:52 CDT --- (In reply to comment #20)
It's patch for wine/dlls/d3d9/device.c
Thank you. Now, SWR and PatchCon runs fine, no more black screen :)
I puzzle me why it works fine on Windows. Maybe they restore FPU rounding in the Windows API? If that's the case, perhaps wine should follow this behaviour?
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #22 from Wai Ling Tsang simotsa@gmail.com 2010-09-06 13:31:11 CDT --- (In reply to comment #21)
(In reply to comment #20)
It's patch for wine/dlls/d3d9/device.c
Thank you. Now, SWR and PatchCon runs fine, no more black screen :)
I puzzle me why it works fine on Windows. Maybe they restore FPU rounding in the Windows API? If that's the case, perhaps wine should follow this behaviour?
I applied the fixes to d3d8/device.c as well, and now all touhou games runs fine.
http://bugs.winehq.org/show_bug.cgi?id=13490
Thomas Spear Speeddymon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Speeddymon@gmail.com
--- Comment #23 from Thomas Spear Speeddymon@gmail.com 2010-09-06 18:41:11 CDT --- If you have not already, please submit this patch to wine-patches, or make a discussion on wine-devel about this bug and the patch, perhaps that will help to get it included in the tree. :-)
http://bugs.winehq.org/show_bug.cgi?id=13490
Tomasz Sobczyk dottomi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dottomi@gmail.com
--- Comment #24 from Tomasz Sobczyk dottomi@gmail.com 2010-09-06 18:48:27 CDT --- Applied the patch and PatchCon works now! ^_^ ATI Radeon R300, xf86-video-ati.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #25 from thunder_8888@mail.ru 2010-09-06 20:13:19 CDT --- In windows, rounding mode don't reseting. It's problem of NVidia drivers for linux, because on intel or ATI it's run normal.
I think this is not patch, but hack, because it's NVidia bug - they use not safe code, that direct accessing to fpu.
I havent time for discussion or submiting patch, you may make it by self.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #26 from thunder_8888@mail.ru 2010-09-06 20:19:08 CDT --- I solve 3 of 4 bugs by patching game, but one bug i can't fix - bug #24267
http://bugs.winehq.org/show_bug.cgi?id=13490
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #27 from Dan Kegel dank@kegel.com 2010-10-23 10:20:22 CDT --- *** Bug 23207 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #28 from Dan Kegel dank@kegel.com 2010-10-23 16:32:19 CDT --- Created an attachment (id=31475) --> (http://bugs.winehq.org/attachment.cgi?id=31475) Sample Linux program demonstrating bug
This test program should hang if bug is present, and not otherwise. It hangs for me on my nvidia boxes with the proprietary drivers. (It could probably be simpler and clearer, improvements welcome.) Can someone with an ATI card verify that it doesn't hang?
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #29 from Jari Vetoniemi mailRoxas@gmail.com 2011-05-13 04:41:43 CDT --- Created an attachment (id=34676) --> (http://bugs.winehq.org/attachment.cgi?id=34676) Updated patch for latest wine
I updated the patch for latest wine.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #30 from tyle7@hotmail.com 2011-07-19 13:39:30 CDT --- (In reply to comment #28)
Created an attachment (id=31475)
--> (http://bugs.winehq.org/attachment.cgi?id=31475) [details]
Sample Linux program demonstrating bug
Tested this with a GeForce 9400M with proprietary nvidia driver 275.19. The bug seems to have been fixed:
Setting ronding mode to 'always up', glXCreateContext will hang if bug is present, see http://hisouten.koumakan.jp/wiki/Linux_support Success - bug not found.
Touhou Hisouten also starts correctly now (tested with wine-1.3.24-216-gd385675 ). Looks like nvidia fixed their bug.
http://bugs.winehq.org/show_bug.cgi?id=13490
--- Comment #31 from Wai Ling Tsang simotsa@gmail.com 2011-07-20 19:36:28 CDT --- (In reply to comment #30)
(In reply to comment #28)
Created an attachment (id=31475)
--> (http://bugs.winehq.org/attachment.cgi?id=31475) [details] [details]
Sample Linux program demonstrating bug
Tested this with a GeForce 9400M with proprietary nvidia driver 275.19. The bug seems to have been fixed:
Setting ronding mode to 'always up', glXCreateContext will hang if bug is present, see http://hisouten.koumakan.jp/wiki/Linux_support Success - bug not found.
Touhou Hisouten also starts correctly now (tested with wine-1.3.24-216-gd385675 ). Looks like nvidia fixed their bug.
I have confirmed that the game no longer freeze with a black screen with the latest nvidia driver, but the music room still crash wine. But I think that is an unrelated issue.
http://bugs.winehq.org/show_bug.cgi?id=13490
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #32 from Dan Kegel dank@kegel.com 2011-07-20 19:49:52 CDT --- Looks like nvidia fixed it, then. Closing invalid (since it's a driver bug).
http://bugs.winehq.org/show_bug.cgi?id=13490
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #33 from André H. nerv@dawncrow.de 2011-07-23 08:37:56 CDT --- Closing invalid.
http://bugs.winehq.org/show_bug.cgi?id=13490
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other
--- Comment #34 from Austin English austinenglish@gmail.com 2012-02-23 15:25:17 CST --- Removing deprecated 'All' Platform.