Inkscape crashs with big pictures

Bug #815905 reported by Rafafouille
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned
inkscape (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

(I'm French. Sorry for my poor English)

I try to open 2 big files .svg and the program crashes every times.
(That also crashed once, when I opened just one of both big files, modified it, and saved it, during the saving).
It seems to be a memory problem.

I work on Ubuntu 10.04 - Lynx Lucide
I installed Inkscape 0.48.1 by compiling the source file

Here is the GDB report :

raf@Rafafouille:conditionnement$ gdb /usr/local/inkscape/0.48.1/bin/inkscape
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/inkscape/0.48.1/bin/inkscape...done.
(gdb) run
Starting program: /usr/local/inkscape/0.48.1/bin/inkscape
[Thread debugging using libthread_db enabled]
[New Thread 0xb405ab70 (LWP 23205)]
[New Thread 0xb36ffb70 (LWP 23206)]
[New Thread 0xb2efeb70 (LWP 23207)]
[New Thread 0xb26fdb70 (LWP 23208)]
[Thread 0xb405ab70 (LWP 23205) exited]
[Thread 0xb2efeb70 (LWP 23207) exited]
[Thread 0xb36ffb70 (LWP 23206) exited]
[New Thread 0xb36ffb70 (LWP 23209)]
[New Thread 0xb2efeb70 (LWP 23210)]
[New Thread 0xb405ab70 (LWP 23211)]
[New Thread 0xb1efcb70 (LWP 23212)]
[New Thread 0xb16fbb70 (LWP 23213)]
[New Thread 0xb0cffb70 (LWP 23214)]
[New Thread 0xb04feb70 (LWP 23215)]
[Thread 0xb36ffb70 (LWP 23209) exited]
[Thread 0xb04feb70 (LWP 23215) exited]
[Thread 0xb26fdb70 (LWP 23208) exited]
[Thread 0xb405ab70 (LWP 23211) exited]
[Thread 0xb0cffb70 (LWP 23214) exited]
[Thread 0xb1efcb70 (LWP 23212) exited]
[Thread 0xb2efeb70 (LWP 23210) exited]

** (inkscape:23202): WARNING **: GC Warning: Out of Memory! Returning NIL!

terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc

Program received signal SIGABRT, Aborted.
0xb7fe2430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2430 in __kernel_vsyscall ()
#1 0xb6435651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6438a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb665c52f in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/libstdc++.so.6
#4 0xb665a465 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb665a4a2 in std::terminate() () from /usr/lib/libstdc++.so.6
#6 0xb665a5e1 in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x083788bb in operator new (this=0x8f45850, name=0xbfffdf2c "svg:path")
    at ./gc-core.h:160
#8 Inkscape::GC::Managed<(Inkscape::GC::ScanPolicy)0, (Inkscape::GC::CollectionPolicy)0>::operator new (this=0x8f45850, name=0xbfffdf2c "svg:path")
    at ./gc-managed.h:35
#9 Inkscape::XML::SimpleDocument::createElement (this=0x8f45850,
    name=0xbfffdf2c "svg:path") at xml/simple-document.cpp:54
#10 0x08373ebb in sp_repr_svg_read_node (xml_doc=<value optimized out>,
    node=0x41390728, default_ns=<value optimized out>, prefix_map=0x3c488ef0)
    at xml/repr-io.cpp:516
#11 0x08373f4e in sp_repr_svg_read_node (xml_doc=<value optimized out>,
    node=<value optimized out>, default_ns=<value optimized out>,
    prefix_map=0x3c488ef0) at xml/repr-io.cpp:533
#12 0x08373f4e in sp_repr_svg_read_node (xml_doc=<value optimized out>,
    node=<value optimized out>, default_ns=<value optimized out>,
---Type <return> to continue, or q <return> to quit---
    prefix_map=0x3c488ef0) at xml/repr-io.cpp:533
#13 0x08373f4e in sp_repr_svg_read_node (xml_doc=<value optimized out>,
    node=<value optimized out>, default_ns=<value optimized out>,
    prefix_map=0x3c488ef0) at xml/repr-io.cpp:533
#14 0x08373f4e in sp_repr_svg_read_node (xml_doc=<value optimized out>,
    node=<value optimized out>, default_ns=<value optimized out>,
    prefix_map=0x3c488ef0) at xml/repr-io.cpp:533
#15 0x08374c6d in sp_repr_do_read (doc=0x40756678,
    default_ns=0x877803a "http://www.w3.org/2000/svg") at xml/repr-io.cpp:419
#16 0x08374fd2 in sp_repr_read_file (
    filename=0x3c48c30c "/media/Placard_/Boulot/Centrale/These/FFE_ma_vie/images/DEUX_ESTIMATEURS_XFEM/FFE/conditionnement/carte2D_inverse_conditionnement_projete_ortho_L2.svg", default_ns=0x877803a "http://www.w3.org/2000/svg")
    at xml/repr-io.cpp:301
#17 0x08092df3 in sp_document_new (
    uri=0x3c48c30c "/media/Placard_/Boulot/Centrale/These/FFE_ma_vie/images/DEUX_ESTIMATEURS_XFEM/FFE/conditionnement/carte2D_inverse_conditionnement_projete_ortho_L2.svg", keepalive=1, make_new=false) at document.cpp:452
#18 0x08210557 in Inkscape::Extension::Input::open (this=0x8ae8658,
    uri=0x3c48c30c "/media/Placard_/Boulot/Centrale/These/FFE_ma_vie/images/DEUX_ESTIMATEURS_XFEM/FFE/conditionnement/carte2D_inverse_conditionnement_projete_ortho_L2.svg") at extension/input.cpp:153
#19 0x0820e61f in Inkscape::Extension::open (key=0x0,
---Type <return> to continue, or q <return> to quit---
    filename=0x3c48c30c "/media/Placard_/Boulot/Centrale/These/FFE_ma_vie/images/DEUX_ESTIMATEURS_XFEM/FFE/conditionnement/carte2D_inverse_conditionnement_projete_ortho_L2.svg") at extension/system.cpp:97
#20 0x0809a3ae in sp_file_open (uri=..., key=0x0, add_to_recent=true,
    replace_empty=true) at file.cpp:222
#21 0x0809cdfa in sp_file_open_dialog (parentWindow=...) at file.cpp:540
#22 0x08259b9d in sp_action_perform (action=0x8f52ea8, data=0x0)
    at helper/action.cpp:181
#23 0xb7233dcc in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#24 0xb7226252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#25 0xb723a99d in ?? () from /usr/lib/libgobject-2.0.so.0
#26 0xb723bdb4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#27 0xb723c256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#28 0xb77cb3e5 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb76a99a0 in gtk_menu_shell_activate_item ()
   from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb76ab31f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#31 0xb76a0c64 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0xb769a424 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#33 0xb72248b9 in ?? () from /usr/lib/libgobject-2.0.so.0
#34 0xb7226252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#35 0xb723a5e6 in ?? () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#36 0xb723bc33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#37 0xb723c256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#38 0xb77c7636 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#39 0xb7692a5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#40 0xb7693e07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb751c39a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#42 0xb71785e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0xb717c2d8 in ?? () from /lib/libglib-2.0.so.0
#44 0xb717c817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#45 0xb76943c9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#46 0xb7e4f3a7 in Gtk::Main::run_impl() () from /usr/lib/libgtkmm-2.4.so.1
#47 0xb7e4f1a2 in Gtk::Main::run() () from /usr/lib/libgtkmm-2.4.so.1
#48 0x0808a98b in sp_main_gui (argc=1, argv=0xbffff484) at main.cpp:983
#49 0x0817292a in Inkscape::NSApplication::Application::run (this=0xbffff3ac)
    at application/application.cpp:114
#50 0x08089dca in main (argc=1, argv=0xbffff484) at main.cpp:719

That's all.
If you have any other question, contact me.

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

Possibly related to or same issue as (i.e. duplicate of) Bug #168914 “Inkscape requires large-config support in libgc”

tags: added: performance
removed: big memory too
Revision history for this message
su_v (suv-lp) wrote :

> I try to open 2 big files .svg and the program crashes every times.

Could you provide more information about the files (file size, content), and possibly attach them here?

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

Yes, I'm pretty certain this is a duplicate of bug #168914, and it should already be fixed in Ubuntu Oneiric. In the meantime, you could try installing the latest development version of the libgc package.

I'll mark this as a duplicate, but please feel free to revert the change if you find that the bug can be reproduced when libgc >= 7.1 is installed.

Changed in inkscape (Ubuntu):
status: New → Incomplete
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.