Bug 46615 - FILESAVE: Save as picture causes frequent crashes
Summary: FILESAVE: Save as picture causes frequent crashes
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected)
3.5.0 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Reported: 2012-02-25 06:29 UTC by Callegar
Modified: 2014-05-04 12:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Callegar 2012-02-25 06:29:23 UTC
Problem description: Selecting an image and choosing "Save as image" most often results in an application crash

Steps to reproduce:
1. Open an odg, or odp file including a bitmap
2. Select bitmap, right click to get context menu, select save as picture from context menu
3. Provide a filename and press ok

Current behavior:

libreoffice does not suggest a file type for the image to be saved. On saving most often it crashes leaving no java log (as it often does). When it crashes, one remains with a zero length file for the saved image. Even when it does not crash, one gets things like

(soffice:13406): Gtk-WARNING **: Unable to retrieve the file info for `file:///home/callegar/Documents/Didattica/Slides/EAA_2011-12/pot2.png': Error stating file '/home/callegar/Documents/Didattica/Slides/EAA_2011-12/pot2.png': No such file or directory
terminate called after throwing an instance of 'com::sun::star::lang::DisposedException'

Expected behavior:

libreoffice suggests the file type capable of providing the best image export (the same as the type in which the image is stored inside the document file). Then it saves the file correctly.

Platform (if different from the browser): 
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Comment 1 Julien Nabet 2012-02-26 09:28:56 UTC
I'm not sure but I think it's a duplicate of fdo#46340.
If it's not, don't hesitate to change the status.

*** This bug has been marked as a duplicate of bug 46340 ***
Comment 2 Callegar 2012-02-26 23:41:20 UTC
I do not know if it is the same.

Further experiments make me think that the issue may be with the file format, here. Something like saving in a format that LO does not know how to convert the image to crashes LO.

For instance, in a set of experiments, I have been consistently always successful in saving files if I provide a filename with the ppm extension (which should be one of the most basic bitmap formats). Conversely, I had frequent crashes trying to save as png.
Comment 3 Julien Nabet 2012-03-03 00:23:53 UTC
You're right so I reopen  this bug
BTW, fdo#46340 is now resolved but I didn't test this bug on master to see if it's better or not.
Comment 4 retired 2014-05-04 12:31:43 UTC
Wow, not seen a bmp file in ages. Are people still using those?!?

So I created a bmp because I couldn't find one. Open LO > draw

Insert bmp file. right click on image in draw > save picture as, dialogue opens.

enter name, save, works fine.