https://bugs.winehq.org/show_bug.cgi?id=40517
Bug ID: 40517 Summary: Office 2007 shows error message "Unexpected error during export" when trying to export document as PDF file Product: Wine Version: 1.9.8 Hardware: x86 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: sebastian@fds-team.de CC: bunglehead@gmail.com Regression SHA1: 12fbfe838c2e6f41ead7445decc447b41921474a Distribution: ---
When trying to export a document as PDF, an error message shows up saying that the export failed.
Bisecting returns: --- snip --- $ git bisect good There are only 'skip'ped commits left to test. The first bad commit could be any of: 12fbfe838c2e6f41ead7445decc447b41921474a 72da5888e9e96e9cfc09c4d5a0e4ab0ecea8f64d We cannot bisect more! --- snip ---
Before 12fbfe838c2e6f41ead7445decc447b41921474a everything was working "fine". At commit 12fbfe838c2e6f41ead7445decc447b41921474a a crash dialog appears. After commit 72da5888e9e96e9cfc09c4d5a0e4ab0ecea8f64d an error dialog shows up.
As it seems, Office is not really happy about the return value of the CreateFontPackage() stub implementation:
--- snip --- fixme:fontsub:CreateFontPackage (0xcc00000 179368 0x335cfc 0x335cf0 0x335cf4 0x1 0 0 0 3 65535 0x3707b10 23 0x32610674 0x328a6d62 0x328a6e8d (nil)): stub fixme:fontsub:CreateFontPackage (0xcc00000 179368 0x335d18 0x335d0c 0x335d10 0x9 0 0 0 3 65535 0x3b882f8 2 0x32610674 0x328a6d62 0x328a6e8d (nil)): stub --- snip ---
Returning EMBED_NOEMBEDDING from TTGetEmbeddingType also avoids the issue.
https://bugs.winehq.org/show_bug.cgi?id=40517
--- Comment #1 from Rosanne DiMesio dimesio@earthlink.net --- I'm not seeing that here, in Word, Excel, or Powerpoint 2007.
What is your version of Office 2007? Mine is Office 2007 Enterprise with SP3, English.
https://bugs.winehq.org/show_bug.cgi?id=40517
--- Comment #2 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Rosanne DiMesio from comment #1)
I'm not seeing that here, in Word, Excel, or Powerpoint 2007.
What is your version of Office 2007? Mine is Office 2007 Enterprise with SP3, English.
It is a "Home and Student" version and the options page displays: "Microsoft Office Word 2007 (12.0.4518.1014) MSO (12.0.4518.1014)". I did some more testing, and it does not seem to occur with all documents, which is probably why you were not able to reproduce it. I'll see if I can come up with a minimal document to make testing a bit easier.
https://bugs.winehq.org/show_bug.cgi?id=40517
--- Comment #3 from Sebastian Lackner sebastian@fds-team.de --- Created attachment 54329 --> https://bugs.winehq.org/attachment.cgi?id=54329 Word document to reproduce the issue
https://bugs.winehq.org/show_bug.cgi?id=40517
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net
--- Comment #4 from Rosanne DiMesio dimesio@earthlink.net --- Yes, I get the error message with your document.
It is a "Home and Student" version and the options page displays: "Microsoft Office Word 2007 (12.0.4518.1014) MSO (12.0.4518.1014)".
Mine says "Microsoft Office Word 2007 (12.0.6612.1000) MSO SP3 (12.0.6607.1000)" Your version is the original release.
FWIW, I tested creating a document with the same text, font, and font size, and did not get the error message when saving it as PDF. I checked both documents with Prepare=>Inspect Document, and your document was reported to contain custom XML data while mine was not.
https://bugs.winehq.org/show_bug.cgi?id=40517
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 54334 --> https://bugs.winehq.org/attachment.cgi?id=54334 patch
I can't reproduce with Office 2010, though it uses same method to get a subset. Please try this patch.
https://bugs.winehq.org/show_bug.cgi?id=40517
--- Comment #6 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Rosanne DiMesio from comment #4)
FWIW, I tested creating a document with the same text, font, and font size, and did not get the error message when saving it as PDF. I checked both documents with Prepare=>Inspect Document, and your document was reported to contain custom XML data while mine was not.
I am not sure what is so special about this document. The attached testcase is a stripped down version of the original file, which I'm probably not allowed to share publicly. ;)
(In reply to Nikolay Sivov from comment #5)
Please try this patch.
The patch fixes the issue here. The resulting PDF file is a bit bigger than before (about twice the size), but I guess thats expected with embedded fonts.
https://bugs.winehq.org/show_bug.cgi?id=40517
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |f99785160009df9d043ec691699 | |216d9c5be517a Status|NEW |RESOLVED
--- Comment #7 from Sebastian Lackner sebastian@fds-team.de --- Fixed in f99785160009df9d043ec691699216d9c5be517a, thanks Nikolay.
https://bugs.winehq.org/show_bug.cgi?id=40517
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|bunglehead@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=40517
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.10.
https://bugs.winehq.org/show_bug.cgi?id=40517
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x CC| |mstefani@redhat.com
https://bugs.winehq.org/show_bug.cgi?id=40517
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #9 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.3.