http://bugs.winehq.org/show_bug.cgi?id=14879
Summary: InDesign CS: Crashes on File->Open or File->Place Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: polesapart@gmail.com
Created an attachment (id=15440) --> (http://bugs.winehq.org/attachment.cgi?id=15440) WM_CTLCOLORSTATIC windows vs. wine demonstration program
InDesign CS crashes while creating the File Open or File Place dialogs.
See http://wiki.winehq.org/AdobeIndesign for a download link and instructions to get InDesign CS running.
The InDesign open and place dialogs are customised open file dialogs, created using dialog templates. The crash is due to a null pointer dereference by the application during the CDN_INITDONE WM_NOTIFY callback from the FileOpenDlgProc95 function comdlg32/filedlg.c.
The root cause can be traced further back to the WM_INITDIALOG callback. This passes a pointer to a data structure via the lCustData field of the OPENFILENAME structure which I assume is being stored in memory for later callbacks (e.g. WM_NOTIFY) to use.
Looking further into into the WM_INITDIALOG callback, during this a WM_SETTEXT message is sent to a group-box control on the dialog box. On wine this results in a WM_CTLCOLORSTATIC callback to the dialog, however this callback does not occur on windows. I believe this spurios WM_CTLCOLORSTATIC callback is the cause of the crash.
I have reproduced this problem with a small demo program (see attached). This basically creates a new dialog box and when it receives it WM_INITDIALOG notification it calls SendDlgItemMessage to send a WM_SETTEXT message to set the text of a 'group box' control on the dialog, basically mimicking the InDesign behaviour. The programs prints the notifications that it receives to stdout. Comparing the output under windows vs. wine shows that wine generates a WM_CTLCOLORSTATIC notification whereas windows doesn't.
http://bugs.winehq.org/show_bug.cgi?id=14879
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com URL| |http://download.adobe.com/pu | |b/adobe/magic/indesign/win/3 | |.x/idcstryENG.exe Keywords| |download Summary|InDesign CS: Crashes on |Adobe InDesign CS: Crashes |File->Open or File->Place |on File->Open or File->Place
--- Comment #1 from Dan Kegel dank@kegel.com 2008-08-15 18:41:14 --- Adding vendor, download URL and keyword
http://bugs.winehq.org/show_bug.cgi?id=14879
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2008-08-15 21:02:32 --- This may be related to bug 11836.
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #3 from Matt Jervis polesapart@gmail.com 2008-08-15 22:52:03 --- Created an attachment (id=15445) --> (http://bugs.winehq.org/attachment.cgi?id=15445) Hack to disable WM_CTLCOLORSTATIC callback for group box WM_SETTEXT
This patch makes the Open and Place dialogs work for me without indesign crashing.
It seems like a bit of a hack cause it just involves not sending the WM_CTLCOLORSTATIC notification to the application.
However, it does confirm that the WM_CTLCOLORSTATIC notification is the cause of the indesign crash.
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2008-08-15 23:03:22 --- The MSDN documentation (http://msdn.microsoft.com/en-us/library/bb787524(VS.85).aspx) mentions that the message is only sent by edit controls that are read-only or disabled (and, since it indicates that the control is about to be draw, presumably it'll only be sent if the control is visible). Is there a difference in status between Wine and Windows?
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #5 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-15 23:57:47 --- This requires a test case.
http://bugs.winehq.org/show_bug.cgi?id=14879
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, testcase
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #6 from Matt Jervis polesapart@gmail.com 2008-08-23 04:59:23 --- As Vincent mentions the WM_CTLCOLORSTATIC message should be send when the control is about to be drawn. However, looking at the wine code, the dialog code seems to send WM_CTLCOLORSTATIC unconditionally upon receiving a WM_SETTEXT message (~line 397 of user32/button.c).
It is interesting to note that calling WM_SETTEXT on a groupbox control when the application recieves the WM_INITDIALOG message (ie before it has been shown) results in no WM_CTLCOLORSTATIC notification under windows (but does under wine). The WM_CTLCOLORSTATIC message is sent after WM_PAINT on windows and wine.
Unfortunately I'm trying to debug this in my spare time (which isn't much) so thats why my posts here have been a bit sporadic.
http://bugs.winehq.org/show_bug.cgi?id=14879
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #7 from Austin English austinenglish@gmail.com 2009-01-20 02:39:59 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #8 from badiou gaspard.bebie.valerian@gmail.com 2009-02-23 08:26:44 --- Hi, I'm using Wine 1.0.1 and InDesign CS (I'm trying) and I still don't get to use this software. I have the following bug, crash as I'm opening a document. Please, would you explain how to patch this ? I downloaded the patch wich diables CTLCOLORSTATIC but I really don't know how to use it. I tried this :
cd .wine patch /home/gbv/openfile.patch
Many thanks !
http://bugs.winehq.org/show_bug.cgi?id=14879
cem cemelmaci@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cemelmaci@hotmail.com
--- Comment #9 from cem cemelmaci@hotmail.com 2010-02-15 07:55:34 --- i have this patch with Adobe InDesign Cs4 tested. Its working amazing. Thanks Matt Jervis.
my dist.: Ubuntu Karmic 64 bit ubuntu version: 1.1.38 git.
i have dcom98 with winetricks installed. my dlloverrides are:
[Software\Wine\AppDefaults\explorer.exe\DllOverrides] 1266106103 "ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
[Software\Wine\AppDefaults\iexplore.exe\DllOverrides] 1266106104 "ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
[Software\Wine\AppDefaults\services.exe\DllOverrides] 1266106105 "ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
[Software\Wine\AppDefaults\wineboot.exe\DllOverrides] 1266106106 "ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
[Software\Wine\AppDefaults\winedevice.exe\DllOverrides] 1266106107 "ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
[Software\Wine\Crypto\RSA\sc] 1256600084
[Software\Wine\Debug] 1256598023 "RelayExclude"="ntdll.RtlEnterCriticalSection;ntdll.RtlLeaveCriticalSection;kernel32.94;kernel32.95;kernel32.96;kernel32.97;kernel32.98" "RelayFromExclude"="winex11.drv;user32;gdi32;advapi32;kernel32"
[Software\Wine\DllOverrides] 1266106102 "gdiplus"="native" "iexplore.exe"="native,builtin" "itircl"="native,builtin" "itss"="native,builtin" "jscript"="native,builtin" "mlang"="native,builtin" "mshtml"="native,builtin" "msimtf"="native,builtin"
"ole32"="builtin" "oleaut32"="builtin" "rpcrt4"="builtin"
"shdoclc"="native,builtin" "shdocvw"="native,builtin" "shlwapi"="native,builtin" "urlmon"="native,builtin"
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #10 from cem cemelmaci@hotmail.com 2010-02-15 07:56:56 --- (In reply to comment #8)
Hi, I'm using Wine 1.0.1 and InDesign CS (I'm trying) and I still don't get to use this software. I have the following bug, crash as I'm opening a document. Please, would you explain how to patch this ? I downloaded the patch wich diables CTLCOLORSTATIC but I really don't know how to use it. I tried this :
cd .wine patch /home/gbv/openfile.patch
Many thanks !
for patching use
patch -p1 < openfile.patch
Regards
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #11 from cem cemelmaci@hotmail.com 2010-05-29 18:05:36 --- with this patch cs4 indesign works by me.
regards
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #12 from cem cemelmaci@hotmail.com 2010-11-08 06:05:03 CST --- i have this patch with Indesign cs4 tested. its working. what can I do to make this patch is accepted?
http://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #13 from Dan Kegel dank@kegel.com 2010-11-08 09:07:33 CST --- The patch is probably not quite correct (that's why it's called a hack), and it needs a conformance test that explores what the correct behavior should be. See
http://www.winehq.org/docs/winedev-guide/testing http://wiki.winehq.org/SubmittingPatches and http://wiki.winehq.org/DeveloperFaq#head-1e5a50563dbdb221702cbde246b23f5de08...
http://bugs.winehq.org/show_bug.cgi?id=14879
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
http://bugs.winehq.org/show_bug.cgi?id=14879
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #14 from Austin English austinenglish@gmail.com 2013-07-31 13:45:02 CDT --- Still in wine-1.6-178-g7944ca4.
austin@aw25 ~ $ sha1sum idcstryENG.exe 880d289640fadc991d8e5e3a4213899c0fee7f9e idcstryENG.exe austin@aw25 ~ $ du -h idcstryENG.exe 94M idcstryENG.exe
https://bugs.winehq.org/show_bug.cgi?id=14879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maiktapwagner@aol.com
--- Comment #15 from Anastasius Focht focht@gmx.net --- *** Bug 37241 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=14879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Version|unspecified |1.1.2 Summary|Adobe InDesign CS: Crashes |Multiple applications crash |on File->Open or |due to unexpected |File->Place |WM_CTLCOLORSTATIC message | |when changing caption of | |GroupBox controls (Adobe | |InDesign CS, Warhammer Dawn | |of War II demo)
--- Comment #16 from Anastasius Focht focht@gmx.net --- Hello folks,
refining summary and filling fields.
Another app suffering from this: 'Warhammer Dawn of War II demo'
Download: http://www.fileplanet.com/198771/190000/fileinfo/Warhammer-40,000:-Dawn-of-W...
$ sha1sum DoW2_Demo.zip e88aae392f26843a483cb6789b3a4f793c561e0e DoW2_Demo.zip
$ du -sh DoW2_Demo.zip 334M DoW2_Demo.zip
$ wine --version wine-1.7.27-59-g857a35e
Regards
https://bugs.winehq.org/show_bug.cgi?id=14879
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #17 from super_man@post.com --- Bug 14928 is said to be fixed with the hack too.
https://bugs.winehq.org/show_bug.cgi?id=14879
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=25790
--- Comment #18 from Sebastian Lackner sebastian@fds-team.de --- Based on comment 3, this could be a duplicate of https://bugs.winehq.org/show_bug.cgi?id=25790. Could someone please test that, and mark the bug report as duplicate if this is the case?
https://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #19 from super_man@post.com --- (In reply to Sebastian Lackner from comment #18)
Based on comment 3, this could be a duplicate of https://bugs.winehq.org/show_bug.cgi?id=25790. Could someone please test that, and mark the bug report as duplicate if this is the case?
This bug is indeed a duplicate, I tested only the application that has been put into url field (it didnt install with wine-git, complained about some stack issue, but installed fine with staging).
You just need to file --> open and the program vanishes.
I tested wine-staging 1.9.6 and it works. Then I compiled wine with the patch and it works then too with wine-git.
https://bugs.winehq.org/show_bug.cgi?id=14879
--- Comment #20 from super_man@post.com --- (In reply to super_man from comment #19)
(In reply to Sebastian Lackner from comment #18)
Based on comment 3, this could be a duplicate of https://bugs.winehq.org/show_bug.cgi?id=25790. Could someone please test that, and mark the bug report as duplicate if this is the case?
This bug is indeed a duplicate, I tested only the application that has been put into url field (it didnt install with wine-git, complained about some stack issue, but installed fine with staging).
You just need to file --> open and the program vanishes.
I tested wine-staging 1.9.6 and it works. Then I compiled wine with the patch and it works then too with wine-git.
This should be fixed by now.
https://bugs.winehq.org/show_bug.cgi?id=14879
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=14879
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net, | |winetest@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=14879
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
--- Comment #21 from Rosanne DiMesio dimesio@earthlink.net --- Marking duplicate per comments 18 and 19.
*** This bug has been marked as a duplicate of bug 25790 ***
https://bugs.winehq.org/show_bug.cgi?id=14879
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #22 from Bruno Jesus 00cpxxx@gmail.com --- Closing duplicate bugs.
https://bugs.winehq.org/show_bug.cgi?id=14879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://download.adobe.com/p |https://web.archive.org/web |ub/adobe/magic/indesign/win |/20101205141014/http://down |/3.x/idcstryENG.exe |load.adobe.com/pub/adobe/ma | |gic/indesign/win/3.x/idcstr | |yENG.exe