http://bugs.winehq.org/show_bug.cgi?id=24592
Summary: Utopia City crashes on startup Product: Wine Version: 1.3.3 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: curran.michaelp@gmail.com
Created an attachment (id=31056) --> (http://bugs.winehq.org/attachment.cgi?id=31056) Console log of crash
On startup, the game displays a splash screen and then crashes with an pop up titled "Unhandled std::exception" explaining that "Game initialization failed due to following: services failed to initialize".
I have attached a log of the console output, and have a +seh,+tid,+relay log as well, but it is fairly large, even when compressed.
I have tried using the native d3d dlls, it had no effect.
http://bugs.winehq.org/show_bug.cgi?id=24592
Michael Curran curran.michaelp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|x86 |x86-64
http://bugs.winehq.org/show_bug.cgi?id=24592
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |http://www.gamershell.com/d | |ownload_13008.shtml Ever Confirmed|0 |1
--- Comment #1 from Austin English austinenglish@gmail.com 2010-10-02 14:54:40 CDT --- http://www.gamershell.com/download_13008.shtml
Also affects the demo, confirming.
http://bugs.winehq.org/show_bug.cgi?id=24592
--- Comment #2 from Austin English austinenglish@gmail.com 2010-10-02 14:55:45 CDT --- Created an attachment (id=31071) --> (http://bugs.winehq.org/attachment.cgi?id=31071) WINEDEBUG=+d3d,+d3d_surface,+d3d9,+wgl
http://bugs.winehq.org/show_bug.cgi?id=24592
--- Comment #3 from Michael Curran curran.michaelp@gmail.com 2011-04-19 20:21:41 CDT --- Confirming that bug is still present in 1.3.18
http://bugs.winehq.org/show_bug.cgi?id=24592
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #4 from joaopa jeremielapuree@yahoo.fr 2011-08-02 06:23:36 CDT --- still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=24592
--- Comment #5 from Michael Curran curran.michaelp@gmail.com 2011-09-15 22:08:14 CDT --- Problem still exists in wine-1.3.28 with the a similar trace.
http://bugs.winehq.org/show_bug.cgi?id=24592
--- Comment #6 from Austin English austinenglish@gmail.com --- Still in wine-1.7.11.
https://bugs.winehq.org/show_bug.cgi?id=24592
Teras teras@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |teras@luukku.com
--- Comment #7 from Teras teras@luukku.com --- No crash but doesnt start.
wine UtopiaLauncher.exe fixme:win:EnumDisplayDevicesW ((null),0,0x33f1f8,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x303998,0x00000000), stub! err:d3d:context_create Failed to set pixel format 108 on device context 0x400039. err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat err:d3d:context_create Failed to set pixel format 100 on device context 0x450047. fixme:d3d:wined3d_get_format Can't find format WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table fixme:d3d:getDepthStencilBits Unsupported depth/stencil format WINED3DFMT_UNKNOWN. err:d3d:context_create Failed to set pixel format 84 on device context 0x10049. err:d3d:context_create Failed to set pixel format 92 on device context 0x1004b. err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat err:d3d:context_create Failed to set pixel format 92 on device context 0x1004d.
wine-1.7.36-41-ge4cb3b5
https://bugs.winehq.org/show_bug.cgi?id=24592
narri xqwerty123@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xqwerty123@luukku.com
--- Comment #8 from narri xqwerty123@luukku.com --- the same 1.7.42
https://bugs.winehq.org/show_bug.cgi?id=24592
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |msvcp
--- Comment #9 from Ken Sharp imwellcushtymelike@gmail.com --- https://bugs.wine-staging.com/show_bug.cgi?id=396
Bug is in msvcp.
https://bugs.winehq.org/show_bug.cgi?id=24592
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED URL|http://www.gamershell.com/d |http://download.fileplanet. |ownload_13008.shtml |com/ftp1/032006/utopiacityd | |emo2006.zip CC| |focht@gmx.net Component|msvcp |directx-d3d Resolution|--- |DUPLICATE Summary|Utopia City crashes on |Utopia City fails to start, |startup |reporting 'Game | |initialization failed due | |to following: services | |failed to initialize' (D3D | |device creation on desktop | |window)
--- Comment #10 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
Comment #9 refers to a Wine-Staging ticket but that is a secondary issue.
Staging has a lot of patches applied by default that fix/hide various issues still present in plain Wine.
App log file:
--- snip --- ... GIL: ================= Device Check Passed =================
...init GILHolder: OK ...init RenderController: OK ...init MetaSoup: OK ...init RExtensionCache: OK ...init SmdMeshManager: OK ...init GUIManager: OK ...init AssetManager: OK ...init MeshManager: OK ...init FontManager: OK Error! GIL: Exception: GIL: Failed to enumerate video modes! InterfaceHolder<class r::RendererImpl> deinitialization: ...release FontManager: done ...release MeshManager: done ...release AssetManager: done ...release GUIManager: done ...release SmdMeshManager: done ...release RExtensionCache: done ...release MetaSoup: done ...release RenderController: done ...release GILHolder: done ...done Error! Failed to obtain Renderer interface. Error! ...init Renderer: Failed! ...release Geometry --- snip ---
The real problem is the game creates a D3D device using the desktop window and tries to set pixel format on it - which obviously fails.
Use this patch to work around the D3D failure: https://bugs.winehq.org/attachment.cgi?id=46160 ("wined3d: Use backup swapchain DC for devices created with desktop window.")
While tracking down the issue I noticed this patch in Wine-Staging:
https://github.com/wine-compholio/wine-staging/blob/master/patches/d3d9-Desk...
--- quote --- Subject: winex11.drv: Allow changing the opengl pixel format on the desktop window.
This patch is not 100% correct because the old behavior was more similar to windows. However, Direct3D supports using the desktop window to create a context and since Wine translates Direct3D to OpenGL, using the desktop window will fail because of this limitation. Unless someone comes up with a more correct solution or finds an application that breaks because of this, it seems to be a suitable workaround as it fixes multiple applications. --- quote ---
Although it appears to fix essentially the same problem, I suggest to look at bug 18490 which is IMHO a better approach to this problem (disclaimer: I'm not a D3D expert).
I'm going to resolve this as dupe of bug 18490 to avoid recycling. Please create another bug for the MSVC++ problem.
$ sha1sum utopiacitydemo2006.zip 2d31ea856c3d932f7c37d300272e78e29c362fc3 utopiacitydemo2006.zip
$ du -sh utopiacitydemo2006.zip 240M utopiacitydemo2006.zip
$ wine --version wine-1.7.45-146-gaf55ae1
Regards
*** This bug has been marked as a duplicate of bug 18490 ***
https://bugs.winehq.org/show_bug.cgi?id=24592
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Austin English austinenglish@gmail.com --- Closing.