https://bugs.winehq.org/show_bug.cgi?id=45942
Bug ID: 45942 Summary: AnyRail6: crashing when open Options. Product: Wine Version: 3.17 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: forum@abtelecom.ro Distribution: ---
Created attachment 62476 --> https://bugs.winehq.org/attachment.cgi?id=62476 Backtrace for AnyRail6
I'm using AnyRail6. When I'm trying to open the File -> Options the program crashes.
I've tried several Wine version: 3.14, 3.15, 3.16 and also 3.17.
The logs are attached.
Kind regards, Adrian
https://bugs.winehq.org/show_bug.cgi?id=45942
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |gdiplus CC| |xerox.xerox2000x@gmail.com Ever confirmed|0 |1 Severity|major |normal URL| |https://www.anyrail.com/nl/ | |downloads/AnyRail/6.17/AnyR | |ail6.17.4.msi Keywords| |download Summary|AnyRail6: crashing when |AnyRail6: crashing when |open Options. |open Options. (native | |gdiplus is work around) Status|UNCONFIRMED |NEW
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi, please always provide downloadlink if the app/trial is free. I guess it`s the app from the downloadlink, it crashes indeed after clicking options. Could you try ``winetricks gdiplus`` and report back if the crash is gone then? Thanks
sha1sum ~/AnyRail6.17.4.msi 4702225779f23b0d8f556e3a13f93d4987d52a87 /home/louis/AnyRail6.17.4.msi
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 62478 --> https://bugs.winehq.org/attachment.cgi?id=62478 +gdiplus,+tid,+seh
+gdiplus,+tid,+seh log
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Could as well be WIC issue. Where does it crash exactly?
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 62481 --> https://bugs.winehq.org/attachment.cgi?id=62481 +wincodecs log
(In reply to Nikolay Sivov from comment #3)
Could as well be WIC issue.
It turns out that native windowscodecs also works around the crash
Where does it crash exactly?
A window appears that says ''please wait`` and then crashdialog is invoked. I guess it starts at 0009:trace:seh:raise_exception code=c0000005
Also at the start of the program in the console there is a line that says: libpng warning: iCCP: known incorrect sRGB profile
Could that be related?
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 62486 --> https://bugs.winehq.org/attachment.cgi?id=62486 patch
It seems the issue is the lack of input data validation. Application tries to load GDI+ image from stream, created on icon group resource. Icon group resource format is close to .ico, but not the same - header matches, but icon entries are 2 bytes shorter, entry size field is followed by icon id WORD instead of offset.
Obviously GDI or WIC won't be able to load something like that, because it does not have access to module resources, even if it did there's no way to tell one format from another.
Attached patch works for me. Icon in question is IDB_OPTIONSICON_GENERAL. displayed next to "General options" text.
https://bugs.winehq.org/show_bug.cgi?id=45942
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|gdiplus |windowscodecs
https://bugs.winehq.org/show_bug.cgi?id=45942
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|AnyRail6: crashing when |AnyRail6: crashing when |open Options. (native |open Options |gdiplus is work around) |
https://bugs.winehq.org/show_bug.cgi?id=45942
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=45942
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #6 from Adrian Ban forum@abtelecom.ro --- Hi,
The link is:
https://www.anyrail.com/downloads/AnyRail/6.17/AnyRail6.17.4.msi
I'm trying now with Winetricks.
Kind regards, Adrian
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #7 from Adrian Ban forum@abtelecom.ro --- Created attachment 62493 --> https://bugs.winehq.org/attachment.cgi?id=62493 AnyRail6 running with GDI build in
File menu is showing fine
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #8 from Adrian Ban forum@abtelecom.ro --- Created attachment 62494 --> https://bugs.winehq.org/attachment.cgi?id=62494 AnyRail6 running with GDI native
File menu is not visible anymore, but it can be used.
https://bugs.winehq.org/show_bug.cgi?id=45942
--- Comment #9 from Adrian Ban forum@abtelecom.ro --- After I've installed GDI and it was set as native, the File menu text is not showing anymore but is still usable and when I'm opening the Options is not crashing anymore.
https://bugs.winehq.org/show_bug.cgi?id=45942
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |bunglehead@gmail.com
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com --- I think it's clear what's going on, I'll add some tests and will send a fix next week.
https://bugs.winehq.org/show_bug.cgi?id=45942
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead@gmail.com |wine-bugs@winehq.org Status|NEW |RESOLVED Fixed by SHA1| |e72983b5124eba463f76bc5c5de | |1dae2485ef42e Resolution|--- |FIXED
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- This works for me now, e72983b5124eba463f76bc5c5de1dae2485ef42e.
https://bugs.winehq.org/show_bug.cgi?id=45942
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.18.
https://bugs.winehq.org/show_bug.cgi?id=45942
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=45942
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #13 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bug fixes included in 3.0.5.