Apache OpenOffice (AOO) Bugzilla – Issue 123409
Images in background cause crash when saving to pdf/a
Last modified: 2014-04-11 09:18:58 UTC
When saving a document to pdf format, the program stopped responding, and Windows automatically closed it. I found the cause to be an image which I had set to background arragement. When I changed the arrangement, the file saved. A similar problem on LINUX systems was reported. Here is the link if it helps: https://issues.apache.org/ooo/show_bug.cgi?id=121088
Format - Page... - Background - As Graphic Export Directly as PDF No crash AOO401m5(Build:9714) - Rev. 1523756 2013-09-16 20:50:21 (Mo, 16 Sep 2013) Win 7
My apologies - it's not the arrangement, it's the wrap. When I right click on the image, and select Wrap>In Background, it then crashes when I save to pdf. I will attach a couple of files, if that helps.
Created attachment 81695 [details] Document An example document which does not save as pdf
Created attachment 81696 [details] Image THis is the Image I attached. The problem seems to occur regardless of image file format, however.
Thank you. Still no crash.
steps to reproduce: * open new writer file * insert image (tried .jpg, .png and .wmf) * select image * right click, wrap - to background * export as pdf * select "PDF/A-1a" * export -> crash AOO401m5(Build:9714) - Rev. 1524958 2013-09-20 11:40:29 (Fr, 20 Sep 2013) Windows Vista please change status
(In reply to Prosper Uniger from comment #6) Thanks for checking that. I'm new here, so what status should it be?
Thank you Prosper for clarifying. Now crash.
Created attachment 81698 [details] reduced bugdoc
Created attachment 81699 [details] check whether the search actually found anything
*** Issue 123452 has been marked as a duplicate of this issue. ***
*** Issue 122928 has been marked as a duplicate of this issue. ***
I reproduced the crash in AOO 4.0.0 and AOO 4.0.1, but not in AOO 3.4.1, AOO 3.4.0 and OOo 3.2.0. It looks like that <rFrmTagIdMap> is not filled as expected. Herbert and myself assume that this was already the case in former OpenOffice versions, but due to the used stlport the access to the invalid iterator does not cause a crash.
Comment on attachment 81699 [details] check whether the search actually found anything reviewed --> approving suggested fix.
"hdu" committed SVN revision 1530891 into trunk: #i123409# prevent invalid iterator dereference in SwTaggedPDFHelper::CheckReo...
Fixed with the commit above. Thanks for finding and isolating the bug and for reviewing my patch suggestion.
ALG: Checked with fresh Rev. 1530891, works well, is fixed.
revert Armin's field changes.
*** Issue 123486 has been marked as a duplicate of this issue. ***
Verified on AOO Rev 1571942 en-US, no crash now, so change the status to verified Test ENV: Win7 professional 64 bit SP1, Chinese version.
Verified with trunk build Rev. 1582712, fixed.
*** Issue 124660 has been marked as a duplicate of this issue. ***