Unhandled exception at 0x00007FFF653DEB78 (ntdll.dll) in kicad.exe: 0xC000041D: An unhandled exception was encountered during a user callback. (lp:#1849876)

[Original report](https://bugs.launchpad.net/bugs/1849876) created by **Micha (pmic)**
```
Can't seem to delete any tracks anymore in PCBNew.

It completely crashes, the Visual Studio Debugger shows the following (I
just coppied all information I could find that might be useful)

Unhandled exception at 0x00007FFF653DEB78 (ntdll.dll) in kicad.exe:
0xC000041D: An unhandled exception was encountered during a user callback.
occurred

RtlRaiseStatus:
00007FFF653DEB60  push        rbx
00007FFF653DEB62  sub         rsp,590h
00007FFF653DEB69  mov         ebx,ecx
00007FFF653DEB6B  lea         rcx,[rsp+0C0h]
00007FFF653DEB73  call        RtlpCaptureContext (07FFF653E36E0h)
00007FFF653DEB78  mov         rax,qword ptr [rsp+1B8h]                  <=
THIS ONE
00007FFF653DEB80  mov         dword ptr [rsp+20h],ebx
00007FFF653DEB84  xor         ebx,ebx
00007FFF653DEB86  mov         qword ptr [rsp+28h],rbx
00007FFF653DEB8B  mov         dword ptr [rsp+38h],ebx
00007FFF653DEB8F  mov         qword ptr [rsp+30h],rax
00007FFF653DEB94  mov         dword ptr [rsp+24h],1
00007FFF653DEB9C  mov         rax,qword ptr gs:[60h]
00007FFF653DEBA5  cmp         byte ptr [rax+2],bl
00007FFF653DEBA8  jne         RtlRaiseStatus+5Eh (07FFF653DEBBEh)
00007FFF653DEBAA  lea         rdx,[rsp+0C0h]
00007FFF653DEBB2  lea         rcx,[rsp+20h]
00007FFF653DEBB7  call        RtlDispatchException (07FFF653447E0h)
00007FFF653DEBBC  jmp         RtlRaiseStatus+60h (07FFF653DEBC0h)
00007FFF653DEBBE  mov         bl,1
00007FFF653DEBC0  mov         r8b,bl
00007FFF653DEBC3  lea         rdx,[rsp+0C0h]
00007FFF653DEBCB  lea         rcx,[rsp+20h]
00007FFF653DEBD0  call        NtRaiseException (07FFF653E2320h)
00007FFF653DEBD5  mov         ecx,eax
00007FFF653DEBD7  call        RtlRaiseStatus (07FFF653DEB60h)
00007FFF653DEBDC  int         3
00007FFF653DEBDD  int         3
00007FFF653DEBDE  int         3
00007FFF653DEBDF  int         3
00007FFF653DEBE0  int         3
00007FFF653DEBE1  int         3
00007FFF653DEBE2  int         3
00007FFF653DEBE3  int         3

Visual Studio Autos:
                ECX     00000000
                EBX     61526AB0
                RAX     0000000000000000
                RCX     0000000000000000
                RSP     000000000F572570

Call stack:
ntdll.dll!RtlRaiseStatus()
ntdll.dll!KiUserCallbackDispatcherContinue()
win32u.dll!NtUserMoveWindow()
wxmsw30u_core_gcc_custom.dll!0000000001070e64()


Application: KiCad
Version: (5.1.4)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6
libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian,
wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Running on windows 10 64-bit

Unfortunately due to non-disclosure I can't attach the file, I am however
willing to send it to one of the developers personally in good faith.
```

Story points: 6.0