Crash when using Bezier Curves with Snapping on

Summary:

When you select the bezier сurves tool and hover over a document with snapping enabled, Inkscape crashes with Inkscape encountered an internal error and will close now. error.

The problem is also present on: Inkscape 1.2.2 (b0a8486541, 2022-12-01)

The problem is not present on: Inkscape 1.2.2 (732a01da63, 2022-12-09)

Steps to reproduce:

  • open Inkscape
  • toggle on snapping
  • choose Draw Bezier сurves and straight lines (B)
  • place cursor over document

What happened?

Crash

What should have happened?

Nothing

Version info

Inkscape 1.3-dev (fd270b662, 2022-12-18)

    GLib version:     2.74.3
    GTK version:      3.24.35
    glibmm version:   2.66.5
    gtkmm version:    3.24.7
    libxml2 version:  2.10.3
    libxslt version:  1.1.37
    Cairo version:    1.17.6
    Pango version:    1.50.12
    HarfBuzz version: 6.0.0

    OS version:       Windows 11 22H2

BACKTRACE

--- BACKTRACE --- 
[New Thread 2960.0x2218]
[New Thread 2960.0x1a3c]
[New Thread 2960.0x1a44]
[New Thread 2960.0x1a4c]
[New Thread 2960.0x1a48]
[New Thread 2960.0x1778]
[New Thread 2960.0xa7c]
[New Thread 2960.0x1ab8]
[New Thread 2960.0x2080]
[New Thread 2960.0x2018]
[New Thread 2960.0x1580]
[Thread 2960.0x1580 exited with code 0]
[New Thread 2960.0x930]
[New Thread 2960.0x22a4]
[New Thread 2960.0xe7c]
[New Thread 2960.0x1b24]
[Thread 2960.0x1b24 exited with code 0]
[New Thread 2960.0x20e4]
[New Thread 2960.0x12cc]
[Thread 2960.0x20e4 exited with code 0]
[Thread 2960.0x12cc exited with code 0]
[New Thread 2960.0x1af0]
[New Thread 2960.0x132c]
[Thread 2960.0x1af0 exited with code 0]
[Thread 2960.0x132c exited with code 0]
[New Thread 2960.0x1900]
[New Thread 2960.0x10f0]
[New Thread 2960.0xffc]

Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffe522a3e23 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#0  0x00007ffe522a3e23 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#1  0x00007ffe522a3f0c in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#2  0x00007ffe522a42fb in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#3  0x00007ffe522a461a in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#4  0x00007ffe5d037054 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglibmm-2.4-1.dll
#5  0x00007ffe5d038158 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglibmm-2.4-1.dll
#6  0x00007ffe52299f31 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#7  0x00007ffe5229d328 in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#8  0x00007ffe5229d62d in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libglib-2.0-0.dll
#9  0x00007ffe50ac4e6d in ?? () from D:\Program Files\Multimedia\Inkscape-dev\bin\libgio-2.0-0.dll
#10 0x00007ff73e553bc7 in ?? ()
#11 0x00007ff73e5512ee in ?? ()
#12 0x00007ff73e5513e6 in ?? ()
#13 0x00007ffe98e926bd in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#14 0x00007ffe9a3cdfb8 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#15 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Edited by Aleksey Smirnov