http://bugs.winehq.org/show_bug.cgi?id=31578
Bug #: 31578 Summary: Deadlock in wined3d_main.c: wined3d_cs (Sacred Gold) Product: Wine Version: 1.5.11 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: b.w@gmx.tm Classification: Unclassified
Created attachment 41523 --> http://bugs.winehq.org/attachment.cgi?id=41523 Backtrace of thread 23
Archlinux x86_64 with recent kernel 3.4.9
After playing Sacred Gold for a short time, the game hangs. A terminal shows this:
err:ntdll:RtlpWaitForCriticalSection section 0x7eaa8b60 "wined3d_main.c: wined3d_cs" wait timed out in thread 0023, blocked by 002d, retrying (60 sec)
I also have this problem on x86. It takes a longer time to be noticed there, but I believe that this is not because of the platform, but because my x86 is a dual core and my x86_64 is a quad core with hyperthreading. Or maybe because of the graphic card. My x86_64 system is a Lenovo T530 with intel hd 4000 graphics and drivers 2.20.5, x86 is a desktop with nvidia graphics.
I also verified that the problem is still there in commit 77632f0880a76b51d04bd3c73c2e0b35453d261a.
I have attached backtraces of both thread 23 and 2d from the error log.
http://bugs.winehq.org/show_bug.cgi?id=31578
b.w@gmx.tm changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |b.w@gmx.tm
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #1 from b.w@gmx.tm 2012-08-29 13:44:43 CDT --- Created attachment 41524 --> http://bugs.winehq.org/attachment.cgi?id=41524 Backtrace of thread 2d
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #2 from b.w@gmx.tm 2012-08-29 13:46:19 CDT --- Created attachment 41526 --> http://bugs.winehq.org/attachment.cgi?id=41526 Console output
I don't think this is helpful, but... maybe it is?
http://bugs.winehq.org/show_bug.cgi?id=31578
b.w@gmx.tm changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41523|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=31578
b.w@gmx.tm changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41526|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #3 from b.w@gmx.tm 2012-08-29 13:50:43 CDT --- Oh, and the version of the game is Sacred Gold 2.28 bought from gog.com.
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #4 from Henri Verbeet hverbeet@gmail.com 2012-08-29 16:21:27 CDT --- Looks like some variant of bug 31406. Is this a regression?
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #5 from b.w@gmx.tm 2012-08-30 15:13:48 CDT --- I'm trying to find that out. Building 8a95eb060449e93bc38af1cabc928f0a959e9e14 (the bad commit from bug 31406) seemed to not lead to the deadlock. I'm still unsure if it is not in that commit or if I was just "lucky" right now.
I'll try to find out.
http://bugs.winehq.org/show_bug.cgi?id=31578
AG antiquitas@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |antiquitas@gmail.com
--- Comment #6 from AG antiquitas@gmail.com 2012-09-02 18:17:37 CDT --- I'm getting this same error but with a different game (Skyrim, unreported). I figured it was a Wine thing because google search showed the issue with several games. Maybe it's only Steam games?
In any case, my issue is precisely the same as user b.w@gmx.tm.
It happens randomly, could be 5 seconds or 50 minutes into gameplay. Tried disabling addons/mods to no avail.
I am also on ArchLinux. Everything has been updated today, so I have Wine 1.5.12 and updated drivers (nvidia). I also have all the necessary 32-bit drivers installed (AFAIK).
http://bugs.winehq.org/show_bug.cgi?id=31578
Christian Widmer shadow@umbrox.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shadow@umbrox.de
--- Comment #7 from Christian Widmer shadow@umbrox.de 2012-09-03 21:08:05 CDT --- I think I can confirm this issue for Skyrim. The lockups frequently happened on Wine 1.5.11 (Ubuntu PPA version). There seem to be no lockups when playing on Wine 1.5.9 (self-compiled git version with only the Ubuntu ptrace patch applied). Because of the issue's randomness it is really hard to trace.
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #8 from b.w@gmx.tm 2012-09-04 16:16:01 CDT --- I'm could not continue my regression test yet, but will do so soon. For now: The problem still exists with 1.5.12.
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #9 from Christian Widmer shadow@umbrox.de 2012-09-04 18:12:25 CDT --- I have to correct my previous post. While the lock did not yet occur during gaming on wine 1.5.9, it did occur while downloading Skyrim patches and DLC (the patch status was set to paused in steam and a ntdll WaitForCriticalSection line appeared on the console) and during a steam installation with winetricks which failed despite having worked under the same environment before. I am not entirely sure whether this is the same problem because I do not have the exact error messages (I did not save them, unfortunately) but I am pretty certain that they were ntdll:RtlpWaitForCriticalSection ones (though the steam installation one was not in wined3d if I remember correctly).
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #10 from Christian Widmer shadow@umbrox.de 2012-09-04 19:09:38 CDT --- At least the steam installation problem seems to be something else because it has just happened again and only spawns the timeout message[1] after having failed. Furthermore it is indeed not in wined3d. That one is probably related to steam itself (maybe an update or something the like).
[1] err:ntdll:RtlpWaitForCriticalSection section 0x7efec920 "../../../../git/dlls/ntdll/loader.c: loader_section" wait timed out in thread 0039, blocked by 0038, retrying (60 sec)
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #11 from b.w@gmx.tm 2012-09-05 15:37:41 CDT --- After playing for 3 hours without the crash on commit 8a95eb060449e93bc38af1cabc928f0a959e9e14 it seems unlikely that this is a duplicate of bug 31406.
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #12 from Christian Widmer shadow@umbrox.de 2012-09-07 17:01:52 CDT --- After further investigation I am pretty sure that the two issues I mentioned with 1.5.9 are completely unrelated to the bug here. Therefore I am still quite confident wine 1.5.9 (only tested Skyrim, though) does not have the issue. This means the problematic commit was probably introduced between 1.5.9 and 1.5.11. If the freezes were a little bit easier to reproduce I would happily start bisecting. What is the first non-working commit you have identified during your regression test so far, b.w?
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #13 from b.w@gmx.tm 2012-09-08 10:11:28 CDT --- I hope to find out myself maybe next week. The problem is, that sometimes the game runs good for quite a while, which means that I have to play a long session to be sure enough that there is no problem in that commit.
I will tell you as soon as I know.
http://bugs.winehq.org/show_bug.cgi?id=31578
Forest winehq@tibit.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@tibit.com
--- Comment #14 from Forest winehq@tibit.com 2012-09-08 21:47:02 CDT --- I've been having the same problem with wine 1.5.11 and 1.5.12 on xubuntu precise. I think it's safe to confirm this bug. (Since I can't do that myself, I'll link it in the appdb.)
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #15 from AG antiquitas@gmail.com 2012-09-09 00:37:36 CDT --- I've regressed to 1.5.2 which was the last time I updated between that and 1.5.10... So far no errors at all, plays great, so I'd guess the problem is secluded to 1.5.10/11/12. I didn't have 1.5.9 installed to try....
http://bugs.winehq.org/show_bug.cgi?id=31578
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #16 from Austin English austinenglish@gmail.com 2012-09-10 02:36:55 CDT --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=31578
--- Comment #17 from Rico kgbricola@web.de 2012-09-11 03:24:45 CDT --- This really looks like a dupe of bug 31406 . Confirmation doesn't help anyone. Please run a regression test (see http://wiki.winehq.org/RegressionTesting) to verify or deny. Also please try the patches / workarounds attached to bug 31406. If the patches / workarounds fix your problem, you may leave a comment. If you have trouble of some sort, please use the forum for your questions.
Specifically for Skyrim (see bug 31602 which is also a dupe).
http://bugs.winehq.org/show_bug.cgi?id=31578
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #18 from Alexandre Julliard julliard@winehq.org 2012-09-11 03:39:52 CDT --- Clearly duplicate.
*** This bug has been marked as a duplicate of bug 31406 ***
http://bugs.winehq.org/show_bug.cgi?id=31578
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Bruno Jesus 00cpxxx@gmail.com 2012-09-13 08:22:09 CDT --- Closing.