[Bug 44260] New: Dungeon Keeper 2 crashs or works very slow
https://bugs.winehq.org/show_bug.cgi?id=44260 Bug ID: 44260 Summary: Dungeon Keeper 2 crashs or works very slow Product: Wine Version: 3.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs(a)winehq.org Reporter: rtentser(a)yandex.ru Distribution: --- Created attachment 60067 --> https://bugs.winehq.org/attachment.cgi?id=60067 3.0-rc1_DKII-DX.EXE When i try to start the game with DKII-DX.EXE it starts but very slow. When i use DKII.EXE it crashs. Same with DKII_SOFT.EXE. I also tried the game with 2.0.3. DKII-DX.EXE works the same way. DKII.EXE starts and works a little faster (i think so) but too slow still. DKII-SOFT.EXE starts and works fine. In 1.8.7 DKII-DX.EXE crashs when loading after movies. I use the GOG version of the game. And i use old NVIDIA card (GeForce2 MX/MX 400), so that can be a problem. Or not. I'm not sure. The attachment is the output of 3.0-rc1 with DKII-DX.EXE. I also check if my issue is duplicate of https://bugs.winehq.org/show_bug.cgi?id=22730. No, it's not: i have a low fps not only in the main menu, but in the game too. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 --- Comment #1 from rtentser(a)yandex.ru --- Created attachment 60068 --> https://bugs.winehq.org/attachment.cgi?id=60068 3.0-rc1_DKII.EXE -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 rtentser(a)yandex.ru changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rtentser(a)yandex.ru -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 Gabriel Majeri <gabriel.majeri6(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gabriel.majeri6(a)gmail.com --- Comment #2 from Gabriel Majeri <gabriel.majeri6(a)gmail.com> --- I have found the reason for this bug. Using the `perf` tool and building `wined3d.dll` with debug symbols, I've found out that the app spent most of its time in CSMT code:
perf report
33,88% DKII-DX.exe wined3d.dll.so [.] wined3d_cs_mt_finish 21,72% DKII-DX.exe wined3d.dll.so [.] wined3d_cs_queue_is_empty 9,77% DKII-DX.exe wined3d.dll.so [.] wined3d_cs_run Based on https://wiki.winehq.org/Performance, it seemed to be an issue with CSMT. Indeed, after disabling CSMT, game works perfectly, performance is at least as good as on Windows. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 --- Comment #3 from rtentser(a)yandex.ru --- I set HKEY_CURRENT_USER -> Software > Wine > Direct3D > csmt to 0 with regedit (wine 3.0.1). It didn't help. I think the trouble is in some Direct3D features that not implemented with OpenGL 1.2. There is some interesting output with wine 2.0.5 (default settings). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 --- Comment #4 from rtentser(a)yandex.ru --- Created attachment 62571 --> https://bugs.winehq.org/attachment.cgi?id=62571 DKII-DX.EXE (wine 2.0.5) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=47380 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 Roland Häder <roland(a)mxchange.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roland(a)mxchange.org --- Comment #5 from Roland Häder <roland(a)mxchange.org> --- The lowyness is still there in latest 5.1.0 (master). See ticket #14340 . -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 Tom Englund <tomenglund26(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomenglund26(a)gmail.com --- Comment #6 from Tom Englund <tomenglund26(a)gmail.com> --- still happends with wine-staging 5.10 on intel gpu with mesa 20.1.1 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 Trass3r <trass3r(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trass3r(a)gmail.com --- Comment #7 from Trass3r <trass3r(a)gmail.com> --- Created attachment 72579 --> https://bugs.winehq.org/attachment.cgi?id=72579 crash logs With HKEY_CURRENT_USER\Software\Wine\Direct3D\csmt = 0 it is able to start up and render just fine but as soon as I move the mouse it crashes in
wined3d.dll!raw_blitter_blit() Line 6554 C++ wined3d.dll!texture2d_blt() Line 1660 C++ wined3d.dll!wined3d_cs_exec_blt_sub_resource() Line 2610 C++ wined3d.dll!wined3d_cs_st_submit() Line 2973 C++ wined3d.dll!wined3d_device_context_emit_blt_sub_resource() Line 2649 wined3d.dll!wined3d_device_context_blt() Line 4199 C++ ddraw.dll!ddraw_surface7_BltFast() Line 4419 C++ ddraw.dll!ddraw_surface4_BltFast() Line 4443 C++
-- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 --- Comment #8 from Trass3r <trass3r(a)gmail.com> --- Excerpt: 3de8:trace:d3d:wined3d_device_context_blt context 08C7D020, dst_texture 00B11400, dst_sub_resource_idx 0, dst_rect (0,0)-(205,119), src_texture 08B87450, src_sub_resource_idx 0, src_rect (674,474)-(879,593), flags 0x41000000, fx 00000000, filter WINED3D_TEXF_POINT. 3de8:trace:d3d:wined3d_texture_get_sub_resource_desc texture 00B11400, sub_resource_idx 0, desc 03C6FBBC. 3de8:trace:d3d:wined3d_texture_get_sub_resource_desc texture 08B87450, sub_resource_idx 0, desc 03C6FBBC. 3de8:trace:d3d:texture2d_blt dst_texture 00B11400, dst_sub_resource_idx 0, dst_box (0, 0, 0)-(205, 119, 1), src_texture 08B87450, src_sub_resource_idx 0, src_box (674, 474, 0)-(879, 593, 1), flags 0x41000000, fx 088770F0, filter WINED3D_TEXF_POINT. 3de8:trace:d3d:texture2d_blt Usage is 0. 3de8:trace:d3d:texture2d_blt fx 0. 3de8:trace:d3d:texture2d_blt dst_color_key {0x00000000, 0x00000000}. 3de8:trace:d3d:texture2d_blt src_color_key {0x00000000, 0x00000000}. 3de8:trace:d3d:texture2d_blt resolve_format_id WINED3DFMT_UNKNOWN. 3de8:trace:d3d:texture2d_blt Colour blit. 3de8:trace:d3d:wined3d_context_gl_acquire device 03B4C0A0, texture 00B11400, sub_resource_idx 0. 3de8:trace:d3d:wined3d_context_gl_acquire Rendering offscreen. 3de8:trace:d3d:wined3d_swapchain_gl_create_context Creating a new context for swapchain 03AC9410, thread 15848. 3de8:trace:d3d:wined3d_context_gl_init context_gl 1432D888, swapchain 03AC9410. 3de8:trace:d3d:context_choose_pixel_format device 03B4C0A0, dc 4B011A79, color_format WINED3DFMT_B8G8R8A8_UNORM, ds_format WINED3DFMT_UNKNOWN, aux_buffers 0, swap_effect_copy 0. 3de8:trace:d3d:context_choose_pixel_format Found iPixelFormat=2 for ColorFormat=WINED3DFMT_B8G8R8A8_UNORM, DepthStencilFormat=WINED3DFMT_UNKNOWN. 3de8:trace:d3d:wined3d_context_gl_enter Entering context 1432D888, level 1. 3de8:warn:d3d:context_create_wgl_attribs Failed to create a WGL context with wglCreateContextAttribsARB, last error 0xaa. 3de8:err:d3d:wined3d_context_gl_create_wgl_ctx Failed to create a WGL context. 3de8:trace:d3d:wined3d_context_gl_release Releasing context 1432D888, level 1. 3de8:warn:d3d:wined3d_context_gl_release Context 1432D888 is not the current context. 3de8:warn:d3d:wined3d_swapchain_gl_create_context Failed to initialise context. Exception thrown: read access violation. **wined3d_context_gl**(...) returned nullptr. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 --- Comment #9 from Trass3r <trass3r(a)gmail.com> --- Which might be a WGL specific problem with context sharing: https://bugzilla.gnome.org/show_bug.cgi?id=792407#c2 https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/blob/master/ext/qt... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=44260 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #10 from joaopa <jeremielapuree(a)yahoo.fr> --- Tested in a fresh wine prefix. Looks like everything is fine for me with wine-9.7 Can anyone confirm? name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.4 client glx vendor string: Mesa Project and SGI GLX version: 1.4 Extended renderer info (GLX_MESA_query_renderer): Vendor: AMD (0x1002) Device: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.6, DRM 3.57, 6.8.0-31-generic) (0x15d8) Version: 24.0.5 Accelerated: yes Video memory: 2048MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 1171 MB, largest block: 1171 MB VBO free aux. memory - total: 2759 MB, largest block: 2759 MB Texture free memory - total: 1171 MB, largest block: 1171 MB Texture free aux. memory - total: 2759 MB, largest block: 2759 MB Renderbuffer free memory - total: 1171 MB, largest block: 1171 MB Renderbuffer free aux. memory - total: 2759 MB, largest block: 2759 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 2048 MB Total available memory: 4972 MB Currently available dedicated video memory: 1171 MB OpenGL vendor string: AMD OpenGL renderer string: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.6, DRM 3.57, 6.8.0-31-generic) OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.5-1ubuntu1 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla