http://bugs.winehq.org/show_bug.cgi?id=15368
Summary: HMM IV game now crashes somewhere in DirectX since WinE 1.1.4 or so. Product: Wine Version: 1.1.5 Platform: PC-x86-64 OS/Version: other Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: t3st3r@mail.ru
Kubuntu 8.04.1 x64, Wine 1.1.5 (latest available).
Release 1.1.4 and above have some changes in DirectX which lead to crash when trying to play Heroes of Might and Magic IV. Before these changes this game basically worked but there were some issues with full screen and window menu. Now however there is just crash instead. Attempted to roll back to 1.0 - then HMMIV works again.
Backtrace attached.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #1 from t3st3r t3st3r@mail.ru 2008-09-22 06:38:20 --- Created an attachment (id=16214) --> (http://bugs.winehq.org/attachment.cgi?id=16214) Backtrace
Backtrace data
http://bugs.winehq.org/show_bug.cgi?id=15368
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #2 from Austin English austinenglish@gmail.com 2008-09-22 08:55:21 --- Please run a regression test: http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=15368
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #16214|application/octet-stream |text/plain mime type| | Attachment #16214|0005 |crash.txt filename| |
http://bugs.winehq.org/show_bug.cgi?id=15368
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Component|-unknown |directx-ddraw Summary|HMM IV game now crashes |Heroes of Might and Magic IV |somewhere in DirectX since |crashes |WinE 1.1.4 or so. |
http://bugs.winehq.org/show_bug.cgi?id=15368
drakh drakh@spamcop.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com, | |drakh@spamcop.net
--- Comment #3 from drakh drakh@spamcop.net 2008-09-30 19:34:16 --- I can confirm this crash. Ran a regression test and ended with this as the bad commit:
commit 25c07dc86ccba1dd95e2b2dd95ad7ae344dfc37d Author: Stefan Dösinger stefan@codeweavers.com Date: Mon Aug 4 14:16:49 2008 -0500
wined3d: Remove the ddraw_window device member.
CCing author.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #4 from drakh drakh@spamcop.net 2008-09-30 19:36:09 --- Created an attachment (id=16388) --> (http://bugs.winehq.org/attachment.cgi?id=16388) Backtrace with debug symbols
http://bugs.winehq.org/show_bug.cgi?id=15368
Alex Stanev alex@stanev.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Alex Stanev alex@stanev.org 2008-10-11 02:52:22 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=15368
Brice Arnould un_brice@vleu.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |un_brice@vleu.net
http://bugs.winehq.org/show_bug.cgi?id=15368
affect afffect@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |afffect@gmail.com
--- Comment #6 from affect afffect@gmail.com 2008-10-21 11:28:06 --- I can confirm this crash for 1.1.6. However, if I change DirectDrawRenderer to opengl, the crash disappears and the game runs fine.
http://bugs.winehq.org/show_bug.cgi?id=15368
Alex Stanev alex@stanev.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@stanev.org
--- Comment #7 from Alex Stanev alex@stanev.org 2008-10-28 10:23:30 --- After some digging in backtrace and suspected patch, it seems, that a call to IWineD3DDeviceImpl_SetupFullscreenWindow in dlls/wined3d/device.c is doing the bang. I will attach a fast and simple patch for that, but haven't looked deeper - it can cause another regression :) For ubuntu x64 users I compiled a patched 1.1.7 package here: http://black.stanev.org/dl/wine_1.1.7~winehq0~ubuntu~8.10-0ubuntu1_amd64.deb Of course, I *do not* recommend installing binary(and for that matter source) packages from untrusted source, so you may want to try this in VM. With this, HMM4 runs fine, as before. And last side note, the option in winecfg Graphics->Allow the window manager to control the windows have to be disabled. If not, a menu and tool(?) bar are showed at the top, which moves down the whole screen.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #8 from Alex Stanev alex@stanev.org 2008-10-28 10:28:46 --- Created an attachment (id=16947) --> (http://bugs.winehq.org/attachment.cgi?id=16947) Patch against dlls/wined3d/device.c
http://bugs.winehq.org/show_bug.cgi?id=15368
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #9 from Brice Arnould un_brice@vleu.net 2008-11-01 23:05:27 --- Alex Stanev binary works for me (tm)
http://bugs.winehq.org/show_bug.cgi?id=15368
Christopher Quackenbush chris@chr1831.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@chr1831.com
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #10 from drakh drakh@spamcop.net 2008-11-27 18:26:30 --- Problem still there in 1.1.9, but the patch fixes it.
http://bugs.winehq.org/show_bug.cgi?id=15368
Antoine Mazeas antoine@karthanis.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |antoine@karthanis.net
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #11 from t3st3r t3st3r@mail.ru 2008-12-09 16:44:46 --- As of Wine 1.1.10 problem is still here...
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #12 from Stefan Dösinger stefandoesinger@gmx.at 2008-12-09 17:24:20 --- I'm sorry, I feel kinda blind, but I don't see what the patch does. It changes some whitespaces, but appart of that?
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #13 from drakh drakh@spamcop.net 2008-12-09 18:44:07 --- Seems like it moves a closing bracket from the first line of the affected area to the final line.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #14 from Alex Stanev alex@stanev.org 2008-12-10 02:44:30 --- Exactly. It gets sure we have a proper object->win_handle before using it. Of course, this is the obvious fix, and maybe it is not the correct one. However no regressions noticed up to now.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #15 from Stefan Dösinger stefandoesinger@gmx.at 2008-12-10 17:04:59 --- Oh, I see.
I think its not right - it will probably skip the SetWindowFullscreen call in most cases.
Can you try to locate where exactly it crashes in SetWindowFullscreen?
http://bugs.winehq.org/show_bug.cgi?id=15368
Artem Semendyaev lifeissecret@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lifeissecret@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #16 from Alex Stanev alex@stanev.org 2009-01-04 06:28:42 --- It crashes when calling SetWindowPos on line 1325: http://source.winehq.org/source/dlls/wined3d/device.c#L1296 It goes through it several times. Still reproduced in 1.1.12
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #17 from Antoine Mazeas antoine@karthanis.net 2009-04-01 02:08:55 --- It is still reproduced in Wine 1.1.18
Launching in fullscreen: crashes Switching from windowed to fullscreen while running: works
http://bugs.winehq.org/show_bug.cgi?id=15368
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Mikolaj.Q@wp.pl
--- Comment #18 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-15 19:52:26 --- *** Bug 18066 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #19 from Puchkov Vladimir dduck@rambler.ru 2009-06-24 08:50:31 --- Created an attachment (id=21989) --> (http://bugs.winehq.org/attachment.cgi?id=21989) Regression test result
Hmm4 crashes. There is result of regression test.
http://bugs.winehq.org/show_bug.cgi?id=15368
Puchkov Vladimir dduck@rambler.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dduck@rambler.ru
--- Comment #20 from Puchkov Vladimir dduck@rambler.ru 2009-06-24 09:15:50 --- (In reply to comment #8)
Created an attachment (id=16947)
--> (http://bugs.winehq.org/attachment.cgi?id=16947) [details]
Patch against dlls/wined3d/device.c
Looks like it is partial solution of problem.
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #21 from Puchkov Vladimir dduck@rambler.ru 2009-07-05 01:51:53 --- Created an attachment (id=22194) --> (http://bugs.winehq.org/attachment.cgi?id=22194) Output of wine-1.1.25
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #22 from Puchkov Vladimir dduck@rambler.ru 2009-08-08 05:25:39 --- Bug also present in wine 1.1.27
http://bugs.winehq.org/show_bug.cgi?id=15368
Vladimir vladimir.elisseev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vladimir.elisseev@gmail.com
--- Comment #23 from Vladimir vladimir.elisseev@gmail.com 2009-09-29 01:11:19 --- The wine 1.1.30 and 1.1.27 crashes even with the patch. Is there a workaround? I'll try 1.1.22 later today.
http://bugs.winehq.org/show_bug.cgi?id=15368
Ani anico128@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |anico128@yahoo.com
--- Comment #24 from Ani anico128@yahoo.com 2009-10-31 02:14:44 --- Hi,
I've downloaded the beta version of Wine - 1.1.32 and it crashes the same way /I have Ubuntu 9.04/.
Only when I configured wine Graphics - disabled "Allow the window manager to control the windows" and "Allow Pixel Shader", which by default are enabled, Heroes of Might and Magic V started OK and I was able to play it :)
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #25 from Vladimir vladimir.elisseev@gmail.com 2009-10-31 03:36:49 --- (In reply to comment #24)
Hi,
I've downloaded the beta version of Wine - 1.1.32 and it crashes the same way /I have Ubuntu 9.04/.
Only when I configured wine Graphics - disabled "Allow the window manager to control the windows" and "Allow Pixel Shader", which by default are enabled, Heroes of Might and Magic V started OK and I was able to play it :)
Doesn't help in my case :( BTW, you mentioned HMM V, is it a mistake? We're talking about HMM IV here...
http://bugs.winehq.org/show_bug.cgi?id=15368
Alex Stanev alex@stanev.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #16947|0 |1 is obsolete| |
--- Comment #26 from Alex Stanev alex@stanev.org 2009-11-22 08:55:43 --- Created an attachment (id=24898) --> (http://bugs.winehq.org/attachment.cgi?id=24898) Rebase of the patch against wine 1.1.33
This is the same wrong patch, just rebased against device.c as of wine 1.1.33 Seems to work well for heroes4
http://bugs.winehq.org/show_bug.cgi?id=15368
--- Comment #27 from Alex Stanev alex@stanev.org 2010-01-09 12:40:01 --- With latest wine 1.1.36 , Heroes 4 does not crash any-more on startup, so assume this bug is fixed now. However, there is a new problem - exiting from game effectively logouts user, ate least on ubuntu 9.10/gnome. I will fill separate bug for that one.
http://bugs.winehq.org/show_bug.cgi?id=15368
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #28 from Dmitry Timoshkov dmitry@codeweavers.com 2010-01-11 12:42:50 --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=15368
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #29 from Alexandre Julliard julliard@winehq.org 2010-01-22 11:01:46 --- Closing bugs fixed in 1.1.37.
http://bugs.winehq.org/show_bug.cgi?id=15368
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-ddraw |directx-d3d