gnome-screenshot appears to free image copied to clipboard if cancel subsequently clicked

Bug #591498 reported by Patrick Rynhart on 2010-06-08
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-utils (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: gnome-utils

Steps to reproduce this issue in Ubuntu 10.04 LTS

1. Start gnome-screenshot
2. Click "Copy to Clipboard"
3. Click "Cancel" to dismiss the dialog.
4. Start OpenOffice Writer (as an example of another app to paste the image on the clipboard). Within this application, attempt to paste the image in (Edit -> Paste).
5. The Application will segfault (i.e. tail /var/log/messages)

Jun 9 10:11:14 IT040035 kernel: [ 906.571706] soffice.bin[1888]: segfault at 2ae05e9 ip 02ae05e9 sp b356c1a0 error 4 in libsvxli.so[2b82000+31a000]

Notes

A. If the steps are repeated without Step 3 then the fault does not occur.
B. It should be possible to dismiss the gnome-screenshot dialog after an image is copied to the clipboard. There doesn't appear to be any other way to do so without clicking "Cancel" (the only other options are Save and Help). I would therefore argue that "Copy to Clipboard" followed by "Cancel" is a legitimate use.

(Suggestion: Why not change "Cancel" to "Close" after "Copy to Clipboard" is used - this would be more intuitive.) At the very least, the image should not be freed on the clipboard (which is what I suspect is happening here).

C. I suspect that this should be forwarded upstream - if someone on the Ubuntu team could first please check and confirm this issue then I would be happy to do so.

Pedro Villavicencio (pedro) wrote :

the clipboard being cleared after closing the application is a known issue, you should file a new bug for the crash on openoffice it should not crash even if the image doesn't exist anymore, thanks.

Changed in gnome-utils (Ubuntu):
importance: Undecided → Low
status: New → Invalid
Patrick Rynhart (prynhart) wrote :

Thanks Pedro. I have opened an issue with OpenOffice as per your recommendation which is available at:

http://www.openoffice.org/issues/show_bug.cgi?id=112349

Regards,

Patrick

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.