Inkscape crashes when copying and pasting picture from openoffice document

Bug #328597 reported by Rob Adamson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
High
Unassigned

Bug Description

When I try to copy and paste a bitmap image into Inkscape from openoffice writer Inkscape crashes with message "Inkscape encountered an internal error and will close now". Sample .odt file and gdb output attached. Openoffice version 3.0.1 (Build: 9379) and Inkscape version 0.46 on an up-to-date Ubuntu Intrepid.

gdb output:
#0 0xb806b430 in __kernel_vsyscall ()
#1 0xb67848a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6786268 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb69c2778 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#4 0xb69c0655 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb69c0692 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb69c07ca in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb7ba2313 in Glib::FileError::throw_func ()
   from /usr/lib/libglibmm-2.4.so.1
#8 0xb7baf122 in Glib::Error::throw_exception ()
   from /usr/lib/libglibmm-2.4.so.1
#9 0xb7c8c9f3 in Gdk::Pixbuf::save () from /usr/lib/libgdkmm-2.4.so.1
#10 0x080a9716 in ?? ()
#11 0x083b523d in ?? ()
#12 0xb736b3d4 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#13 0xb735dc4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb7374095 in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0xb73757ac in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb7375c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb78a7477 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#18 0xb7799f70 in gtk_menu_shell_activate_item ()
 from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb779bb4d in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb77924fb in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb778c036 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb735c3c9 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0xb735dc4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#24 0xb7373d3d in ?? () from /usr/lib/libgobject-2.0.so.0
#25 0xb737562b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#26 0xb7375c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#27 0xb78a133e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb7784b4c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb7785ef7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb761c50a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#31 0xb72c06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb72c3da3 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0xb72c42c2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0xb77863a9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7eca4c7 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1
#36 0xb7eca2c2 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#37 0x080864c9 in ?? ()
#38 0x081c5652 in ?? ()
#39 0x080868fd in ?? ()
#40 0xb676f685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#41 0x08085931 in ?? ()

Revision history for this message
Rob Adamson (rob-adamson) wrote :
nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Cannot reproduce this behavior on Fedora 10, inkscape rev. 21287. Could you please test a nightly build?

Revision history for this message
seahen (seahen123) wrote :

Same issue in 0.46 on Kubuntu 8.04 if source is Firefox and image is http://magiccards.info/scans/en/10e/252.jpg. gdb trace:

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

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb62376c0 (LWP 15679)]
0xb7eef410 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb678f085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6790a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb69b7480 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0xb69b4d05 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb69b4d42 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb69b4e6a in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb7a8cbb3 in Glib::FileError::throw_func () from /usr/lib/libglibmm-2.4.so.1
#8 0xb7a99c81 in Glib::Error::throw_exception () from /usr/lib/libglibmm-2.4.so.1
#9 0xb7b799f3 in Gdk::Pixbuf::save () from /usr/lib/libgdkmm-2.4.so.1
#10 0x080ac542 in ?? ()
#11 0x083eedbd in ?? ()
#12 0xb740caef in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#13 0xb73ff749 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb7413f7b in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0xb7415c0f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb7415f59 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb7800278 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#18 0xb76e9bc2 in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb76eb708 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb76e2914 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb76dc8d4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb73fe069 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0xb73ff749 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#24 0xb741410a in ?? () from /usr/lib/libgobject-2.0.so.0
#25 0xb7415937 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#26 0xb7415f59 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#27 0xb77fb667 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb76d5b21 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb76d6d88 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb754fa9a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#31 0xb7364cf6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb73680b3 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0xb7368497 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0xb76d7264 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7d52307 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1
#36 0xb7d520f2 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#37 0x08087a3e in ?? ()
#38 0x081d5feb in ?? ()
#39 0x080874ef in ?? ()
#40 0xb677a450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#41 0x08086a71 in ?? ()

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Could you please test a more recent version? If you don't feel like compiling one yourself, then you could download one here (although it's already a few months old):

https://launchpad.net/~inkscape-nightly/+archive/ppa

Thanks

Revision history for this message
ET76 (et76) wrote :

Same problem here with VISTA 32bit.

Inserting any pics worked throughout the last 3 months.
Now, Inkscape crashes when CTRL+V any picture.

:-(

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

I assume you're using a recent nightly build, right? Which revision exactly?

Revision history for this message
ET76 (et76) wrote :

Hi Diederik,

as I am not a programmer, I do not have any idea how to do that...
I use 0.46, downloaded for i386.

What I do not understand: I have been working with inkscape some weeks now and I have inserted a lot of jpegs as a blueprint to work on.
And now that does not work anymore.

Found a workaround last night: use CTRL+I to open an import dialogue.
Some more steps but the result is the same than CTRL+V.

Happy for now.

Saw the new 0.47 release and hope this one is available for windows-user soon. :-)

Bye

Tobias

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Hi Tobias,

You can download a nightly build from our homepage, no need to compile or install anything yourself; just unzip the package using 7zip and start the .exe file. You can have both the original v0.46 and the nightly build simultaneously installed and even simultaneously running. see

http://www.inkscape.org/download/

and look for the "development versions" header. The newest version is Inkscape21627-0906200405.7z.

I thought you installed a new version already and that that revealed the crash, but apparently it is the same version that just stopped working, which is strange. It would be great if you could confirm whether this bug is still present in the nightly build. If it is then we should get this fixed a.s.a.p.

Thanks,

Diederik

Revision history for this message
ET76 (et76) wrote :

Hi Diederik,

ok - downloaded that file and extracted it. This is a really brand new version from yesterday???
Well - it crashed.
Detailed description: start inkscape exactly as you described. Open Windows Snipping Tool. Snipping anything. CTRL+V. Crash.

But now: I uninstalled my first 0.46 Version completely (using Revo Uninstall). Started the SAME version as mentioned above (the new downloaded one). And now it works! Tried three times now. It works.

So: installed the "old" 0.46 again. It works, too!

Conclusion: something went wront with the old version, that uninstalling with the inkscape-uninstaller and a new installation did not fix. Using the newest nightly build did not work, too.
Uninstalling it with Revo (deep uninstall incl. registry cleanup) fixed it. Both, old and brand-new version work now.

Thanks for your help!

Bye

Tobias

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Yes, this is really brand new and updated on a daily basis. We will soon release a v0.47 which is very similar to this nightly build. So if you run into any new bugs then please report them, and we'll try to get them fixed!

Hhm, it was maybe an issue with the preferences of the v0.46 version. Weird!

I didn't know yet that Vista had a snapshot tool integrated, so I learned something again today ;-). Could you please try coping a picture for example from your browser to Inkscape, and see if this leads to a crash too? I'm trying to rule out Vista's snipping tool as a cause of the problem. Maybe it's storing things on the clipboard in a format different from what Inkscape expects or can handle

Thanks for your effort!

Revision history for this message
ET76 (et76) wrote :

Hi Diederik,

I can not reproduce this error, as it only appeared with the "old", now (deep)uninstalled version.
But when it appeared, it was no matter if the clipboard came from the Snipping Tool or from any other editor.

Of course, I will post as soon as I find new errors.

You know: I am an Inkscape newbie and therefore my chances are very high to find bugs. (As proffessionals never ever do things, I do ... chaos).... :-)

You are doing a great job on developing inkscape. Real illustrator kickin'.

I love it. Keep on!

Bye

Tobias

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Thanks for the compliments, but it's obviously not just me, it's also the other developers, translators, and bug reporters of course :-)

About this bug report: I'll leave it open for now just to be sure, but we still haven't found any evidence that this bug still exists in the current builds. It might have been solved already...

tags: added: clipboard crash
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.

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.