https://bugs.winehq.org/show_bug.cgi?id=52268
Bug ID: 52268 Summary: In some games repeated gstreamer usage leads to allocation failure segmentation fault. Product: Wine Version: 7.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: quartz Assignee: wine-bugs@winehq.org Reporter: billfleming11@gmail.com Distribution: ---
In some games videos will work fine in modern wine releases but after playing multiple videos in a single game session the following error will be observed (coming from gstreamer?) then the game will segfault:
(wine:1987648): GLib-ERROR **: 11:01:31.864: ../glib/glib/gmem.c:112: failed to allocate 3145099 bytes
In one simple example launching the Trails to Zero game (after beating it to unlock the movie viewer) you can launch straight into the movie viewer and watch a short 5 second video. Then repeat until the game crashes. In this case the video file is only about 4.6MB.
On the first play as observed in some task viewer the game's memory usage will climb to about 0.8GB. Then on second play the game's memory will climb to about 0.9GB. On the third time playing the movie the first few frames will show then the game crashes at about 1.0GB.
Added attachment from almost latest builds from about yesterday. Both normal build and tkg build since it uses different gcc/mingw. It seems that building wine using tkg's scripts with his "mostlyportable-gcc" 11.2.1 doesn't make a difference on the crash. Also tried lib32-glibc-force-mmap but that didn't make a difference either. 32-bit prefix used here. ~20GB system RAM still available.
May not be our bug but going to report since maybe other games have similar crashing issues that could prevent them from being fully playable if they crash after x number of videos. This game is only fully playable if you save, quit, and re-open the game after it plays certain cutscenes, as it might crash on the next cutscene if you don't restart the game.
Note that in the games that have these video crashes I think it has always crashed in wine so it isn't necessarily a regression. At least I'm not going to take to the time to dig up 1+ year old wine to prove its a regression unless someone tells me an old log file would be useful.
Attachment is WINEDEBUG=+quartz,+gstreamer GST_DEBUG=6
https://bugs.winehq.org/show_bug.cgi?id=52268
--- Comment #1 from Bill Fleming billfleming11@gmail.com --- After further searching may be duplicate of https://bugs.winehq.org/show_bug.cgi?id=52241
https://bugs.winehq.org/show_bug.cgi?id=52268
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- ...which attachment are you talking about ?
Also, did you notice my bug 50779 ? The hangs there sometimes come with 'can't allocate memory' messages, but with zf's help it was established the problem lies with virtual address space, not actual memory.
https://bugs.winehq.org/show_bug.cgi?id=52268
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- (In reply to Bill Fleming from comment #0)
In one simple example launching the Trails to Zero game (after beating it to unlock the movie viewer) you can launch straight into the movie viewer and watch a short 5 second video. Then repeat until the game crashes. In this case the video file is only about 4.6MB.
Is there a simpler example? Ideally something that wouldn't require beating the game first. (Also IIRC neither Trails to Azure or Trails from Zero are currently available yet.)
https://bugs.winehq.org/show_bug.cgi?id=52268
--- Comment #4 from Bill Fleming billfleming11@gmail.com --- Since I didn't add FULL repro steps to THIS bug report I will add it now. To reproduce in the Trails to Zero Geofront translation I prepare the prefix like the following:
WINEARCH=win32 WINEPREFIX="/home/bill/.local/share/wineprefixes/falcom" winecfg WINEARCH=win32 WINEPREFIX="/home/bill/.local/share/wineprefixes/falcom" winetricks -q d3dcompiler_43 d3dcompiler_47 dxvk directmusic directplay
If you add amstream into the prefix it will cause some other crash to happen so I ran the game without adding it.
Then I create a launch script like the following: export LANG=ja_JP.UTF8;export LC_ALL=ja_JP.UTF-8 WINEDLLOVERRIDES="DINPUT8.dll=n,b" WINEPREFIX="/home/bill/.local/share/wineprefixes/falcom" /home/bill/Software/wine-git/wine ED_ZERO.exe
https://bugs.winehq.org/show_bug.cgi?id=52268
--- Comment #5 from Bill Fleming billfleming11@gmail.com --- Also (as mentioned in another bug report) these games require a 32-bit prefix.
https://bugs.winehq.org/show_bug.cgi?id=52268
--- Comment #6 from Rafał Mużyło galtgendo@o2.pl --- zf: if I understand the bug author correctly, that fan translation is to be used over https://falcom.shop/products/detail/15, not the yet to be released (for PC) Kai version.
@OP: so, about that log ?