std:bad_alloc thrown after adding linked offset to graphic

Bug #189784 reported by Ted Gould
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I was working on a graphic and decided to add some linked offsets to some text. It seems that after doing that Inkscape can no longer open my graphic.

Backtrace:

(gdb) run 00_title.svg
Starting program: /home/ted/Development/inkscape.work/install/bin/inkview 00_title.svg
[Thread debugging using libthread_db enabled]
[New Thread 0xb619f6c0 (LWP 8790)]
terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb619f6c0 (LWP 8790)]
0xb7f8c410 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7f8c410 in __kernel_vsyscall ()
#1 0xb64baf35 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb64bc8b1 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb66a56a0 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#4 0xb66a2f25 in ?? () from /usr/lib/libstdc++.so.6
#5 0xb66a2f62 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb66a308a in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb66a36be in operator new () from /usr/lib/libstdc++.so.6
#8 0x08454db4 in std::vector<Path::path_lineto, std::allocator<Path::path_lineto> >::_M_insert_aux (this=0x89f6e9c, __position={_M_current = 0x75fb5008},
    __x=@0xbf89b4dc) at /usr/include/c++/4.2/ext/new_allocator.h:91
#9 0x084525ae in Path::AddPoint (this=0x89f6e78, iPt=@0xbf89b630, mvto=false)
    at /usr/include/c++/4.2/bits/stl_vector.h:605
#10 0x0845a6ee in Path::ConvertEvenLines (this=0x89f6e78,
    treshhold=0.00029125975843829322)
    at ../../src/livarot/PathConversion.cpp:769
#11 0x08467cf2 in Path::Coalesce (this=0x89f6e78, tresh=0.0011650390337531729)
    at ../../src/livarot/PathSimplify.cpp:1177
#12 0x080ab2dc in sp_offset_set_shape (shape=0x888d468)
    at ../../src/sp-offset.cpp:595
#13 0x080a740e in SPObject::emitModified (this=0x8910090, flags=63)
    at /usr/include/sigc++-2.0/sigc++/signal.h:838
---Type <return> to continue, or q <return> to quit---
#14 0x0809b3d9 in CGroup::onModified (this=0x8881208, flags=28)
    at ../../src/sp-item-group.cpp:652
#15 0x080a7361 in SPObject::emitModified (this=0x8878068, flags=31)
    at ../../src/sp-object.cpp:1359
#16 0x0809b3d9 in CGroup::onModified (this=0x8880330, flags=28)
    at ../../src/sp-item-group.cpp:652
#17 0x080b470a in sp_root_modified (object=0x886d0c0, flags=27)
    at ../../src/sp-root.cpp:568
#18 0x080a7361 in SPObject::emitModified (this=0x886d0c0, flags=27)
    at ../../src/sp-object.cpp:1359
#19 0x0808b44f in SPDocument::_emitModified (this=0x88ecf50)
    at ../../src/document.cpp:662
#20 0x0808b601 in SPDocument::_updateDocument (this=0x88ecf50)
    at ../../src/document.cpp:809
#21 0x0808b6d1 in sp_document_ensure_up_to_date (doc=0x88ecf50)
    at ../../src/document.cpp:827
#22 0x080875f4 in main (argc=143780376, argv=Cannot access memory at address 0x225a
) at ../../src/inkview.cpp:326
(gdb)

Tags: crash
Revision history for this message
Ted Gould (ted) wrote :
Revision history for this message
Ted Gould (ted) wrote :

Oh, this is in 0.46pre1 and SVN built a day or so ago.

Revision history for this message
Ted Gould (ted) wrote :
Revision history for this message
Hystrix (hystrix-) wrote :

Confirmed on Win2k with Inkscape 0.46, built Apr 1 2008 and Inkscape 0.46+devel, built Jun 19 2008

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Related:
Bug #345371 “stroked and scaled Linked Offset text causes a crash upon open file”
<https://bugs.launchpad.net/inkscape/+bug/345371>

- After setting stroke to 'none' and stroke-width to '0' of path4951 (instead of deleting it completely), the file opens without crash (tested with 0.48+devel r12170 on OS X 10.7, though without having the font 'Swis721 BT' used for the linked original text object installed on the local system)
- original file hangs when trying to open (consuming huge amounts of RAM, but rather low CPU activity). I killed the process after a couple of minutes)

tags: added: crash
Revision history for this message
Beluga (buovjaga) wrote :

I can open 00_title.svg for what it's worth.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows 7, Inkscape 0.47 and 0.48.2.
Not reproduced with 0.48.3.1, 0.48.5, 0.91 and lp:inkscape/0.92.x rev. 15067.

Changed in inkscape:
milestone: none → 0.48.3
status: Confirmed → Fix Released
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.