http://bugs.winehq.org/show_bug.cgi?id=18382
Summary: SubEdit fails to start Product: Wine Version: 1.1.20 Platform: PC URL: http://matinf.pcz.pl/~subedit/download/subedit_b4072_ins tall.exe OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: lukasz.wojnilowicz@gmail.com
Created an attachment (id=20962) --> (http://bugs.winehq.org/attachment.cgi?id=20962) Fatal error
I'm using Wine 1.1.20 (compiled from source using gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) ) on Fedora 10 i386.
The problem is that SubEdit fails to start and shows fatal error.
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #1 from NSLW lukasz.wojnilowicz@gmail.com 2009-05-07 15:39:24 --- Created an attachment (id=20963) --> (http://bugs.winehq.org/attachment.cgi?id=20963) WINEDEBUG=+relay,+advapi,+ole Wine-1.1.20 SubEdit build 4072
http://bugs.winehq.org/show_bug.cgi?id=18382
NSLW lukasz.wojnilowicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2009-05-07 19:50:22 --- How about you start attaching plain terminal output until some one asks for more?
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #3 from NSLW lukasz.wojnilowicz@gmail.com 2009-05-08 01:01:58 --- (In reply to comment #2)
How about you start attaching plain terminal output until some one asks for more?
There is nothing displayed in plain terminal and I did as is described in
http://www.winehq.org/docs/wineusr-guide/bug-reporting (especially second point of 5.2.1)
+
my guesses which is ole and advapi
http://bugs.winehq.org/show_bug.cgi?id=18382
Niko Sandschneider nsandschn@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nsandschn@gmx.de
--- Comment #4 from Niko Sandschneider nsandschn@gmx.de 2009-08-27 13:54:28 --- Confirming with wine 1.1.28. There is an error dialog "Error reading ImageListBookMarks->Bitmap: Failed to read ImageList data from stream", but no terminal output.
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com 2009-08-27 22:52:19 --- (In reply to comment #4)
Confirming with wine 1.1.28. There is an error dialog "Error reading ImageListBookMarks->Bitmap: Failed to read ImageList data from stream", but no terminal output.
Try with 'winetricks cc580' to know is it really ImageList failure.
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #6 from Niko Sandschneider nsandschn@gmx.de 2009-08-28 03:28:30 --- 'winetricks cc580' doesn't help. It still crashes with the same error dialog.
http://bugs.winehq.org/show_bug.cgi?id=18382
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Ever Confirmed|0 |1
--- Comment #7 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-11-22 09:50:42 --- confirming
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #8 from NSLW lukasz.wojnilowicz@gmail.com 2010-05-20 01:58:27 --- It's still issue in Wine-1.1.44-245-g943eefc
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #9 from NSLW lukasz.wojnilowicz@gmail.com 2011-03-18 11:34:30 CDT --- Still issue in wine-1.3.15-446-g3cd88d2
http://bugs.winehq.org/show_bug.cgi?id=18382
Rafal Stanilewicz washuu@eastnews.com.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |washuu@eastnews.com.pl
--- Comment #10 from Rafal Stanilewicz washuu@eastnews.com.pl 2012-02-28 06:30:02 CST --- Wine 1.4-rc5 here, bug seems to be as fresh as it was in 2009.
http://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #11 from NSLW lukasz.wojnilowicz@gmail.com 2012-10-18 09:28:33 CDT --- Still issue in wine-1.5.15-145-g29b3902
http://bugs.winehq.org/show_bug.cgi?id=18382
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #12 from hanska2@luukku.com --- "Confirming with wine 1.1.28. There is an error dialog "Error reading ImageListBookMarks->Bitmap: Failed to read ImageList data from stream", but no terminal output."
It's the same but with wine 1.7.22
https://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com --- Could someone attach +imagelist,+tid with current wine?
https://bugs.winehq.org/show_bug.cgi?id=18382
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://matinf.pcz.pl/~subed |http://www.idg.pl/ftp/subed |it/download/subedit_b4072_i |it.player.html |nstall.exe |
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Nikolay Sivov from comment #13)
Could someone attach +imagelist,+tid with current wine?
0009:trace:imagelist:ImageList_Read 0x8d617c
This is the only line in the log. I updated the download link, it's a 1.4Mb download. Still in 1.7.40.
https://bugs.winehq.org/show_bug.cgi?id=18382
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com --- ImageList_Read () at /home/bruno/programs/wine32/dlls/comctl32/imagelist.c:2264 2264 if (FAILED(IStream_Read (pstm, &ilHead, sizeof(ILHEAD), NULL))) Wine-dbg> 2266 if (ilHead.usMagic != (('L' << 8) | 'I')) Wine-dbg> 2268 if (ilHead.usVersion != 0x101) /* probably version? */ Wine-dbg> 2269 return NULL; Wine-dbg>p ilHead {usMagic=0x4c49, usVersion=0x600, cCurImage=0xa, cMaxImage=0xe, cGrow=0x4, cx=0x10, cy=0x10, bkcolor=0xffffffff, flags=0x10ff, ovls={0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}} Wine-dbg>
ImageList_Read returns in the first checks, it will always fail as the passed value is 0x600. Commenting it out makes the app shows a different OLE related msgbox and crash after it. Not sure if it helps.
https://bugs.winehq.org/show_bug.cgi?id=18382
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |comctl32
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com --- Yes, I can confirm that this is comctl32 issue. It fails to load on unexpected version value here:
--- if (ilHead.usVersion != 0x101) /* probably version? */ return NULL; ---
This stream got 0x600 instead of 0x101. If I relax this check to accept this other value it proceeds to load imagelist just fine. We'll need some tests for that, possibilities are:
- it's not a version field but something else; - v6 uses different value for this field; - ImageList_Write() always writes 0x101, but _Read() isn't that strict as we are.
P.S. later it fails harder trying to create Windows Media Player ActiveX component.
https://bugs.winehq.org/show_bug.cgi?id=18382
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|SubEdit fails to start |SubEdit fails to start - | |ImageList_Read() fails on | |unknown usVersion value | |0x600
https://bugs.winehq.org/show_bug.cgi?id=18382
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #17 from super_man@post.com --- still an issue 1.7.52
https://bugs.winehq.org/show_bug.cgi?id=18382
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |bunglehead@gmail.com
--- Comment #18 from Nikolay Sivov bunglehead@gmail.com --- Storage format changed in V6 apparently, not just version field. I'll take a look.
https://bugs.winehq.org/show_bug.cgi?id=18382
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead@gmail.com |wine-bugs@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=18382
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #19 from temp82@luukku.com --- still fails. wine 7.9.
https://bugs.winehq.org/show_bug.cgi?id=18382
Jacob Czekalla jacobczekalla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacobczekalla@gmail.com
--- Comment #20 from Jacob Czekalla jacobczekalla@gmail.com --- Here is an updated link to the program: https://subedit.com.pl/english/download.html
The 0x600 is for V6 comctl32. The problem is due to an image list that was made using V6 comctl32 and WriteEx on windows and then read using WINE's ImageList_Read() which checks if the version is 0x101 and returns. WINE's ImageList_Read() needs to be fixed so it can handle V6. A very simple work around is to remove these lines from ImageList_Read()
if (ilHead.usVersion != 0x101) /* probably version? */ return NULL;
I have tested this and it works and passes all of the tests, but will still need work. It should fix the imagelist problem, but the program will still get other errors from other bugs.
There is probably a more legit fix, but this is just more info for whoever has the time to fix this bug.