Apache OpenOffice (AOO) Bugzilla – Issue 119189
Print Selection crash Writer when is chosen again
Last modified: 2013-10-08 16:33:53 UTC
Created attachment 77420 [details] print_selection_crash.odt Reprodused for Apache OpenOffice 3.4.0: AOO340m1(Build:9589) rev. 1303653 OpenOffice.org 3.4.0 beta (OOo-dev 3.4.0): OOO340m0 (Build:9583) OpenOffice.org 3.3.0 1. Open test file "print_selection_crash.odt". 2. Select some text, text in table or whole table. 3. Go to menu "File" - "Print" 4. Note that "Selected" print item is chosen 5. Choose "All Pages" or "Pages" item 6. Nopw choose "Selection" again - Writer is crashing, Document recovery dialog appears.
ALG: Debugged down to SwXTextDocument::getRendererCount line 2726 where on changing back to selection executing ViewOptionAdjustStop destroys pViewShell. I have no knowledge of the new printer dialog nor Writer, evtl. this info helps someone.
confirming crash in writer print dialog btw: if one select a cell range in spreadsheet application and opens print dialog, "All sheets" (and not Selected cells) is preselected.
ALG: I could show that SwRenderData::ViewOptionAdjustStop() deletes the ViewShell which is used in SwXTextDocument::getRendererCount after that call. Trying to re-get the ViewShell after that call...
ALG: Looks like SwXTextDocument::getRendererCount is simply not designed for a ViewShell chane (in pViewShell) when calling ViewOptionAdjustStop(). This needs to be changed principally. Since it also happens on OOo3.3 (and other derivates) it did not get worse, thus no showstopper from my POV.
based on the analysis of Armin and the fact that this is an older issue I would agree that it is not showstopper for 3.4.
Repeatable crashes should probably be evaluated for fixing in point releases. Adding "?" to 3.4.1_release_blocker as requested by Guillame on ooo-dev.
Reproduced against AOO 3.4 publish build on Windos XP platform. Agree this should be AOO 341 relase blocker as changing the section in print dialog is one common scenario,move the version to AOO 341.
I confirm the Issue "Merle leucomèle" printing test crash : http://user.services.openoffice.org/fr/forum/download/file.php?id=41334 Inconveniant very serious, because the record "Save As..." with ODF Text Document (.odt) in AOO, produced a new document that reproduces the crash. Crash also with the "Print to file" option. Workaround: Ctrl + A and Ctrl + C to copy the contents of the document, and then pasting into a New Document Writer AOO ... crash report under MacOsX Lion 10.7.4 http://user.services.openoffice.org/fr/forum/download/file.php?id=41335
Changed back to AOO340: Version: This field is to show the version where the problem has occurred first. Target: This field is to set the release where the problem should be fixed.
taking over ownership
set release blocker flag for 3.4.1
fixed on AOO34 branch, changed files: /sw/source/ui/uno/unotxvw.cxx revision 1346776 /vcl/inc/vcl/print.hxx /vcl/source/gdi/print3.cxx revision 1346777
merged fix into trunk, revision 1346805
Verified it on Aoo_Trunk_20120616.1800.1350879 and it does not reproduce, so close it as fixed.
also not reproduce on build r1351960(AOO develop snapshot,AOO341 branch)
set target milestone AOO 3.4.1