https://bugs.winehq.org/show_bug.cgi?id=54405
Bug ID: 54405 Summary: FAVORITE games crash on New Game (Hoshizora no Memoria, Irotoridori no Sekai, AstralAir no Shiroki Towa, Sakura Moyu...) Product: Wine Version: 8.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: nekotekina@gmail.com Distribution: ---
Hello,
Multiple visual novels from FAVORITE crash at selecting New Game after startup. List of affected games (non-exhaustive, using the same engine):
星空のメモリア (Hoshizora no Memoria) -Wish upon a Shooting Star- 星空のメモリア (Hoshizora no Memoria) -Eternal Heart- いろとりどりのセカイ (Irotoridori no Sekai) いろとりどりのヒカリ (Irotoridori no Hikari) アストラエアの白き永遠 (AstralAir no Shiroki Towa) 紅い瞳に映るセカイ (Akai Hitomi ni Utsuru Sekai) アストラエアの白き永遠Finale-白き星の夢- (AstralAir no Shiroki Towa Finale -Shiroki Hoshi no Yume-) さくら、もゆ。(Sakura, Moyu.) -as the Night's, Reincarnation-)
Workaround: Go to settings, switch to font settings tab, then go back to main menu. This is far from obvious, as it looks like the game doesn't work at all.
Technical details: The game engine crashes calling __invalid_parameter_noinfo after failing to check results of certain call to GetGlyphOutlineA in its text rendering routine. More precisely, the engine seems bugged. First thing it does after starting New Game is trying to "render" Japanese space character U+3000. GetGlyphOutlineA returns zero for it, this triggers the code path calling GetLastError. Last error is sticky and there is no SetLastError anywhere before it. Since GetGlyphOutlineA doesn't set the last error in Wine (at least it's not the case here), GetLastError checks some "ancient" stuck value. The value is also strange: 0xffffffff, which isn't usually seen as an error code.
I tried to figure out where 0xffffffff comes from. It's set in win32u:wait_message. X11DRV_MsgWaitForMultipleObjectsEx returns -1 because the count arg is 0, after process_events succeeds: ret is set to count-1. I don't understand where the bug actually is, it's pretty confusing.
https://bugs.winehq.org/show_bug.cgi?id=54405
--- Comment #1 from Rafał Mużyło galtgendo@o2.pl --- Clarify:
- are you running those games in the Japanese locale ? (going by your description, you likely should be)
- sometimes besides Japanese locale Font/Replacement keys are necessary; sometimes it's bad enough that you need the actual font files (though this doesn't seem to be the later case)
- which font is the game looking up ?
- is there anything interesting in the standard debug output and/or 'font' debug channel ?
https://bugs.winehq.org/show_bug.cgi?id=54405
Ivan nekotekina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winex11.drv |win32u
--- Comment #2 from Ivan nekotekina@gmail.com --- - Yes, I run them under Japanese locale with LANG=ja_JP.UTF-8 - I think I installed cjkfonts and fakejapanese with winetricks. - The game looks for MS Gothic by default under its Japanese name, but the font can be configured in settings and this doesn't seem to fix the issue. - Standard output is almost empty, except few "standard" messages which appear everywhere. Nothing interesting in font channel either, it seems to repeat the same routine.
https://bugs.winehq.org/show_bug.cgi?id=54405
Ivan nekotekina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://web.archive.org/web | |/20200110095131/http://suez | |ou.dyndns.org/dl2018/favori | |te/sakuramoyu/Sakuramoyu_tr | |ial_v101.zip
https://bugs.winehq.org/show_bug.cgi?id=54405
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
https://bugs.winehq.org/show_bug.cgi?id=54405
--- Comment #3 from Ivan nekotekina@gmail.com --- Should be fixed in 8.3
https://bugs.winehq.org/show_bug.cgi?id=54405
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #4 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-9.0-RC5?