https://bugs.winehq.org/show_bug.cgi?id=55078
Bug ID: 55078 Summary: Powerpoint 2007: "Print to file" broken Product: Wine Version: 8.8 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: spooler Assignee: wine-bugs@winehq.org Reporter: ulrich.gemkow@ikr.uni-stuttgart.de Distribution: ---
Printing a large document in Powerpoint 2007 does not work when "Print to file" is selected in the print dialog. Printing to the printer works.
When failing the printing to file goes very quick and after a long pause after the end of printing a exception is raised and wine terminates. The crash dump seems to be not helpful, it points inside a Powerpoint library.
A Bisect shows the following commit (which does not help really):
commit 7034fc297bf730427c6c808cb3f574b56f50b60f Author: Piotr Caban piotr@codeweavers.com Date: Mon May 1 13:11:42 2023 +0200
winspool: Change CUPS printers print processor to wineps.
dlls/winspool.drv/info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
I created a new prefix before each test.
In previous versions of wine printing to file worked.
https://bugs.winehq.org/show_bug.cgi?id=55078
Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |7034fc297bf730427c6c808cb3f | |574b56f50b60f Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #1 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- Created attachment 74629 --> https://bugs.winehq.org/attachment.cgi?id=74629 Log file for succesful print to file with wine-8.7-15
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #2 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- Created attachment 74630 --> https://bugs.winehq.org/attachment.cgi?id=74630 Log file for failed print to file with wine-8.7-16
https://bugs.winehq.org/show_bug.cgi?id=55078
Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=55078
David Kahurani k.kahurani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |k.kahurani@gmail.com
--- Comment #3 from David Kahurani k.kahurani@gmail.com --- Created attachment 74648 --> https://bugs.winehq.org/attachment.cgi?id=74648 It looks like there is bad cast here.
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #4 from David Kahurani k.kahurani@gmail.com --- Can you try the attached patch and check whether it solves the issue?
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #5 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- (In reply to David Kahurani from comment #4)
Can you try the attached patch and check whether it solves the issue?
Thanks for looking into this bug! Unfortunately your patch does not help. Without your patch PP 2007 iterates through the pages to print, creates no print file and then crashes. With your patch an error message is displayed directly after entering the print file name saying that there is a problem with the printer.
Sorry...
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #6 from David Kahurani k.kahurani@gmail.com --- (In reply to Ulrich Gemkow from comment #5)
(In reply to David Kahurani from comment #4)
Can you try the attached patch and check whether it solves the issue?
Thanks for looking into this bug! Unfortunately your patch does not help. Without your patch PP 2007 iterates through the pages to print, creates no print file and then crashes. With your patch an error message is displayed directly after entering the print file name saying that there is a problem with the printer.
Sorry...
Sounds like some progress
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #7 from David Kahurani k.kahurani@gmail.com --- Created attachment 74649 --> https://bugs.winehq.org/attachment.cgi?id=74649 Can you try this one?
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #8 from David Kahurani k.kahurani@gmail.com --- Anyways, I see kind of a cast everywhere so this might not be the solution/cause of the problem.
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #9 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- (In reply to David Kahurani from comment #7)
Created attachment 74649 [details] Can you try this one?
Unfortunately the second patch helps not. The same dialog box as with the first patch. But thanks anyway!
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #10 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- This bug is still present in wine 8.11.
https://bugs.winehq.org/show_bug.cgi?id=55078
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #11 from Piotr Caban piotr.caban@gmail.com --- Please attach log with following debug channels: seh,gdi,enhmetafile,winspool,localspl,psdrv
Can you attach pptx file that can be used to reproduce the bug?
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #12 from Piotr Caban piotr.caban@gmail.com --- I've done some testing with Office2007/PowerPoint and I was not able to reproduce the bug. I guess it crashes while trying to print something specific to your document (it crashes on division by zero).
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #13 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- I checked with different wine releases back to wine 7.1 and indeed the file we tried may have some problems. But the file prints ok with old wine releases and fails with newer releases with different error patterns.
So technically this is a regression but maybe because wine handles the error condition differently in newer releases.
What to do?
I will try to create a minimal failing file or I can send you the critical file per private mail if this is ok for you (I cannot share the file via Bugzilla). Or is this not a bug in the wine sense?
Thanks a lot!
https://bugs.winehq.org/show_bug.cgi?id=55078
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=55078
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #14 from joaopa jeremielapuree@yahoo.fr ---
But the file prints ok with
old wine releases and fails with newer releases with different error patterns.
The question is: does the file print ok in a real windows box?
If yes, that's a bug in wine and wine needs to be fixed. If not, wine behaves correctly and there is nothing to do, whatever wines behaved previously.
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #15 from Piotr Caban piotr.caban@gmail.com --- I've created MR that should fix the bug: https://gitlab.winehq.org/wine/wine/-/merge_requests/3273
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #16 from Piotr Caban piotr.caban@gmail.com --- I've created another MR that helps with printing this document: https://gitlab.winehq.org/wine/wine/-/merge_requests/3274
It decreases time needed to send the document to cups. Please note that there still is a delay that is not present on Windows - in order to fully fix it we will need to introduce print spooler service instead of doing the work in PowerPoint process.
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #17 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- (In reply to Piotr Caban from comment #15)
I've created MR that should fix the bug: https://gitlab.winehq.org/wine/wine/-/merge_requests/3273
Great! This fixes the bug. Thanks a lot!
https://bugs.winehq.org/show_bug.cgi?id=55078
--- Comment #18 from Ulrich Gemkow ulrich.gemkow@ikr.uni-stuttgart.de --- (In reply to Piotr Caban from comment #16)
I've created another MR that helps with printing this document: https://gitlab.winehq.org/wine/wine/-/merge_requests/3274
It decreases time needed to send the document to cups. Please note that there still is a delay that is not present on Windows - in order to fully fix it we will need to introduce print spooler service instead of doing the work in PowerPoint process.
Indeed, the patch decreases the time needed to print significantly, thanks!
https://bugs.winehq.org/show_bug.cgi?id=55078
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |75e87c30ad18af6332bd13fb7ef | |fa7448293d558
--- Comment #19 from Piotr Caban piotr.caban@gmail.com --- The patches are in wine. Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=55078
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.13.