https://bugs.winehq.org/show_bug.cgi?id=53021
Bug ID: 53021 Summary: ChemDraw 21.0 crashes on use of the Page Setup button Product: Wine Version: 7.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 Assignee: wine-bugs@winehq.org Reporter: florian.schreiner@protonmail.com Distribution: ---
Created attachment 72392 --> https://bugs.winehq.org/attachment.cgi?id=72392 Stacktrace of the crash
If run in a fresh, unmodified wine prefix, ChemDraw will install correctly using a workaround but won't run. To remediate this gdiplus was installed via winetricks. After that all basic functionality is restored and ChemDraw can be used for simple 2D editing. On use of the page setup button ChemDraw crashes.
Steps to reproduce: 1. Download ChemDraw and extract the 32-bit .msi from the .exe 3. Install gdiplus using 'winetricks gdiplus' 3. Install the .msi using 'msiexec -i PerkinElmer_ChemOffice_Suite_2021_21.0.0.msi' 4. Open ChemDraw and use the page setup button
Expected behavior: A dialog opens and paper size can be set.
Actual behavior: When the 'page setup' button is clicked, ChemDraw will crash (most of the times, especially if not run for the first time and a stylesheet is used) with the stacktrace indicating that comdlg32 is at fault (more precisely comdlg32\printdlg.c:3179).
Additional info: This behavior can be observed using 64- and 32-bit prefixes. Wine was installed from the winehq-staging package, version 7.8-staging.
System info: OS: Kubuntu 22.04 Kernel Version: 5.15.0-30-generic
https://bugs.winehq.org/show_bug.cgi?id=53021
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Is this where I can get the software for testing? https://info.perkinelmer.com/ChemOfficePlus?product=INF02321&version=21 Or where to download? :)
https://bugs.winehq.org/show_bug.cgi?id=53021
Florian Schreiner florian.schreiner@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://info.perkinelmer.co | |m/ChemOfficePlus?product=IN | |F02321&version=21
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #2 from Florian Schreiner florian.schreiner@protonmail.com --- Yes this would be the link. Sorry I forgot to add it.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Added an archived download: https://web.archive.org/web/20220521235628/https://download.flexnetoperation... Just in case...
https://bugs.winehq.org/show_bug.cgi?id=53021
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- No idea how to get the trial to run though, it asks for an Activation, and the trial is greyed out. Please advise?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #5 from Florian Schreiner florian.schreiner@protonmail.com --- Sorry I can't help you there. My IP seems to be whitelisted on the activation server from a previous installation under windows so I don't get the prompt anymore. If I try to launch without an active internet connection ChemDraw just crashes because it can't reach the server. Should have realized that sooner.
https://bugs.winehq.org/show_bug.cgi?id=53021
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |53037
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- I got the trial to work on windows, your install workaround breaks it. I opened bug 53037 for the install issue. Is this also what prevented you from installing it normally?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #7 from Florian Schreiner florian.schreiner@protonmail.com --- Thanks for opening that issue. I encountered the bug before but the real issue was the final install dialog, which just crashes after a few seconds. This is where I installed it under windows to check if it would work at all. Must've activated it there which now allows me to progress through the installation.
But it would be weird if the process of just installing the msi would break it though since this is a legitimate workaround under windows: https://informatics-support.perkinelmer.com/hc/en-us/articles/4408233001748-...
Although there you are supposed to install from a directory extracted by the installer. Did you try just letting the installer extract to a known location and running the msi with msiexec -i from there?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Yes I did. But in that official workaround they tell you to activate it, which I can't do, since I don't own the program.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #9 from Fabian Maurer dark.shadow4@web.de --- Regarding this crash, can you please attach a full log (including stacktrace) using normal wine?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #10 from Florian Schreiner florian.schreiner@protonmail.com --- Created attachment 72414 --> https://bugs.winehq.org/attachment.cgi?id=72414 Log of the crash
Here's the full log of the crash.
https://bugs.winehq.org/show_bug.cgi?id=53021
Florian Schreiner florian.schreiner@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |53040
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #11 from Fabian Maurer dark.shadow4@web.de ---
Here's the full log of the crash.
This is using wine-staging again. Please try normal wine and provide the log using that.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #12 from Florian Schreiner florian.schreiner@protonmail.com --- Created attachment 72419 --> https://bugs.winehq.org/attachment.cgi?id=72419 Full log of the crash under wine 6.0.3
(In reply to Fabian Maurer from comment #11)
Here's the full log of the crash.
This is using wine-staging again. Please try normal wine and provide the log using that.
Sorry, misunderstood you there. Here is the full log with a fresh install of ChemDraw under wine 6.0.3 (the standard Ubuntu package).
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #13 from Florian Schreiner florian.schreiner@protonmail.com --- After some further testing it seems the "clean" install used mono 7.2.0 although the default for wine 6.0.3 would be mono 5.1.1 from what I could gather. Through testing all versions since mono 5.1.1 to 7.2.0 I found that ChemDraw only works with mono 7.0.0 or higher, since every earlier version crashes somewhere inside mono. ChemDraw doesn't even launch under these conditions. I don't know how relevant this is to this specific problem but still wanted to share my findings in case of any further complications.
https://bugs.winehq.org/show_bug.cgi?id=53021
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #14 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Florian Schreiner from comment #12)
Created attachment 72419 [details] Full log of the crash under wine 6.0.3
Take a note at the crash log: 0024:err:module:import_dll Library mfc140.dll (which is needed by L"C:\Program Files\PerkinElmerInformatics\ChemOffice2021\Common\Extensions\Online\Online21.dll") not found
Could you install that with winetricks and see if it changes things?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #15 from Florian Schreiner florian.schreiner@protonmail.com --- Created attachment 72421 --> https://bugs.winehq.org/attachment.cgi?id=72421 Crash log with mfc140 installed
Could you install that with winetricks and see if it changes things?
Of course! The crash happens the exact same way. Although from what I could find it does restore functionality of the included SciFinder plugin which searches a drawn structure in the SciFinder database.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #16 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi, I gave this a try, but when I select "Page Setup" from the menu the window comes up just fine.
What exactly do you mean with "Page Setup Button", I don`t see a button :(
BTW, there seems to be a regression regarding the installer. I`ll open a seperate bug report for that
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #17 from Florian Schreiner florian.schreiner@protonmail.com ---
What exactly do you mean with "Page Setup Button", I don`t see a button :(
Yes, I meant this option from the menu bar drop down. What happens if you open a stylesheet and try to use the option then? After a fresh install it somehow works most of the times.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #18 from Fabian Maurer dark.shadow4@web.de --- Unfortunately, there is no line numbers using that version of wine. Not sure why, do you miss debug symbols? Preferably using wine-7.8, not the standard Ubuntu outdated wine-6.0.3...
Can you try that version of wine from the same source you installed wine-staging?
https://bugs.winehq.org/show_bug.cgi?id=53021
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #19 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Florian Schreiner from comment #17)
What exactly do you mean with "Page Setup Button", I don`t see a button :(
Yes, I meant this option from the menu bar drop down. What happens if you open a stylesheet and try to use the option then? After a fresh install it somehow works most of the times.
Yes, then i get i nice crash in line comdlg32\printdlg.c:3179 ;)
Maybe It`s related to uxtheme (6th line)????
Unhandled exception: divide by zero in 64-bit code (0x0000031f82a404). Register dump:
Backtrace: =>0 0x0000031f82a404 pagesetup_change_preview+0x64(data=000000000041E300) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\comdlg32\printdlg.c:3179] in comdlg32 (0x0000007b614d80) 1 0x0000031f82c396 pagesetup_dlg_proc+0x276(hDlg=<internal error>, uMsg=<internal error>, wParam=<internal error>, lParam=0x41e300) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\comdlg32\printdlg.c:3731] in comdlg32 (0x0000007b614d80) 2 0x0000023d88fa06 call_dialog_proc+0x66(hwnd=00000000000602BE, msg=0x110, wp=0x102ce, lp=0x41e300, result=000000000041CC38, arg=000000031F82C120) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\user32\winproc.c:118] in user32 (0x0000031f82c120) 3 0x0000023d892cd5 WINPROC_CallDlgProcW+0x65(func=00000000FFFF003F, hwnd=00000000000602BE, msg=0x110, wParam=0x102ce, lParam=0x41e300) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\user32\winproc.c:1405] in user32 (0x0000023d83fd60) 4 0x0000023d83fa98 USER_DefDlgProcW+0x4a(lParam=<internal error>, wParam=<internal error>, msg=<internal error>, hwnd=<internal error>) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\user32\defdlg.c:425] in user32 (0x0000023d83fd60) 5 0x0000023d83fa98 USER_DefDlgProc+0x68(hwnd=<register R13 not accessible in this frame>, msg=<register R12 not accessible in this frame>, wParam=<register RBX not accessible in this frame>, lParam=<register RSI not accessible in this frame>, unicode=[<register RSP not accessible in this frame>) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\user32\defdlg.c:418] in user32 (0x0000023d83fd60) 6 0x000002f7232990 UXTHEME_DefDlgProc+0x70(hwnd=<register R15 not accessible in this frame>, msg=<register R12 not accessible in this frame>, wp=<register R13 not accessible in this frame>, lp=<register R14 not accessible in this frame>, unicode=[<register RSP not accessible in this frame>) [Z:\media\louis\aqqa1\winevanilla\wine\dlls\uxtheme\dialog.c:180] in uxtheme (0x0000023d83fd60)
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #20 from Florian Schreiner florian.schreiner@protonmail.com --- (In reply to Fabian Maurer from comment #18)
Can you try that version of wine from the same source you installed wine-staging?
Unfortunately I only have wine 7.6 through 7.9 of the staging and development branches available from the winehq repo since Ubuntu 22.04 just released and the stable branch isn't supported yet. I can do it with 7.8-staging or devel of course, if this would be ok. Or do you mean another version?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #21 from Florian Schreiner florian.schreiner@protonmail.com --- (In reply to Louis Lenders from comment #19)
Yes, then i get i nice crash in line comdlg32\printdlg.c:3179 ;)
I'm relieved it's not just me, thank you :D
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #22 from Fabian Maurer dark.shadow4@web.de ---
fortunately I only have wine 7.6 through 7.9 of the staging and development
It's okay now, I was able to piece it together.
@Louis Did you get the trial to work? If so, how?
Problem is most likely this:
0114:fixme:commdlg:pagesetup_update_papersize No papernames found for L""/L""
Later on we have
pagesetup_get_papersize_pt(data)->x = tenths_mm_to_size(data, points[i].x);
If we abort (see that fixme), the x/y values are never initialized and we get a divide by zero.
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #23 from Fabian Maurer dark.shadow4@web.de --- Created attachment 72436 --> https://bugs.winehq.org/attachment.cgi?id=72436 Testprogram
Attaching small test program that shows the issue
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #24 from Fabian Maurer dark.shadow4@web.de --- Created attachment 72437 --> https://bugs.winehq.org/attachment.cgi?id=72437 Hack to workaround the issue
Attaching a hack that *should* work around the issue. Behavior on windows seems to be to just select the default if the passed options are not found. Does this help?
https://bugs.winehq.org/show_bug.cgi?id=53021
--- Comment #25 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Fabian Maurer from comment #22)
fortunately I only have wine 7.6 through 7.9 of the staging and development
It's okay now, I was able to piece it together.
@Louis Did you get the trial to work? If so, how?
Hi Fabian, I installed dotnet48 first, and msvbvm60 (i just copied the file which I had lying on my disk into syswow64) and native gdiplus.
Then after starting 'cos21.0.0.exe' it extracts and then i did manually install PerkinElmer/ChemOffice/PerkinElmer_ChemOffice_64-bit_Support_21.0.0.msi.
To see the crash : Select "Open Style Sheet" from menu (under file) and the "Page Setup" from same menu
Interesting fact: In the directory Common Files/DLLS there` a file FlxCore.dll that contains the string 'wine_get_version'. If you replace that string with another one, it starts with an activationwindow that says you only have 10 trials left. Otherwise it doesn`t. Weird....