Problem description: Steps to reproduce: 1. open attached odt file Current behavior: LO 3.5 crashes Expected behavior: LO 3.5 opens the file as it does in 3.4.5 version Note 1: I am not sure if the odt file produced by JasperReport is a valid ODF but LO should'nt crash. Note 2: if I open the file with LO 3.4.5 and save it under a new name, I can open this new file with LO 3.5 but it looks slightly different. The document seems to be a very complicated set of tables with many empty cells. In LO 3.5 it is impossible to hide table boundaries. Platform (if different from the browser): Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Created attachment 58597 [details] ODT bugdoc which kills LO
The bugdoc kills LO 3.5.2 rc0+ (Version ID : c39e96d-a73d29c-73cb0b8-f269e46-686380c) and the master too (LibreOffice 3.6.0alpha0+ Build ID: 08ba87c-49d3d39-e67b1bf-879ce36-638d9c). Best regards. JBF
Version of JasperReports used to produce the bugdoc : 4.5.1
Created attachment 58605 [details] Valgrind report of the crash
Hi Cédric, Please, have a look at this crash. Perhaps the bugdoc is not a valid ODF file, but LO should'nt crash. Best regards. JBF
Hi! editeng/source/items/frmitems.cxx:1954 1951: for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n) 1952: { 1953: editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) ); 1954: pLine->SetStyle( eBorderStyle ); 1956: } Here pLine is a NULL pointer, so calling its member function (SetStyle) causes SIGSEGV. Putting 'if( pLine )' before line 1954 causes LO to load the document. Table boundaries are impossible to hide like you said. Szabolcs
Dezsi Szabolcs committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1489254311e75a379a129bceeab49643ebea04e0 fdo#47436: Fixed crash while opening odt file.
Works well in master (version 3.6.0alpha0+ (Build ID: 6a018de)). Thank you. Is this fix backportable to LO 3.5 ? Setting resolved as fixed anyway. Best regards. JBF
Dezsi Szabolcs committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1ad284007d898c68665c91979be3bd326c290ba1&g=libreoffice-3-5 fdo#47436: Fixed crash while opening odt file. It will be available in LibreOffice 3.5.4.
*** Bug 49209 has been marked as a duplicate of this bug. ***
Verified with LOdev 3.6 (master - 18-May-2012 02h44 x86@6-fast; Build ID: 8b1d29b) under Windows Vista 64.