Crashes after clipboard paste

Bug #418832 reported by hielos
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I am running Ubuntu 9.04 in Spanish/catillian version. My version of Inkscape is: 0.46 built Apr 8 2009
The bug:
Ikscape crashes whenever I try to paste something from the clipboard (copied from another application). Steps:
(1) Go to Gimp and open an image.
(2) Go to Edit → Copy.
(3) Go back to Inkscape (if not opened, open it)
(4) If I press Ctrl + V nothing gets pasted
(5) If I go to Edit → Paste it says: 'Inkscape ha encontrado un error interno y se cerrará' (translation: Inkscape has found an internal error and will shut down)
(6) When trying to run de "gdb", it just hangs (no pop-up message, and I have to force it to close) and after forcing it to shut down and running "bt" in the terminal it says:

#0 0x00007fa6d9cd8fb5 in raise () from /lib/libc.so.6
Cannot access memory at address 0x7fffe95f86a8

The whole "gdb" output is as follows (at the end it says that the program is still running while it actually is not):

$ gdb /usr/bin/inkscape
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/inkscape
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7fa6e15bd790 (LWP 11917)]
terminate called after throwing an instance of 'Glib::FileError'

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fa6e15bd790 (LWP 11917)]
0x00007fa6d9cd8fb5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007fa6d9cd8fb5 in raise () from /lib/libc.so.6
Cannot access memory at address 0x7fffe95f86a8
(gdb) bt
#0 0x00007fa6d9cd8fb5 in raise () from /lib/libc.so.6
Cannot access memory at address 0x7fffe95f86a8
(gdb) q
The program is running. Exit anyway? (y or n) y

Well, this is my system information:
$ lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82Q35 Express PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)

su_v (suv-lp)
tags: added: crash linux
removed: inkscape paste
Revision history for this message
su_v (suv-lp) wrote :

1) other crash reports related to copy&paste (on linux):
   all report "terminate called after throwing an instance of 'Glib::FileError'"
Bug #211607 “Crashes when attempting to use "Paste objects from clipboard..."”
Bug #308456 “copyt/paste crashes Inkscape”
Bug #381301 “copy, paste, crash”

2) Do you use 'Parcellite'? There are reports that it interferes with Inkscape (empty clipboard):
Bug #312286 “Copy+Paste stopped working”
Bug #399149 “Inkscape 0.47 (inkscape - 0.47~pre0-0ubuntu1~9.04) don't copy and past ”

Revision history for this message
hielos (hielos-deactivatedaccount) wrote :

Well ~suv, after reading (not completely) Bug #211607 “Crashes when attempting to use "Paste objects from clipboard..."”, I have found that 'sudo inkscape' from a terminal makes Inkscape to actually paste what I need. However, there is still something odd about pasting. Once I paste, I cannot "re-paste" (like if the clipboard got empty). I don't really know if it is a natural behaviour in Ubuntu, though. By the way, let me define "re-paste": I can't paste anything twice. Something else, someone (in the bug I mentioned above) said that he/she could not paste even when copying within Inkscape. I can (just if this is useful). Right now, this would be enough for me, but if you think I can try other things so as to help improve Inkscape, please let me know. Before I go, I don't have 'Parcellite' (checked on Synaptic). Thanks a lot :D

tags: added: clipboard
Revision history for this message
su_v (suv-lp) wrote :

1) crash
Can you try if the crash still occurs if you save the new Inkscape document before pasting a bitmap image from the clipboard? (test with Inkscape *not* running as 'root' - this wouldn't be a good solution anyway ;-).

Background: when pasting an image (or bitmap copy) Inkscape doesn't embed the image data itself into the document but writes a 'inkscape_pasted_image_XXX.png' to the disk and links to it from the SVG document using '<image … xlink:href="…">'. Depending on Inkscape version and platform the location of these PNGs for new (=unsaved) documents varies. If the user of Inkscape doesn't have permission to write to that location Inkscape crashes due to an unhandled 'Glib::FileError'. When a document has been saved, the linked bitmap-copies are written to the same directory as the SVG document, thus no crash should occur.

This crash issue is most likely a duplicate of bug #211607.

2) can't paste anything twice
This is strange. Do you use any other applications that monitor the clipboard (like e.g. a download manager)? Does it only happen with Inkscape or with other applications as well?

Revision history for this message
hielos (hielos-deactivatedaccount) wrote :

First of all, I have a brand new Ubuntu install (same Jaunty; 9.04, same system).
Ok, there is something reaaaaally weird: When saving, it does paste without a problem. But the re-pasting persist. This is the catch: after having pasted in Inkscape, a PNG file is created on the Desktop. After the fist paste, I cannot re-paste. Sorry.. I'll complete this tomorrow SORRY SORRY SORRRY

Revision history for this message
su_v (suv-lp) wrote :

> brand new Ubuntu install (same Jaunty; 9.04, same system)
still using Inkscape 0.46?

> After the first paste, I cannot re-paste.
I tested again and can reproduce this with Inkscape 0.46-2 on OS X 10.5.8. Seems an issue of the old clipboard handling. Inkscape 0.47 has a new support for the system clipboard and no longer this limitation (on OS X at least) AFAIU. Sorry if I gave a false hint regarding clipboard manager or monitoring application - that's relevant for 0.47(pre) only.

> after having pasted in Inkscape, a PNG file is created on the Desktop
I assume you saved a SVG drawing to the desktop recently before re-testing pasting?
Inkscape 0.46 re-uses the path of the last saved file if available for writing 'pastedpic_*.png'. I can reproduce the crash with Inkscape 0.46-2 if I reset the preferences (rename ~/.inkscape/preferences.xml), open Inkscape and paste an image (like a screenshot) from the clipboard into the first unsaved document. Inkscape immediately crashes with 'terminate called after throwing an instance of 'Glib::FileError'. Once I have saved a document Inkscape can re-use a valid path name from the preference <group id="save_as" …> for storing the pasted bitmap on disk and no longer crashes.

Revision history for this message
hielos (hielos-deactivatedaccount) wrote :

> still using Inkscape 0.46?
Yes, the same version (0.46 apr 8 build; from Ubuntu repositories)

> I assume you saved a SVG drawing to the desktop recently
Yes. Actually, the document on which I was working

The weird part is that with this new Ubuntu Install, Inkscape does not crash anymore.

What I discovered just now is that if I copy a picture within Inkscape, I cannot paste it on Gimp (or any other application). Trying with OpenOffice, I saw that there is a pop-up message (translated): The format from clipboard is not available

I hope this helps.

Revision history for this message
su_v (suv-lp) wrote :

Thank you for reporting back. The upcoming Inkscape 0.47 will have better support for the system clipboard, see the Release notes 0.47: <http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Desktop_integration_improvements>

Marking this report as duplicate of bug #211607. If you don't agree please add a comment and revert the duplicate status.

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

Other bug subscribers

Remote bug watches

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