[go: up one dir, main page]

Crash on shaping path with overlapping nodes

Steps to reproduce:

  1. Create new Document.
  2. Shift+F6 (Pen tool) then draw two points, then close off the path
  3. F2 (Node tool)
  4. Ctrl+A (Select all nodes in path)
  5. Shift+D (Duplicate all nodes in path)
  6. Ctrl+A (Select all nodes in path)
  7. Shift+S (Convert all nodes to smooth)
  8. Attempt to shape path
  9. Crash

Alternate reproduction approach:

  1. Create a new file
  2. Create a line segment with three nodes.
  3. Make two nodes overlap (e.g. use align tool)
  4. Select all nodes with the node tool. Make them smooth or symmetric.
  5. Move cursor onto path, near the overlapping nodes.
  6. Attempt to shape the path.
  7. Inkscape crashes ("Inkscape encountered an internal error and will close now.") for smooth, a frozen screen, instantly increasing CPU/RAM usage for symmetric.

Video example: error.mkv

For the crash/internal error (smooth), a save file is generated.

Workaround

If you change the node type before making the two nodes overlap, no crash happens. [The striked portion is false]Of course, if you then change the node type again after this, the error can happen again.

If you simply move the nodes so they don't overlap, the problem is resolved.

What happened?

Presumably inkscape crashes because it moves the handles in a undefined manner.

On launchpad, I found a similar problem, but hardly identical.

What should have happened?

The path should be shaped normally, whatever you decide that to mean. It seems like any configuration of handles should be possible (in a semantic/natural sense). Alternatively, the error handling should not lead to a crash or frozen screen.

Inkscape Version and Operating System:

  • Inkscape Version: Inkscape 0.91 r13725, Inkscape 0.92.4 (unknown)
  • Operating System: Linux mint
  • Operating System version: 18.3 (Sylvia)
  • Inkscape Preferences were reset

Reproduced on fresh install of OS and Inkscape

  • Inkscape Version: Inkscape 0.92.4 (unknown)
  • Operating System: Lubuntu installed on VM via wizard, with standard 3rd party hardware installed, otherwise clean install.
  • Operating System version: Lubuntu 16.04.3, 64bit

Example File: error.svg

Edited by Bryce Harrington