Crash (std::bad_alloc) on file load in SPObject::updateDisplay
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Environment:
Inkscape 0.47 on Gentoo (kernel 2.6.34), Xfce desktop. Greater detail at bottom.
Data:
Attached SVG
Details:
Worked on attached file for some hours yesterday, hacking about trying things out. Saved file. This morning no longer able to open the file. Crash information below (after rebuild to add debug syms, otherwise same software). Suspecting a basic corrupted file I also tried opening a version of the file run through xmllint with same result.
chrisw@newton ~ $ inkscape drawing-2.svg
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
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.
** (inkscape:11274): WARNING **: SPObject:
terminate called recursively
Aborted
Backtrace:
chrisw@newton ~ $ gdb /usr/bin/inkscape
GNU gdb (Gentoo 7.0.1 p1) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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 "i686-pc-
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/bin/
(gdb) run drawing-2.svg
Starting program: /usr/bin/inkscape drawing-2.svg
[Thread debugging using libthread_db enabled]
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe424 in __kernel_vsyscall ()
#1 0x4104f880 in raise () from /lib/libc.so.6
#2 0x410510b5 in abort () from /lib/libc.so.6
#3 0x413349ff in __gnu_cxx:
from /usr/lib/
#4 0x41332925 in ?? ()
from /usr/lib/
#5 0x41332962 in std::terminate() ()
from /usr/lib/
#6 0x41332aa1 in __cxa_throw ()
from /usr/lib/
#7 0x4133312b in operator new(unsigned int) ()
from /usr/lib/
#8 0x0865bb01 in __gnu_cxx:
this=0x9949014, __position=..., __x=...)
at /usr/lib/
#9 std::_Vector_
at /usr/lib/
#10 std::vector<
at /usr/lib/
#11 0x0865bc9a in std::vector<
at /usr/lib/
#12 0x0865a654 in Path::AddPoint (this=0x9948ff0, iPt=..., mvto=10)
at livarot/
#13 0x08660398 in Path::ConvertEv
treshhold=
#14 0x08670df8 in Path::Coalesce (this=0x9948ff0, tresh=0.
at livarot/
#15 0x0810c0b4 in sp_offset_set_shape (shape=0x92013e8) at sp-offset.cpp:519
#16 0x081180d8 in sp_shape_set_shape (shape=0x92013e8) at sp-shape.cpp:1093
#17 0x0810b0de in sp_offset_
at sp-offset.cpp:1079
#18 0x0810c5eb in sigc::pointer_
at /usr/include/
#19 operator(
---Type <return> to continue, or q <return> to quit---
rep=0x9220530, a_1=@0xbfffe884, a_2=@0xbfffe8b4)
at /usr/include/
#20 operator(
a_1=
at /usr/include/
#21 sigc::internal:
rep=0x9220530, a_1=@0xbfffe884, a_2=@0xbfffe8b4)
at /usr/include/
#22 0x08107034 in sigc::internal:
at /usr/include/
#23 sigc::signal2<void, SPObject*, unsigned int, sigc::nil>::emit (
this=0x91e82a0, flags=127) at /usr/include/
#24 SPObject:
#25 0x080f4325 in CGroup::onModified (this=0x91ffd48,
flags=<value optimized out>) at sp-item-
#26 0x080f57e4 in sp_group_modified (object=0x91e4b60, flags=95)
at sp-item-
#27 0x08106f90 in SPObject:
at sp-object.cpp:1383
#28 0x080f4325 in CGroup::onModified (this=0x91b3198,
flags=<value optimized out>) at sp-item-
#29 0x080f57e4 in sp_group_modified (object=0x91b2098, flags=27)
at sp-item-
#30 0x08115c3f in sp_root_modified (object=0x91b2098, flags=27)
at sp-root.cpp:565
#31 0x08106f90 in SPObject:
at sp-object.cpp:1383
#32 0x0808c38b in SPDocument:
at document.cpp:753
#33 0x0808c566 in SPDocument:
at document.cpp:900
#34 0x0808c5d0 in sp_document_
at document.cpp:918
#35 0x084e4f7a in SPDesktop::init (this=0x92b6d20, nv=0x91bd030,
aCanvas=
#36 0x08300f4c in sp_desktop_
at widgets/
#37 0x08096e32 in sp_file_open (uri=..., key=0x0, add_to_recent=true,
replace_
---Type <return> to continue, or q <return> to quit---
#38 0x08088283 in sp_main_gui (argc=2, argv=0xbfffef84) at main.cpp:939
#39 0x081622d4 in Inkscape:
at application/
#40 0x080878e9 in main (argc=2, argv=0xbfffef84) at main.cpp:685
(gdb) quit
Detailed Environment:
=======
=======
System uname: Linux-2.
Timestamp of tree: Sun, 08 Aug 2010 16:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash: 4.0_p37
dev-java/
dev-lang/python: 2.6.5-r3, 3.1.2-r4
dev-util/cmake: 2.8.1-r2
sys-apps/
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.3.4, 4.4.3-r2
sys-devel/
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_
ACCEPT_LICENSE="* -@EULA"
CBUILD=
CFLAGS="-O1 -pipe -ggdb"
CHOST="
CXXFLAGS="-O1 -pipe -ggdb"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
=======
=======
media-gfx/
USE="lcms mmx nls wmf -debug -dia -gnome -gs -inkjar -spell"
CFLAGS="-O1 -pipe -ggdb -fno-strict-
CXXFLAGS="-O1 -pipe -ggdb -fno-strict-
Firefox and ImageMagick render an image when given the file, but the image is not how it looked when saved.