Inkscape becomes permanently unresponsive after clicking "Join endnodes with a new segment"

Bug #865966 reported by John Colburn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned

Bug Description

Inkscape version 0.48.2 r9819
Operating system: Arch Linux
cat /proc/version: Linux version 3.0-ARCH (tobias@T-POWA-LX) (gcc version 4.6.1 20110819 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Aug 30 07:32:23 UTC 2011
Desktop environment / window manager: KDE 4.7.1-1 (kdeplasma, etc..)

The problem: When selecting certain combinations of nodes on a complex path and clicking the "Join endnodes with new segment" button, Inkscape's CPU usage rises to 99%, the application becomes unresponsive and stops updating its window, autosave stops working, no emergency save is generated, and the program needs to be manually SIGTERM/SIGKILLed to get rid of it.

Expected behavior: Probably doing nothing; the nodes selected can't really be joined in a sensible way. Generally Inkscape simply ignores the button click and gives no significant feedback if the nodes can't be joined.

I assume that the bug has gone unreported because it's triggered by a nonsense request; there isn't really any good reason to select these combinations of nodes and try to join them in this way. I first encountered the bug when I was trying to join some nodes in a particularly crowded section of a complex path, and had accidentally selected nodes from a section of the path much further down the chain but running across the section I was working on.

I am attaching an .svg file that reliably reproduces the problem on my system. Open the file, select the path editor tool, select the only path in the file, select the three nodes clustered very close together near the middle of the path, and click the "Join endnodes with new segment" button (fifth button from the left on my configuration). When I perform these steps, the program becomes unresponsive for longer than forty minutes; I have not waited longer than that before manually killing it.

I'm not really sure what sorts of paths or combinations of nodes generate the bug; I have been able to reproduce it twice (after the first occurence) in otherwise empty documents by drawing a path with many nodes overlapping itself, then randomly moving and adding nodes, selecting random combinations and trying to join them. All instances of the bug have happened with at least three nodes selected, the nodes have been in very close proximity to eachother (relative to the overall size of the path) and the nodes have been from different sections of the same path (IE not adjacent nodes). All three crashes have involved closed paths, as well.

That's all the information that seems relevant right now. If you need more information, just send me an email.

Revision history for this message
John Colburn (they-called-him-crazy) wrote :
Revision history for this message
su_v (suv-lp) wrote :

> Expected behavior: Probably doing nothing; the nodes selected can't really be
> joined in a sensible way. Generally Inkscape simply ignores the button click
> and gives no significant feedback if the nodes can't be joined.

Possibly related to this new feature in the node tool of 0.48.x:

«Improved segment join
    It is now possible to create a segment between endnodes from different paths. More than one segment can be created at once—the distances between nodes will be used to determine which nodes to join with a segment, with the closest pairs being joined first. When nothing can be joined (less than 2 endnodes in selection), each selected stretch of nodes will have its middle nodes removed, leaving only one segment. »
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.48#Node_Tool>

tags: added: crash node-editing
Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.2 and 0.48+devel r10665 on Mac OS X 10.5.8 (i386)

Backtraces in gdb (interrupting Inkscape about ~30 sec after clicking on 'Join selected endnodes with a new segment') attached.

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

another backtrace, interrupted after ~6 min

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

Probably a duplicate of
Bug #710101 “Inkscape gets hang with "Join selected endnodes..."”
<https://bugs.launchpad.net/inkscape/+bug/710101>

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

No longer reproduced with 0.48.x rev >= 9970 - the fix for bug #710101 also fixes this one -> linking as duplicate to bug #710101.

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.