Created attachment 177587 [details]
Screenshot of the error message
When opening attachment 96245 [details] from bug 76513 in current master, I get error message:
An error occurred during opening the file. This may be caused by incorrect file contents.
The error details are:
SAXException: [word/document.xml line 2]: unknown error
Proceeding with import may cause data loss or corruption, and application may become unstable or crash.
Do you want to ignore the error and attempt to continue loading the file?
Pressing No gives another error:
File format error found at unsatisfied query for interface of type com.sun.star.frame.XModel3!
SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 1490111(row,col).
author Attila Bakos (NISZ) <firstname.lastname@example.org> Thu Nov 11 14:02:12 2021 +0100
committer László Németh <email@example.com> Thu Jan 06 10:41:32 2022 +0100
tdf#66039 DOCX: import textboxes (with tables, images etc.) in group shapes
Adding CC to: Attila Bakos
Created attachment 177588 [details]
Error message after pressing No to previous question
Created attachment 177593 [details]
Reproduced using LO Version: 184.108.40.206.alpha0+ (b4a281af53efa0c36ee1770e6cf4d800be77a6d2) / Windows.
I've adjusted attachment 96245 [details] using xmllint to get a more accurate line number, but opening that hangs LO. Both files can be opened with LO 220.127.116.11
Created attachment 177598 [details]
The problem in the xml
Well, actually this is not a really regression: As in my attachment shown there is a VML equation inside the WPG-textbox. Before Writer imported nothing from the group-shape-textbox, now tries to import the formula but -- as it not implemented -- it throws an unhandled exception, as it mentioned. Soon there will be a patch from me for this situation too (which will ignore the embed vml part).
Created attachment 177599 [details]
The sample WITH problem minimised
Created attachment 177600 [details]
The sample WITHOUT problem minimised
(In reply to Attila Bakos (NISZ) from comment #3)
> Created attachment 177598 [details]
> The problem in the xml
> Well, actually this is not a really regression: As in my attachment shown
> there is a VML equation inside the WPG-textbox. Before Writer imported
> nothing from the group-shape-textbox, now tries to import the formula but --
> as it not implemented -- it throws an unhandled exception, as it mentioned.
> Soon there will be a patch from me for this situation too (which will ignore
> the embed vml part).
And, there is the patch: https://gerrit.libreoffice.org/c/core/+/128627
Good thing, that problem is fixed where the VML inside the WPG, so it can be loaded now like in the minimised version, the bad one the original still hangs, so there are more problems inside what Writer tries to load... so other fix also coming soon.
Created attachment 177654 [details]
The minimised file is fixed
Created attachment 177665 [details]
The orignal file without that formula
It seems it works in the master, without that embed formula (on page 9, fig.1.7 in the bottom of that page) as my attachment shows.
-> the previous fix not enough for that situation, it must be corrected, coming soon.
Created attachment 177666 [details]
The sample without that formula
Created attachment 177677 [details]
Pdf from the fixed master
It seems it opens and can be converted to pdf without problem :)
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":
tdf#146802 OOXML import: fix embedded VML in grouped textbox
It will be available in 7.4.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
attachment 96245 [details] and attachment 177593 [details] open now.