https://bugs.winehq.org/show_bug.cgi?id=43527
Bug ID: 43527 Summary: Magic Online (Magic The Gathering: Online) Crashes when displaying token cards Product: Wine Version: 2.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: theli.ua@gmail.com Distribution: ---
Created attachment 58923 --> https://bugs.winehq.org/attachment.cgi?id=58923 ingame .net stack trace
Happens when it tries to display/load token card.
I can easily reproduce it but ingame crash log (attached) does not point to any wine component, so not sure how to debug. Nothing peculiar in wine's output either.
https://bugs.winehq.org/show_bug.cgi?id=43527
--- Comment #1 from Anton Romanov theli.ua@gmail.com --- So, the game crashes when converting double.NaN to string since the string is empty and game does:
bool isCropIfTall = str != null && (int) str[str.Length - 1] == 63;
Now, mscorlib uses msvcr120_clro400.dll _ecvt to do the convertion. I am not sure where in wine that lands as that dll does conversion by itself?
https://bugs.winehq.org/show_bug.cgi?id=43527
--- Comment #2 from Anton Romanov theli.ua@gmail.com --- So this is since a default NaN symbol is undefined/empty . when lib calls GetLocaleInfo(LOCALE_SNAN (0x69)) wine will just return empty string while on Windows by default it'll be "NaN"
https://bugs.winehq.org/show_bug.cgi?id=43527
Anton Romanov theli.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernel32
https://bugs.winehq.org/show_bug.cgi?id=43527
Anton Romanov theli.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, testcase
--- Comment #3 from Anton Romanov theli.ua@gmail.com --- Just confirmed that adding
LOCALE_SNAN "NaN"
to dlls/kernel32/nls/enu.nls fixed ingame crash for me in Magic The Gathering Online
One can test this by just calling GetLocaleInfo(0x69) and making sure it returns "NaN"
https://bugs.winehq.org/show_bug.cgi?id=43527
Anton Romanov theli.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Magic Online (Magic The |Magic Online (Magic The |Gathering: Online) Crashes |Gathering: Online) Crashes |when displaying token cards |due to LOCALE_SNAN | |returning empty string
https://bugs.winehq.org/show_bug.cgi?id=43527
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=43527
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |5afac01eecb39b70fec24af689b | |b0674ec19eadf Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- I added them all with 5afac01eecb39b70fec24af689bb0674ec19eadf. Please test.
https://bugs.winehq.org/show_bug.cgi?id=43527
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.15.
https://bugs.winehq.org/show_bug.cgi?id=43527
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=43527
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #6 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.4.