Issue 97396 - OO3/Linux crashes on saving xls to ods in headless mode
Summary: OO3/Linux crashes on saving xls to ods in headless mode
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.0
Hardware: Unknown Linux, all
: P2 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2008-12-18 13:28 UTC by jasper2000
Modified: 2013-01-29 21:46 UTC (History)
6 users (show)

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


Attachments
This crashes OO 3 on Linux. (191.50 KB, text/plain)
2008-12-18 13:29 UTC, jasper2000
no flags Details
This works in OO3 on Linux. Same doc with image removed. (223.00 KB, text/plain)
2008-12-18 13:31 UTC, jasper2000
no flags Details
Test Program (java) (8.66 KB, text/plain)
2008-12-22 06:36 UTC, jasper2000
no flags Details
crash_report stacktrace (15.93 KB, text/plain)
2009-05-05 14:30 UTC, ringdingcoder
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jasper2000 2008-12-18 13:28:16 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.
Comment 1 jasper2000 2008-12-18 13:29:52 UTC
Created attachment 58919 [details]
This crashes OO 3 on Linux.
Comment 2 jasper2000 2008-12-18 13:31:10 UTC
Created attachment 58920 [details]
This works in OO3 on Linux. Same doc with image removed.
Comment 3 christianlins 2008-12-18 13:43:09 UTC
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?
Comment 4 tomwb 2008-12-19 00:53:34 UTC
Opens with images with a Ubuntu 8.10 with GNOME 2.24.1 desktop version of OOO300m9.

TomW
Comment 5 jasper2000 2008-12-19 05:00:04 UTC
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).
Comment 6 christianlins 2008-12-19 10:39:01 UTC
@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.
Comment 7 jbf.faure 2008-12-20 09:01:36 UTC
Hi,

For me both files works well in OOO300_m13 under Ubuntu 8.04

Regards
JBF
Comment 8 Rainer Bielefeld 2008-12-20 16:44:19 UTC
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
...)
Comment 9 jasper2000 2008-12-22 06:34:58 UTC
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).
Comment 10 jasper2000 2008-12-22 06:36:28 UTC
Created attachment 58959 [details]
Test Program (java)
Comment 11 christianlins 2008-12-22 09:42:50 UTC
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."
Comment 12 philipp.lohmann 2009-01-06 10:19:22 UTC
thb would be the expert on vigra and basebmp usage ?
Comment 13 thb 2009-01-07 10:08:28 UTC
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...
Comment 14 ringdingcoder 2009-05-05 14:30:22 UTC
Created attachment 62004 [details]
crash_report stacktrace
Comment 15 ringdingcoder 2009-05-05 14:33:55 UTC
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).