gnome-screenshot appears to free image copied to clipboard if cancel subsequently clicked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-utils (Ubuntu) |
Invalid
|
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.
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.
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.