Issue 95423 - OpenOffice Calc crashes when opening particular file (see attachment)
Summary: OpenOffice Calc crashes when opening particular file (see attachment)
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: open-import (show other issues)
Version: OOo 3.0
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL:
Keywords: crash, oooqa, release_blocker
Depends on:
Blocks:
 
Reported: 2008-10-24 15:02 UTC by dcviana
Modified: 2013-08-07 15:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
File that crashes Calc (2.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2008-10-24 15:03 UTC, dcviana
no flags Details
This file passes validation at http://tools.services.openoffice.org/odfvalidator/ but still causes openoffice to crash. (2.92 KB, application/vnd.oasis.opendocument.spreadsheet)
2008-10-25 00:08 UTC, dcviana
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dcviana 2008-10-24 15:02:25 UTC
I have a ODS file created using JasperReports 3.1.0 exporter.

When I try to open the file, OpenOffice Calc crashes and show me the bug report
window. This happens everytime I try to open this file.

I tried to export a diferent report with JasperReports but the results are the same.

I don't know if the file is malformed, but even if it is, OpenOffice should give
a nice message informing the file is malformed, not crash.

I'm using BrOffice 3.0 (Brazilian version of OpenOffice) on Ubuntu Linux 8.04
Comment 1 dcviana 2008-10-24 15:03:47 UTC
Created attachment 57437 [details]
File that crashes Calc
Comment 2 frank 2008-10-24 22:14:12 UTC
Have tried it on Windows and got an Error message but not a crash.
Will evaluate further on Monday.

For future use to check for valid OASIS ODF documents you may use this URL:

http://tools.services.openoffice.org/odfvalidator/

Frank
Comment 3 dcviana 2008-10-25 00:06:36 UTC
I have removed my BrOffice 3 instalation and installed the official OpenOffice 3
from http://www.openoffice.org so I could try to see if the problem was
exclusive to the Brazilian version.

It showed the same error and crashed again. The message was: 
Due to an unexpected error, OpenOffice.org crashed. All the files you were
working on will now be saved. The next time OpenOffice.org is launched, your
files will be recovered automatically.

Also I ran the validator you suggested, and it did find an error. I removed the
offending line from content.xml, repackaged the ODS file and ran the validator
again. This time, the validator indicated the file as valid but OpenOffice still
crashes when opening it. I will attach the new version that passed validation.
Comment 4 dcviana 2008-10-25 00:08:16 UTC
Created attachment 57446 [details]
This file passes validation at http://tools.services.openoffice.org/odfvalidator/ but still causes openoffice to crash.
Comment 5 dcviana 2008-10-25 00:46:20 UTC
I tried on Windows and confirmed that it behaves differently. It gives an error
"An unknown error has ocurred" and shows a blank document, but it doesn't crash.

Even so, the message it gives should be something like "Could not open the file,
it is either corrupted or invalid".

Anyway, maybe the crash just happens on Linux.
Comment 6 Mechtilde 2008-10-25 20:14:46 UTC
error code rf2hmuc
Comment 7 Mechtilde 2008-10-25 20:15:10 UTC
add to CC
Comment 8 frank 2008-10-27 12:21:08 UTC
Hi Eike,

as discussed this one's for you.

Frank
Comment 9 ooo 2008-10-27 14:55:20 UTC
In cws calc46:
sc/source/ui/unoobj/docuno.cxx  1.68.104.2

Note that the underlying cause was an uncaught exception due to the embedded
<text:bookmark> element. Calc does not know bookmarks within cell text. However,
it should of course also not crash when encountering such.
Comment 10 ooo 2008-10-28 12:38:57 UTC
Reassigning to QA for verification.
Comment 11 oc 2008-11-03 13:31:55 UTC
verified in internal build cws_calc46
Comment 12 Mechtilde 2008-12-11 14:02:00 UTC
verified in OOO300_m13
-> closed