Inkscape crash when ungrouping an imported SVG with connectors

Bug #800458 reported by Pablo Aguilar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Gellule

Bug Description

I'm attaching a file that makes Inkscape crash. It crashes Inkscape 0.48 just by opening it. Inkscape 0.48.1 doesn't crash when opening it, but trying to ungroup the drawing (everything is in one group), crashes as well.

Revision history for this message
Pablo Aguilar (pablo-aguilar-u) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Please add information about your OS/platform.

Revision history for this message
ScislaC (scislac) wrote :

The bottom part of the drawing is one group, I can ungroup that with no crash. I can also select all and ungroup everything with no crash.

This is with both 0.48.2 (to be released soon), and Inkscape trunk.

su_v (suv-lp)
tags: added: crash
Revision history for this message
ScislaC (scislac) wrote :

This looks to be a duplicate of bug 771738.

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

@Scislac - I disagree ;)

Crash reproduced on load with Inkscape 0.48.0 on Mac OS X 10.5.8 (i386)
Crash not reproduced on ungroup with Inkscape 0.48.1: "everything is in one group" is not true, did you attach the correct file? No crash when ungrouping the large group in the bottom half of the drawing.

Based on the console message and backtrace of the crash in Inkscape 0.48.0, this is a duplicate of
Bug #511577 “segfault in sp_shape_update_marker_view()”
<https://bugs.launchpad.net/inkscape/+bug/511577>

Console message:
Assertion failed: (px != 0), function operator*, file /opt/local-macports-with-a-really-very-quite-long-directory-name/include/boost/smart_ptr/shared_ptr.hpp, line 412.

Changed in inkscape:
importance: Undecided → High
Revision history for this message
Pablo Aguilar (pablo-aguilar-u) wrote :

I'm using Windows 7 64-bit. Inkscape 0.48.0 is installed and 0.48.1 is the portable version. Apparently, Inkscape saved the ungrouped file upon crashing, and I no longer have the original one.

Revision history for this message
ScislaC (scislac) wrote :

Pablo: Does the modified one still crash on you?

~suv: Great... so now I need to install 0.48.1 too... :(

Revision history for this message
Pablo Aguilar (pablo-aguilar-u) wrote :

Found another way to make Inkscape crash, though:
1) Open a new blank drawing
2) Drag the file (from Windows explorer) into the blank document (now its all in one group)
3) Ungroup => Crash. Error message here: http://tinypic.com/r/23urfo6/7

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

Unlinking as duplicate from bug #771738: there are no orthogonal connectors (connector-type="orthogonal") in the attached file:

LeWitt:bug suv$ grep 'connector-type' "800458-Crashes Inkscape.svg"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
       inkscape:connector-type="polyline"
LeWitt:bug suv$

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

Crash on ungrouping after importing the file confirmed with
Inkscape 0.48.1 and 0.48+devel r10331 on Mac OS X 10.5.8 (i386)

Console message:
Assertion failed: (this->is_initialized()), function get, file /Volumes/green/mp-inkscape/with-a-long-long-long-directory-name/include/boost/optional/optional.hpp, line 631.

From gdb (r10331):

Program received signal SIGABRT, Aborted.
0x90deae42 in __kill ()
(gdb) bt
#0 0x90deae42 in __kill ()
#1 0x90deae34 in kill$UNIX2003 ()
#2 0x90e5d23a in raise ()
#3 0x90e69679 in abort ()
#4 0x90e5e3db in __assert_rtn ()
#5 0x0012bdb8 in ~optional_base [inlined] () at optional/optional.hpp:631
#6 0x0012bdb8 in boost::optional_detail::optional_base<Geom::Point>::destroy_impl () at optional/optional.hpp:567
#7 0x0012bdb8 in boost::optional_detail::optional_base<Geom::Point>::destroy () at optional/optional.hpp:439
#8 0x0012bdb8 in ~optional [inlined] () at optional/optional.hpp:268
#9 0x0012bdb8 in SPConnEndPair::getEndpoints (this=0x65eb40c, endPts=0xbfffd7d0) at optional/optional.hpp:233
#10 0x0012be3b in SPConnEndPair::tellLibavoidNewEndpoints (this=0x65eb40c, processTransaction=false) at sp-conn-end-pair.cpp:384
#11 0x0015ecf1 in SPItem::doWriteTransform (this=0x65eb2d0, repr=0x6b07cf0, transform=@0x65eb350, adv=0x0, compensate=false) at signal.h:1248
#12 0x00163d20 in release<Inkscape::XML::Node> [inlined] () at gc-anchored.h:491
#13 0x00163d20 in sp_item_group_ungroup (group=0x632e368, children=0xbfffdebc, do_done=false) at sp-item-group.cpp:493
#14 0x000fdb17 in sp_selection_ungroup (desktop=0x5174d80) at selection-chemistry.cpp:702

su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
tags: added: connectors
su_v (suv-lp)
summary: - Inkscape crash
+ Inkscape crash when ungrouping an imported SVG with connectors
Revision history for this message
su_v (suv-lp) wrote :

Possibly duplicate report (based on the backtrace) filed as
Bug #802212 “Inkscape crashes when loading automatically backed up svg”
<https://bugs.launchpad.net/inkscape/+bug/802212>

Gellule (gellule-xg)
Changed in inkscape:
assignee: nobody → Gellule (gellule-xg)
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape 0.48.1.
Not reproduced with 0.48.2.

> Possibly duplicate report (based on the backtrace) filed as
> Bug #802212 “Inkscape crashes when loading automatically backed up svg”

Confirmed.

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.