https://bugs.winehq.org/show_bug.cgi?id=37165
Bug ID: 37165 Summary: Sacred 2 Gold (v2.65.1) fails to start correctly, displays only a black screen in virtual desktop mode Product: Wine Version: 1.7.21 Hardware: x86 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: hverbeet@gmail.com Regression SHA1: d50350886a3e15da29f29f7b3fb539e19a80d6d2
Created attachment 49398 --> https://bugs.winehq.org/attachment.cgi?id=49398 terminal output
I have this problem with Sacred 2: Ice & Blood (the Gold version), but can't reproduce it with the official demo of Sacred2: Fallen Angel v1.0.0.
When I start the game in virtual desktop mode the loading/initialization screen is displayed correctly but the game is minimized to icon size when the first intro video is playing. If I double click on the Sacred2.exe icon then the game is restored to fullscreen but the screen remains black.
In fullscreen mode the game is minimized to the upper panel in XFCE when the intro video is playing, clicking on it restores it to fullscreen.
Both virtual desktop mode and Wine's fullscreen mode behaved differently in previous Wine versions, and reverting the following commit on 1.7.25 fixes the issue for me:
d50350886a3e15da29f29f7b3fb539e19a80d6d2 is the first bad commit commit d50350886a3e15da29f29f7b3fb539e19a80d6d2 Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Jun 27 08:27:00 2014 +0200
d3d9: Check the device status in present calls.
:040000 040000 567d36430750186faa6eb358b2b9a5a2b0e4b01f 9d09487c930faa288f6069918a0e9f5683534781 M dlls
I tested this bug under XFCE 4.10, Gnome 3 and Openbox window managers. The problem doesn't exist if I start the game in windowed mode. The problem occurs if the size of the VD is the same as the resolution the game is running at. If I set up a VD sized 1024x768 but let the game run @1440x900 the problem doesn't happen: the loading screen is displyed in 1024x768 then the game switches to 1440x900 (without the aforementioned black screen issue).
Please let me know if you need a debug log or further tests.
Wine 1.7.25 Fedora 20 X.Org X Server 1.14.4 XFCE 4.10 Nvidia binary drivers 340.32
https://bugs.winehq.org/show_bug.cgi?id=37165
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- Still present in wine-1.7.40-79-gc6b4b4b
Workaround: start the game in a virtual desktop which has smaller resolution than my native screen resolution.
https://bugs.winehq.org/show_bug.cgi?id=37165
--- Comment #2 from Henri Verbeet hverbeet@gmail.com --- Does d50350886a3e15da29f29f7b3fb539e19a80d6d2 cause the minimization as well, or only the black screen after restoring the window? (And if it does, did the game properly resume drawing after minimzation/focus loss before that commit?)
https://bugs.winehq.org/show_bug.cgi?id=37165
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Henri Verbeet from comment #2)
Does d50350886a3e15da29f29f7b3fb539e19a80d6d2 cause the minimization as well, or only the black screen after restoring the window? (And if it does, did the game properly resume drawing after minimzation/focus loss before that commit?)
Both issues are introduced by d50350886a3e15da29f29f7b3fb539e19a80d6d2. The game starts and runs properly with the previous commit. Alt-tabbing works too (both in fullscreen and virtual desktop mode) with the previous patch.
The patch from bug #38064 (attachment #50728) fixes both the minimize and the black screen issues for me (however the game crashes after alt-tabbing when in fullscreen mode with that patch applied). Don't know whether the crash is due to the patch or some other changes in Wine. I tried the patch on current git.
https://bugs.winehq.org/show_bug.cgi?id=37165
--- Comment #4 from Henri Verbeet hverbeet@gmail.com --- Makes sense.
https://bugs.winehq.org/show_bug.cgi?id=37165
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ccf430eb52fb9a3a7c8bfdcbe78 | |05025fb6f5dec Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Béla Gyebrószki gyebro69@gmail.com --- The game starts properly in wine-1.7.54-59-g8f44307, thanks to http://source.winehq.org/git/wine.git/commit/ccf430eb52fb9a3a7c8bfdcbe780502...
Fedora 23 XFCE 4.12 X Server 1.18.0 OpenGL vendor string: nouveau OpenGL renderer string: Gallium 0.4 on NV92 OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.1.0-devel
https://bugs.winehq.org/show_bug.cgi?id=37165
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.55.