Clicking "Edit->Paste" causes an internal error

Bug #272192 reported by James Dietrich
2
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

First, there is a shorter description of the problem.
Farther down I present a more detailed description
of the method I used to reproduce it.

I ssh into the remote machine and start GIMP on an image.
I select part of the image and type <Ctrl-X> to cut it.
Then I quit GIMP.
Now (still logged into the remote machine) I start Inkscape
and draw a rectangle. Then I click "Edit->Copy" and then
I click "Edit->Paste".
Then the box about Inkscape having an internal error comes up.
If I start Inkscape again (on the remote machine) the same
thing happens again.

Now I start Inkscape on my local machine and draw a rectangle.
Then I click "Edit->Copy" and then I click "Edit->Paste"
It does paste something, but not the Inkscape rectangle that
I just copied. It pastes the GIMP rectangle I cut out of the image in
GIMP (which was running on the remote machine).
All subsequent "Edit->Paste" clicks paste the Inkscape rectangle
that I just copied.

Now if I start inkscape on the remote machine, all is well again
and I can copy and paste just fine.

Local machine is named saturn:
saturn:~# X -version
X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-5)
Current Operating System: Linux saturn 2.6.22-3-vserver-k7 #1 SMP Mon Nov 12 11:47:04 UTC 2007 i686
Build Date: 26 August 2008 07:32:05PM

Remote Machine is named neptune:
neptune:/home/jdietrch# X -version
X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-1)
Current Operating System: Linux neptune 2.6.25.10 #4 SMP Tue Aug 26 11:43:11 EDT 2008 i686
Build Date: 26 June 2008 01:58:50AM

**** Now follows a longer and more detailed description
**** of how to reproduce this problem.

jdietrch@saturn:~$ ssh -X neptune
jdietrch@neptune's password:
Linux neptune 2.6.25.10 #4 SMP Tue Aug 26 11:43:11 EDT 2008 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 19 09:36:43 2008 from saturn.mills.lan
jdietrch@neptune:~$

First thing is to use imagemagick to make a small png image:
jdietrch@neptune:~$ convert -size 640x480 pattern:checkerboard check.png

Now open it in GIMP:
jdietrch@neptune:~$ gimp check.png

In GIMP, I click on the Rectangle Select Tool and select a
rectangle in the image. Then I click Edit->Cut.
Then I close GIMP, discarding all changes.

Next I start Inkscape, and it brings up an empty document.
jdietrch@neptune:~$ inkscape

In Inkscape I click on the Rectangle Tool and draw a rectangle.
Then I type <Ctrl-C> on the Keyboard to copy the rectangle.
Then I type <Ctrl-V> on the keyboard to paste in in my document.
But nothing happens. I expected to see a second copy of the
rectangle appear, but it doesn't.
When I typed <Ctrl-V> a message printed out on the terminal
where I started Inkscape:

(inkscape:27539): glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g-file-error-quark
code : 2
what : Failed to open '/pastedpic_09192008_112435.png' for writing: Permission denied

Now I click "Edit->Copy" and then I click "Edit->Paste" and
a dialog box comes up with this error:

Inkscape encountered an internal error and will close now.
Automatic backups of unsaved documents were done to the following locations:
        New document 1.2008_09_19_11_30_51.0

Also, this is printed on the terminal where I started Inkscape:

terminate called after throwing an instance of 'Glib::FileError'

Emergency save activated!

Emergency save document locations:
  New document 1.2008_09_19_11_31_58.0
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Aborted

Now if I start Inkscape up again, I can repeat the same
sequence of events. It refuses to copy and paste.

By accident I stumbled upon one way to get out of this problem.
Remember that until now I've been running inkscape and gimp
on the remote machine (neptune) and displaying them on
my machine (saturn).

Now I start Inkscape on my local machine (saturn):
jdietrch@saturn:~$ inkscape
In Inkscape I click on the Rectangle Tool and draw a rectangle.
Then I type <Ctrl-C> on the Keyboard to copy the rectangle.
Then I type <Ctrl-V> on the keyboard to paste in in my document.
Now I would expect to see a second copy of the blue rectangle
I just drew. But instead, the chunk I cut out of the checkerboard
image in GIMP is pasted.
Then I type <Ctrl-V> again and the blue rectangle is pasted as expected.

Now I close Inkscape on my local machine (saturn) and start it again
from the remote machine (neptune). And I can draw the rectangle
and copy and paste just fine with no errors.

Please let me know if you need any more information,

Thank you,
James Dietrich

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

Marking as duplicate of bug #211607. Please add a comment and revert the duplicate status if you don't agree.

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.