https://bugs.winehq.org/show_bug.cgi?id=44211
Bug ID: 44211 Summary: Wine (2.21) doesn't work anymore on any game on FreeBSD Product: Wine Version: 2.21 Hardware: x86-64 OS: FreeBSD Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: adrien_fernandes2@hotmail.com
Created attachment 59990 --> https://bugs.winehq.org/attachment.cgi?id=59990 Output of AC with csmt
FreeBSD/amd64 11.1 (the release version in december 2017) Wine staging 2.21 32 bits (built from a 32 bits chroot) nVidia 765m (nvidia-driver-384.59) 12 GB RAM (even if 32 bits applications take less, you have the information)
from my 32 bits chroot, I installed the nVidia driver
libGL.so -> libGL-NVIDIA.so.1 libGL.so.1 -> libGL-NVIDIA.so.1 libGLESv2.so -> libGLESv2-NVIDIA.so.2 libGLESv2.so.2 -> libGLESv2-NVIDIA.so.2
It always worked that way four months ago (last time I was on my computer)
So actually I tried Streets of Rogue and Assassin's Creed. I copy the output of AC so you can see what the terminal says me. I set CSMT on one try and disabled it on the second. (Assassin's Creed always worked in the past, that's why I give you its output)
https://bugs.winehq.org/show_bug.cgi?id=44211
--- Comment #1 from Adrien Fernandes adrien_fernandes2@hotmail.com --- Created attachment 59991 --> https://bugs.winehq.org/attachment.cgi?id=59991 Output of AC without csmt
https://bugs.winehq.org/show_bug.cgi?id=44211
Adrien Fernandes adrien_fernandes2@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine (2.21) doesn't work |Wine (2.21) doesn't work |anymore on any game on |anymore on some games with |FreeBSD |FreeBSD (Assassin's Creed)
https://bugs.winehq.org/show_bug.cgi?id=44211
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE Component|-unknown |directx-d3d
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Both logs have the same message surface_convert_format Cannot find a conversion function from format WINED3DFMT_B8G8R8X8_UNORM to WINED3DFMT_L8_UNORM.
*** This bug has been marked as a duplicate of bug 44888 ***
https://bugs.winehq.org/show_bug.cgi?id=44211
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Status|RESOLVED |CLOSED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate
https://bugs.winehq.org/show_bug.cgi?id=44211
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|CLOSED |REOPENED Resolution|DUPLICATE |---
--- Comment #4 from Matteo Bruni matteo.mystral@gmail.com --- Well, no, I think the OP's issue is related to:
err:d3d:wined3d_debug_callback 0x3848fb8: "GL_OUT_OF_MEMORY error generated. Failed to allocate memory for texture."
and all the fallout that follows. If I have to guess it's probably due to the GL driver using more virtual memory compared to older versions.
Not sure there is much you can do. Ideally you'd run the 64-bit game executable if it exists. Otherwise you could try to enable the LARGE_ADDRESS_AWARE bit on the 32-bit game executable (if it's not already set) which would potentially make more virtual memory available to the process.
https://bugs.winehq.org/show_bug.cgi?id=44211
Alex S iwtcex@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |iwtcex@gmail.com
--- Comment #5 from Alex S iwtcex@gmail.com --- Looks rather similar to bug 44246.
https://bugs.winehq.org/show_bug.cgi?id=44211
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- Still a bug in current wine-5.5?
https://bugs.winehq.org/show_bug.cgi?id=44211
--- Comment #7 from Alex S iwtcex@gmail.com --- (In reply to joaopa from comment #6)
Still a bug in current wine-5.5?
Which commit improves Wine's memory allocator?
https://bugs.winehq.org/show_bug.cgi?id=44211
--- Comment #8 from Adrien Fernandes adrien_fernandes2@hotmail.com --- Created attachment 67530 --> https://bugs.winehq.org/attachment.cgi?id=67530 patch for libs/wine/mmap.c (workaround)
Actually, I apply a workaround I found 6 months ago. It can not be committed as-is but it made me finish Call of Duty games, Far Cry 2, Assassin's Creed and other big games that were crashing back in the days.
I attached the patch so you can have a look, what the patch does is :
- char *user_space_limit = (char *)0x7ffe0000; + char *user_space_limit = (char *)0xbffe0000;
https://bugs.winehq.org/show_bug.cgi?id=44211
--- Comment #9 from Adrien Fernandes adrien_fernandes2@hotmail.com --- I'm back to say that this patch above has been working for a long time until Wine 5.9 came out.
Since the 5.9 was released, applying this patch resulted in Wine crashing almost immediatly when trying to run a game, always with the same memory allocation error.
NOT applying the patch results in Wine behaving just like when I created this thread. It runs some old games, 2D games, the less beefy ones but as soon as you try to run a bigger game, it, once again, results in a crash with a memory allocation failed problem.
Bigger games being Assassin's Creed 1 or Skyrim (the original one, not the Special Edition)
5 years now since I've created this thread and this has never been fixed because it is still an issue in Wine 8.0
https://bugs.winehq.org/show_bug.cgi?id=44211
Adrien Fernandes adrien_fernandes2@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrien_fernandes2@hotmail.c | |om
https://bugs.winehq.org/show_bug.cgi?id=44211
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch