Crash when Perspective LPE handles moved onto a straight line (or opening file with said lpe)

Steps to reproduce:

  1. Draw a square
  2. Add Perspective LPE
  3. Move all 4 control points so that they are on same straight line

What happened?

When three control points are on same line the LPE produces garbage geometry.

With the fourth control point added to the line Inkscape locks up and/or crashes.

What should have happened?

LPE should prevent this either by not doing anything like in ellipse from points LPE, or by automatically nudging the handle by multiplying the movement delta with epsilon when the dragged control node is in danger of being placed on same line with two other control nodes.

Inkscape Version and Operating System:

Inkscape 1.0 (4035a4fb, 2020-05-01)

Inkscape 1.1-dev (0aa6f2ca, 2020-04-29)

Windows 10 x64

Edited by Nathan Lee