[Bug 53559] New: Cult of the Lamb leaks memory due to mfplat unsupported service
https://bugs.winehq.org/show_bug.cgi?id=53559 Bug ID: 53559 Summary: Cult of the Lamb leaks memory due to mfplat unsupported service Product: Wine Version: 7.15 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mfplat Assignee: wine-bugs(a)winehq.org Reporter: joseskvolpe(a)gmail.com Distribution: --- Created attachment 72923 --> https://bugs.winehq.org/attachment.cgi?id=72923 Log output After the developer opening, the game tries to reproduce another video. You can hear the sound playing, but the video fails to load. The game seems to try to load the video again and finds itself in a failing loop, leaking memory. While trying to reproduce the intro video, the game spams to the log:
fixme:mfplat:media_source_get_service_GetService Unsupported service {dd0ac3d8-40e3-4128-ac48-c0add067b714}.
This issue (memory leak) doesn't occurs on Proton, but the intro video still can't be reproduced. Procedure: 1 - Open up the game 2 - Wait until the first intro (Massive Monster opening) ends 3 - Watch for the system monitor that RAM is leaking. Kill the application or else it'll freeze your system Game is paid and can be downloaded from Steam or GOG. Their official page: https://www.cultofthelamb.com/ -- 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=53559 Josesk Volpe <joseskvolpe(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Other -- 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=53559 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Cult of the Lamb leaks |Cult of the Lamb has issues |memory due to mfplat |with playing videos |unsupported service | -- 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=53559 --- Comment #1 from Nikolay Sivov <bunglehead(a)gmail.com> --- Please attach full +mfplat log. -- 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=53559 --- Comment #2 from Josesk Volpe <joseskvolpe(a)gmail.com> --- Created attachment 72924 --> https://bugs.winehq.org/attachment.cgi?id=72924 +mfplat log Attaching -- 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=53559 Etaash Mathamsetty <etaash.mathamsetty(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |etaash.mathamsetty(a)gmail.co | |m --- Comment #3 from Etaash Mathamsetty <etaash.mathamsetty(a)gmail.com> --- {dd0ac3d8-40e3-4128-ac48-c0add067b714} = MF_SCRUBBING_SERVICE https://docs.microsoft.com/en-us/windows/win32/api/mfidl/nn-mfidl-imfseekinf... -- 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=53559 --- Comment #4 from Nikolay Sivov <bunglehead(a)gmail.com> --- (In reply to Josesk Volpe from comment #2)
Created attachment 72924 [details] +mfplat log
Attaching
I think I've seen it before. I think what happens is that some failure makes the game recreate media source over and over again. That can potentially create too many threads, run out of rtworkq user queues limit, or maybe leak memory 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=53559 mail(a)eduard-marbach.de <mail(a)eduard-marbach.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mail(a)eduard-marbach.de -- 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=53559 --- Comment #5 from mail(a)eduard-marbach.de <mail(a)eduard-marbach.de> --- Seeing the same error with wine 7.16. -- 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=53559 --- Comment #6 from mail(a)eduard-marbach.de <mail(a)eduard-marbach.de> --- Created attachment 73053 --> https://bugs.winehq.org/attachment.cgi?id=73053 Crash during first video playback -- 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=53559 Maxime <berillions(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |berillions(a)gmail.com --- Comment #7 from Maxime <berillions(a)gmail.com> --- Created attachment 74184 --> https://bugs.winehq.org/attachment.cgi?id=74184 +MFPlat log for GMoA Same issue with "Greak : Memories of Azur" from GoG. With Wine-8.3 pure & clean wineprefix = black screen during videos, no subtitles appears. https://ibb.co/yFwKKTt Add the game as no-steam game and use Proton-7 = Black screen + subtitle and HUD https://ibb.co/2Y73j4F Add the game as no-steam game and use Proton-Exp = Color screen + subtitle and HUD https://ibb.co/3dddtnV -- 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=53559 --- Comment #8 from Rafał Mużyło <galtgendo(a)o2.pl> --- Did anyone retest the original issue with something recent (9.0+) ? It's likely that at least some progress has been made... -- 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=53559 vv221 <accounts.winehq.org(a)vv221.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |accounts.winehq.org(a)vv221.f | |r --- Comment #9 from vv221 <accounts.winehq.org(a)vv221.fr> --- This is most probably a duplicate of the following bug: https://bugs.winehq.org/show_bug.cgi?id=50277 — Haven intro video does not play -- 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.
http://bugs.winehq.org/show_bug.cgi?id=53559 Stian Low <wineryyyyy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wineryyyyy@gmail.com --- Comment #10 from Stian Low <wineryyyyy@gmail.com> --- Created attachment 81535 --> http://bugs.winehq.org/attachment.cgi?id=81535 Screenshots Cult of Lamb including intro videos playing for wine-11.13-d30dcd75bc9 and Greak videos fixed by MR-11398. Screenshots Cult of Lamb including intro videos playing for wine-11.13-d30dcd75bc9 and Greak videos fixed by MR-11398. (In reply to Antoine Le Gonidec from comment #9)
This is most probably a duplicate of the following bug: https://bugs.winehq.org/show_bug.cgi?id=50277 — Haven intro video does not play
Videos play for Cult of Lamb (GOG-90323) despite same logs as Haven which typically indicates the cause of the video bug,: 0024:fixme:dxgi:DXGID3D10CreateDevice Ignoring flags 0x820. 01ec:fixme:dxgi:dxgi_resource_GetSharedHandle iface 00007FDE80DFC848, shared_handle 00007FDF0015DD40 stub! However GetSharedHandle logs are not spammed as is the case for Haven video bugs. Unclear but these logs may indicate that Cult of Lamb actually attempts to play video similar to Haven but may trigger UnityPlayer.dll fallback software video decoding without needing MR-11398 to force failing for 0x820 D3D11_CREATE_DEVICE_VIDEO_SUPPORT: - https://gitlab.winehq.org/wine/wine/-/merge_requests/11398#note_146227 Maybe UnityPlayer.dll version diffs cause fallback for dxgi_resource_GetSharedHandle instead of DXGID3D10CreateDevice as for Haven video bug used by MR-11398. I'll debug why Cult of Lamb videos play despite similar logs as Haven to determine if Haven video bugs may be fixed in a similar manner without MR-11398 to force DXGID3D10CreateDevice to fail for UnityPlayer.dll software video decoding as workaround via `WINE_D3D_CONFIG=no_create_flags=0x800` Support for GetSharedHandle/OpenSharedResource will provide a solution to override UnityPlayer.dll softare video decoding fallbacks as workarounds which should enable Cult of Lamb to play videos via those methods vs however it handles currently without them: - https://gitlab.winehq.org/wine/wine/-/merge_requests/11404#note_145814 (In reply to Maxime from comment #7)
Same issue with "Greak : Memories of Azur" from GoG.
Greak (GOG-85497) does seem to be a duplicate of Haven bug because videos still play with blackscreen fixed by MR-11398. Also, both games render consistently, despite both games logging swap effect 0x3 which typically causes Unity games to render darker for renderer=vulkan vs gl for default `winecfg /v wine10` and fixed by win8 and win10 fixed by MR-10567: 0024:fixme:d3d:wined3d_swapchain_init Unimplemented swap effect 0x3. These inconsistencies may also be caused by Unity diff quirks. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=53559 --- Comment #11 from Stian Low <wineryyyyy@gmail.com> --- (In reply to Stian Low from comment #10)
I'll debug why Cult of Lamb videos play despite similar logs as Haven to determine if Haven video bugs may be fixed in a similar manner without MR-11398 to force DXGID3D10CreateDevice to fail for UnityPlayer.dll software video decoding as workaround via `WINE_D3D_CONFIG=no_create_flags=0x800`
My guess is UnityPlayer.dll 2022 has a more sophisticated way of falling back to software video decoding vs 2019 which may require MR-11398 to trigger it. Maybe 2022 fails for GetSharedHandled vs 2019 which needs to fail for DXGID3D10CreateDevice D3D11_CREATE_DEVICE_VIDEO_SUPPORT instead. Cult of Lamb released 2022 - UnityPlayer.dll 2022.3.62 Greak released 2021 - UnityPlayer.dll 2019.4.14 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=53559 --- Comment #12 from Stian Low <wineryyyyy@gmail.com> --- (In reply to Stian Low from comment #11)
My guess is UnityPlayer.dll 2022 has a more sophisticated way of falling back to software video decoding vs 2019 which may require MR-11398 to trigger it.
Maybe some combo of UnityPlayer.dll args trigger software video decoding for 2019 but so far MR-11398 has been only way: https://docs.unity3d.com/2022.3/Documentation/Manual/PlayerCommandLineArgume... https://docs.unity3d.com/2019.4/Documentation/Manual/PlayerCommandLineArgume... All arg combos tested still spam these logs which do not happen for 2022 nor 2019 via MR-11398 which fixes videos: 0024:fixme:dxgi:dxgi_resource_GetSharedHandle iface 00007F3D8714C8E8, shared_handle 00007FFFFE1FF300 stub! -- 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)
-
WineHQ Bugzilla -
WineHQ Bugzilla