https://bugs.winehq.org/show_bug.cgi?id=46287
Bug ID: 46287 Summary: Magic: The Gatheing Online - EULA not found due to inline image in RTF file Product: Wine Version: 4.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: panard@inzenet.org Distribution: ---
Created attachment 63000 --> https://bugs.winehq.org/attachment.cgi?id=63000 EULA_en.rtf within inline mage
With latest MTGO update (3.4.106.2058), MTGO shows an error message "EULA not found" which prevents accepting the updated EULA.
The error is actually due to inline image embedded in the RFT file of the EULA. Removing it makes it work again.
I attach the original RTF file. Removing the section {\pict{*\picprop}\wmetafile8\picw20241\pich26\picwgoal11475\pichgoal15 010009000003d000000006001c00000000000400000003010800050000000b0200000000050000 000c020700a912040000002e0118001c000000fb021000070000000000bc020000000001020222 53797374656d007ca90000002218066bfd7f00004000000000000000f095026b040000002d0100 00040000002d01000004000000020101001c000000fb02a4ff0000000000009001000000000440 002243616c6962726900000000000000000000000000000000000000000000000000040000002d 010100040000002d010100040000002d010100050000000902000000020d000000320a57000000 0100040000000000ad1206002000360005000000090200000002030000001e0007000000fc0200 00333333000000040000002d01020008000000fa02050000000000ffffff00040000002d010300 0e00000024030500ffffffffffff0600ad120600ad12ffffffffffff08000000fa020000000000 0000000000040000002d01040007000000fc020000ffffff000000040000002d01050004000000 2701ffff040000002d010000040000002d010000030000000000 } fixes the issue ; otherwise there seem to be a bug within Wine or DotNet (strace witnesses several segmentation faults).
See also https://github.com/pauleve/docker-mtgo/issues/54
https://bugs.winehq.org/show_bug.cgi?id=46287
Panard panard@inzenet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Magic: The Gatheing Online |Magic: The Gathering Online |- EULA not found due to |- EULA not found due to |inline image in RTF file |inline image in RTF file
https://bugs.winehq.org/show_bug.cgi?id=46287
Anton Romanov theli.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |theli.ua@gmail.com
--- Comment #1 from Anton Romanov theli.ua@gmail.com --- FWIW, wine's wordpad (write.exe) can open attached rtf without any issues it seems.
I do not see any embedded pictures though
https://bugs.winehq.org/show_bug.cgi?id=46287
--- Comment #2 from Panard panard@inzenet.org --- Yeah, even libreoffice doesn't show the picture; I'm not sure how standard those inline graphics in RTF are. I'll try to provide some debug traces trying to decipher which code is responsible of the segfaults. I tried dotnet 4.7.2 with no success (was with dotnet 4.6.2 installed with winetricks).
https://bugs.winehq.org/show_bug.cgi?id=46287
--- Comment #3 from Anton Romanov theli.ua@gmail.com --- using native riched20 does not solve the issue
https://bugs.winehq.org/show_bug.cgi?id=46287
--- Comment #4 from Anton Romanov theli.ua@gmail.com --- Well, one of the problems is in gdiplus. If you see in the picture data pasted above you can see it starts with 010009 which is normal for WMF files however they usually start with a different signature which is what wine's gdiplus expects, so gdiplus:get_codec_info fails
However, even if I patch wine's gdiplus to recognize that as wmf it still fails elsewhere
https://bugs.winehq.org/show_bug.cgi?id=46287
--- Comment #5 from Anton Romanov theli.ua@gmail.com --- ok, so later if I fix gdiplus loading this wmf file it tries to encode it into png, it calls encode_png which calls encode_image_wic which returns GenericError as image->type is ImageMetaFile and not ImageTypeBitmap as it expects
https://bugs.winehq.org/show_bug.cgi?id=46287
--- Comment #6 from Anton Romanov theli.ua@gmail.com --- Confirming that native gdiplus fixes this issue.
So, to summarize the issue is that:
* wine gdiplus does not recognize WMF files starting with 01000900 * wine gdiplus GdipSaveImageToStream won't save WMF as PNG (or any other format, really)
https://bugs.winehq.org/show_bug.cgi?id=46287
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leothelion92@gmail.com
--- Comment #7 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 46286 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=46287
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download Ever confirmed|0 |1 CC| |xerox.xerox2000x@gmail.com Component|-unknown |gdiplus Status|UNCONFIRMED |NEW URL| |https://magic.wizards.com/e | |n/content/download
--- Comment #8 from Louis Lenders xerox.xerox2000x@gmail.com --- Add some info + confirming
sha1sum /media/louis/aqqa/setup.exe b45b2766d63b5fb692817b62cb63e230ba79470d /media/louis/aqqa/setup.exe
https://bugs.winehq.org/show_bug.cgi?id=46287
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com