Apache OpenOffice (AOO) Bugzilla – Issue 97396
OO3/Linux crashes on saving xls to ods in headless mode
Last modified: 2013-01-29 21:46:36 UTC
When this doc is imported in Open Office 3 on Linux; Open Office crashes. (But it opens succesfully on Open Office 3 on Windows.) The problem may be with the image in this doc. When i remove the image from all sheets, it opens succesfully in OO3/Linux Attaching two files: (a) NotWorking.xls - this will crash OO3 on Linux. (b)Working.xls - this will work in OO3 on Linux. It is same as the first doc - but has 'image' removed. NOTE: Both docs always work on Windows. No problem is seen on Windows.
Created attachment 58919 [details] This crashes OO 3 on Linux.
Created attachment 58920 [details] This works in OO3 on Linux. Same doc with image removed.
I can open both documents on Linux using build DEV300_m37. Perhaps this is already fixed since OOo3.0. Can someone confirm with OOo3.0?
Opens with images with a Ubuntu 8.10 with GNOME 2.24.1 desktop version of OOO300m9. TomW
When OO crashes in Linux i see following message on console: " terminate called after throwing an instance of 'vigra::PreconditionViolation' what(): Precondition violation! BasicImage::upperLeft(): image must have non-zero size. " This OO was downloaded from here: http://openoffice.cs.utah.edu/stable/3.0.0/OOo_3.0.0_LinuxIntel_install_wJRE_en- US.tar.gz (I load the doc via java program in OO running in 'headless' mode, but that shouldn't matter i guess).
@jasper2000: Does OOo crash only in headless mode? I have tried to reproduce it with OOo3.0 but as tomwb said, both documents worked just fine.
Hi, For me both files works well in OOO300_m13 under Ubuntu 8.04 Regards JBF
I checked with "Ooo 3.0.0 (DE) Multilingual version German UI WIN XP: [OOO300m9 (Build9358)]" and can NOT confirm the crash (as reported). LINUX-specific? @jasper2000: Crash report available? Crashes anyway when open or only when opened in a specific way (OS file explorer ...)
After a few more tests, found that problem is not with 'loading' the file, but with 'saving' it as ods (sorry about the confusion). The exact line that causes the crash is this: xStorable.storeToURL(destinationStoreUrl, propertyValues); I am simply trying to load NotWorking.xls and save it as NotWorking.ods. I am attaching the test program as a zip. The src\Converter.java is the main program. Line 94 is the xStorable line that causes the crash. Also confirming - i am able to open and save the file(to ods) manually in normal UI mode on Linux (non-headless mode).
Created attachment 58959 [details] Test Program (java)
Thanks for the useful sample program. I can now confirm this issue on DEV300_m37 with the previously mention error message: "/opt/openoffice.org3/program/soffice -headless -accept="socket,port=8100;urp;" terminate called after throwing an instance of 'vigra::PreconditionViolation' what(): Precondition violation! BasicImage::upperLeft(): image must have non-zero size."
thb would be the expert on vigra and basebmp usage ?
Yep. Could anybody having reproduced this please run OOo inside gdb, and paste me a backtrace here? The fix for an image paint request of zero size should be fairly trivial then...
Created attachment 62004 [details] crash_report stacktrace
I didn't manage to create a stack trace with gdb. However, crash_report has created an xml file that should be at least somewhat useful. The binaries used are from the official 3.1 RC2 Linux i686 download (OOo_3.1.0rc2_20090427_LinuxIntel_install_en-US.tar.gz).