copy, paste, crash

Bug #381301 reported by Flx Ndres
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned
inkscape (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I tried to copy and paste a rectangle (with default settings). Same happens with circles (and probably everything else?). My system is an up-to-date ubuntu 9.04.
The "unhandled exception" occurs when using ctrl-x, ctrl-v. Nothing happens in the program.
The crash occurs when using copy and paste from context or edit-menu.
Regards,
Felix

user@system:~$ 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 "i486-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/inkscape
(no debugging symbols found)
(...)
(no debugging symbols found)
[New Thread 0xb1d57b90 (LWP 726)]
[New Thread 0xb1556b90 (LWP 727)]
[New Thread 0xacbfeb90 (LWP 728)]
[New Thread 0xac3fdb90 (LWP 729)]
[Thread 0xb1d57b90 (LWP 726) exited]
[Thread 0xb1556b90 (LWP 727) exited]
[Thread 0xacbfeb90 (LWP 728) exited]
[Thread 0xac3fdb90 (LWP 729) exited]
(no debugging symbols found)

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

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

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb64d3720 (LWP 717)]
0xb7fca430 in __kernel_vsyscall ()
(gdb)
(gdb) bt
#0 0xb7fca430 in __kernel_vsyscall ()
#1 0xb69d66d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb69d8098 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb6c198f8 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0xb6c177d5 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb6c17812 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb6c1794a in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb7afb593 in Glib::FileError::throw_func () from /usr/lib/libglibmm-2.4.so.1
#8 0xb7b083e2 in Glib::Error::throw_exception () from /usr/lib/libglibmm-2.4.so.1
#9 0xb7be7d53 in Gdk::Pixbuf::save () from /usr/lib/libgdkmm-2.4.so.1
#10 0x080a8b26 in ?? ()
#11 0x083b520d in ?? ()
#12 0xb72b53a4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#13 0xb72a7c7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb72bde57 in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0xb72bf4b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb72bf936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb77fa3f7 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#18 0xb76e8410 in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb76e9fed in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb76dfc5b in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb76d9526 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb72a63d9 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0xb72a7c7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#24 0xb72bdaff in ?? () from /usr/lib/libgobject-2.0.so.0
#25 0xb72bf34f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#26 0xb72bf936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#27 0xb77f42ae in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb76d1f7c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb76d3327 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb756034a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#31 0xb720ab88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb720e0eb in ?? () from /usr/lib/libglib-2.0.so.0
#33 0xb720e5ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0xb76d37d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7e3a3d7 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1
#36 0xb7e3a1d2 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#37 0x08085889 in ?? ()
#38 0x081c5412 in ?? ()
#39 0x08085cbd in ?? ()
#40 0xb69c1775 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#41 0x08084cf1 in ?? ()

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Ubuntu 9.04, Inkscape 0.46-5ubuntu4 and rev. 21447.
Bug #308456 and Bug #339566 are very close to this one.

Revision history for this message
Alvin Penner (apenner) wrote :

@Felix,
    as an experiment, have you tried to do a copy and paste after a clean reboot, where you know for sure that the clipboard is empty?
- also which version of Inkscape?

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

Felix wrote:
> what : Failed to open '/pastedpic_05282009_151750.png' for writing: Permission denied

Do you have permission to write to '/'? Or are you running inkscape as 'root' ($HOME='/')?

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

This might be related to the paste operation doing the wrong data type. See
https://bugs.launchpad.net/inkscape/+bug/381540

Revision history for this message
Flx Ndres (1980er) wrote :

@~suv: I started as normal user and have no permission to write to the root dir /
@Alvin: I usually don't reboot this machine, but I try to do so next time. inkscape --version -> Inkscape 0.46 (Apr 8 2009)

Revision history for this message
Flx Ndres (1980er) wrote :

Works after reboot. Copying text or Img elsewhere does also not disturb inkscape copy/paste...

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

to reproduce similiar crash on OS X:

rename preferences.xml
1) create a new drawing, draw an object
2) save as 'drawing.svg' in 'File System' aka '/'
3) Inkscape silently fails to save (except console warning)
4) window title bar now says '/drawing.svg'
4) select shape, Edit > Make a Bitmap Copy
5) again, inkscape silently fails (console msg only), no bitmap is pasted
6) Edit > Paste
7) inscape crashes with 'Inkscape encountered an internal error and will close now.'

On OS X 10.5.7, X11 2.3.3.2, Inkscape 0.46+devel r21420, these steps crash inkscape about 3 times of 4 in a row. Could not figure out what else is in play.

--------------------------------------------------------------------------------
Fri May 29 13:27:23 CEST 2009
script: starting inkscape...
arguments:
--------------------------------------------------------------------------------
Xlib: extension "RANDR" missing on display "/tmp/launch-6GNBI7/:0".

(inkscape-bin:17650): Gtk-WARNING **: Unable to find default local directory monitor type

(inkscape-bin:17650): Gtk-WARNING **: Unable to find default local directory monitor type

(inkscape-bin:17650): Gtk-WARNING **: Unable to find default local directory monitor type

** (inkscape-bin:17650): WARNING **: There was an error saving the file.

(inkscape-bin:17650): Gtk-WARNING **: Unable to retrieve the file info for `file:///drawing.svg': Error stating file '/drawing.svg': No such file or directory

** (inkscape-bin:17650): CRITICAL **: bool sp_png_write_rgba_striped(SPDocument*, const gchar*, long unsigned int, long unsigned int, double, double, int (*)(const guchar**, int, int, void*), void*): assertion `fp != NULL' failed
terminate called after throwing an instance of 'Glib::FileError'

Emergency save activated!
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.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Karmic Koala. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Changed in inkscape (Ubuntu):
status: New → Incomplete
tags: added: clipboard crash
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

We haven't heard from you in a while, and this bug seems to have been fixed in the latest development release of inkscape so I'll close this report. If you still experience the same problem after upgrading, please feel free to reopen this report by changing its status from "Invalid" to "New" in the selector at the top of this page. Thanks!

Changed in inkscape (Ubuntu):
status: Incomplete → Invalid
Changed in inkscape:
status: New → Invalid
Revision history for this message
su_v (suv-lp) wrote :

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

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

… or would if I could without changing the other duplicate from the ubuntu project. Any way - it's the same Inkscape bug as reported in bug #211607.

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.