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

Bug #1849876 reported by Micha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
New
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Ian McInerney (imcinerney) wrote :

Are the tracks you are trying to delete locked?

Revision history for this message
Micha (pmic) wrote :

I don't think so, I tried to unlock them to be sure. I did however do some lock toggling on a larger selection. Currently trying to find out if a small portion of the tracks might still be locked somewhere, as the complete file seems to be corrupted by this.
As soon as I delete a track everything crashes.

Is there some way to tell if any locks are still in place, perhaps when looking at the kicad_pcb file with notepad++?

Revision history for this message
Micha (pmic) wrote :

Allright, I fixed it. I found out that " (status 40000) " means that a track is locked. Removed all by hand in the kicade_pcb file, and the file works again. Hope I didn't destroy anything by accident, but it looks good.

Would like to change the bug report to "Crash when trying to delete locked track".

Revision history for this message
Nick Østergaard (nickoe) wrote :

if you are able to reproduce this issue easily on the design you have now, you can try the 5.1 builds, it should be fixed there given it is the issue about deleting unlocked tracks.

https://kicad-downloads.s3.cern.ch/index.html?prefix=windows/testing/5.1/

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.