https://bugs.winehq.org/show_bug.cgi?id=43685
Bug ID: 43685 Summary: Many games fail to start or run without audio using the git version of Wine Product: Wine Version: 2.16 Hardware: x86 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: julliard@winehq.org Regression SHA1: a0f64e1231a88417fe8b6e3eb459b2c8a098aec6 Distribution: ---
I have problems running many of my games in the current git version (wine-2.16-77-g917e86dd7a).
Some of the affected games crash after start (without a usable backtrace), other games do run but audio doesn't work in these games. In the terminal I see at least 3 different errors:
1. for the games that crash there are lots of these errors before the crash: err:d3d:wined3d_debug_callback 0x1943e0: "GL_OUT_OF_MEMORY error generated. Failed to allocate CPU address space mapping for texture (consider building 64-bit app).". err:d3d:wined3d_debug_callback 0x1943e0: "GL_INVALID_VALUE error generated. Size and/or offset out of range.". (0) : fatal error C9008: out of memory - malloc failed
2. the games that run without audio are showing this in the terminal: mmap() failed: Cannot allocate memory Failed to create permanent mapping for memfd region with ID = 2216594112 Ignoring received block reference with non-registered memfd ID = 2216594112 ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
3. for some games the crash is preceded by these: err:module:load_builtin_dll failed to load .so lib for builtin L"DBGHELP.DLL": /home/gyebro/sources/wine-git/dlls/dbghelp/dbghelp.dll.so: failed to map segment from shared object err:module:load_builtin_dll failed to load .so lib for builtin L"DBGHELP.DLL": /home/gyebro/sources/wine-git/dlls/dbghelp/dbghelp.dll.so: failed to map segment from shared object wine: Unhandled page fault on read access to 0x00000000 at address 0x7dcaadec (thread 0045), starting debugger...
The problem doesn't occur before
commit a0f64e1231a88417fe8b6e3eb459b2c8a098aec6 Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 6 09:58:18 2017 +0200
ntdll: Allocate views out of a memory block instead of using a heap.
Many games built on the Unreal Engine 3 will fail due to this commit. One example is Alien Breed: Impact. This game has a demo on Steam, but I couldn't try if the demo has the same problem as the full version. http://store.steampowered.com/app/22610/Alien_Breed_Impact/
wine-2.16-77-g917e86dd7a (32-bit) Arch Linux 64-bit Nvidia binary driver 384.69
I tried these games with nouveau/mesa-17.1.8 too, with similar results. Instead of showing those ""GL_OUT_OF_MEMORY error generated..." errors in the terminal, many games fail with such errors: X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 189 Current serial number in output stream: 193
https://bugs.winehq.org/show_bug.cgi?id=43685
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #1 from Andrey Gusev andrey.goosev@gmail.com --- Unity based Lost Horizon 2 is also affected.
https://bugs.winehq.org/show_bug.cgi?id=43685
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Many games fail to start or |Many games fail to start, |run without audio using the |or run without audio |git version of Wine | Fixed by SHA1| |3f0362ec3c38d4723c7a8b51eb0 | |cb79f437f1093 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Fixed by 3f0362ec3c38d4723c7a8b51eb0cb79f437f1093.
https://bugs.winehq.org/show_bug.cgi?id=43685
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.17.
https://bugs.winehq.org/show_bug.cgi?id=43685
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shtetldik@gmail.com
--- Comment #4 from Shmerl shtetldik@gmail.com --- Not sure if I should open a new bug, or may be you can re-open this one since this regressed back.
When running Dragon Age: Origins (GOG release), it starts without sound, and I get the error that was mentioned in this bug report:
ERROR: Could Not Get Primary Adapter Handle mmap() failed: Cannot allocate memory Failed to create permanent mapping for memfd region with ID = 2628504714 Ignoring received block reference with non-registered memfd ID = 2628504714 mmap() failed: Cannot allocate memory Failed to create permanent mapping for memfd region with ID = 1541480669 Ignoring received block reference with non-registered memfd ID = 1541480669 ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error
mmap() failed: Cannot allocate memory Failed to create permanent mapping for memfd region with ID = 728315156 Ignoring received block reference with non-registered memfd ID = 728315156 ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
Wine: 4.15 (WineHQ build). OS: Debian testing Linux CPU: Ryzen 9 3900X GPU: AMD Sapphire Pulse RX 5700 XT (Mesa 19.2.0-rc3).
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #5 from Shmerl shtetldik@gmail.com --- Not sure if related, another error that I see in Wine output:
001b:err:plugplay:load_function_driver AddDevice failed for driver L"winebus", status 0xc0000002.
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #6 from Shmerl shtetldik@gmail.com --- Just tried it with faudio 19.10 - same error, i.e.:
mmap() failed: Cannot allocate memory ... ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #7 from Shmerl shtetldik@gmail.com --- Opened this just in case: https://github.com/FNA-XNA/FAudio/issues/160
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #8 from Shmerl shtetldik@gmail.com --- I was able to work around it, by using large address aware patch for the game executable: https://ntcore.com/?page_id=371
It's really something that should be handled by Wine itself.
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #9 from Shmerl shtetldik@gmail.com --- Actually, to avoid the blob, you can use an open patcher: https://github.com/randomstuff/pe-set-laa
https://bugs.winehq.org/show_bug.cgi?id=43685
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #10 from Zebediah Figura z.figura12@gmail.com --- The problem that is being described in comments 4 and onward is a general problem, which has no single general cause nor a single general solution. It doesn't really make sense to file a bug for it, perhaps not even in the specific case, since that bug can never be closed.
At best one may offer workarounds, such as not using PulseAudio, or manually setting the IMAGE_FILE_LARGE_ADDRESS_AWARE flag where possible.
(In reply to Shmerl from comment #8)
It's really something that should be handled by Wine itself.
If you mean that Wine should always act as if IMAGE_FILE_LARGE_ADDRESS_AWARE is set, no, it's not. There's a reason that flag exists, and it's that some applications are specifically *not* large address aware, and make assumptions about pointers that are only valid if the address space is limited to the lower 2 GB.
https://bugs.winehq.org/show_bug.cgi?id=43685
--- Comment #11 from Shmerl shtetldik@gmail.com --- By handled, I mean able to control it by some Wine setting (environment variable or something else), that user can enable explicitly, rather than requiring to patch the binary, like I explained in bug 47883.
https://bugs.winehq.org/show_bug.cgi?id=43685
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com