Eeschema: assertion failed when graphic line paste operation is canceled

Bug #1812073 reported by Ionel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Tomasz Wlostowski

Bug Description

Steps to reproduce:

1) Draw a graphic line in Eeschema
2) Copy the drawn line [Ctrl-C]
3) Paste [Ctrl-V] and rotate [R] the line don't place it on the canvas yet
4) Cancel paste operation

After this Kicad crashes...

Application: kicad
Version: (6.0.0-rc1-dev-1542-gf9f87b3ff), 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

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

This appears to be a block issue since you cannot select and copy/paste a single graphic line.

Changed in kicad:
status: New → Triaged
importance: Undecided → High
milestone: none → 5.1.0
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :
Download full text (3.7 KiB)

In a debug build, I get the assert shown in the attached image. After cancelling the assert dialog and performing a second paste operation, the crash yields the following stack trace in gdb:

(gdb) bt
#0 0x00000000070479c3 in SCH_BASE_FRAME::HandleBlockBegin (this=0x3fb61e50,
    aDC=0x0, aKey=6, aPosition=..., aExplicitCommand=0)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/eeschema/sch_base_frame.cpp:542
#1 0x000000000709f593 in SCH_EDIT_FRAME::Process_Special_Functions (this=
    0x3fb61e50, event=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/eeschema/schedit.cpp:148
#2 0x000000006a4c2f24 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#3 0x000000006a62cd42 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#4 0x000000006a62ce48 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#5 0x000000006a62d254 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#6 0x00000000071832b9 in EDA_BASE_FRAME::ProcessEvent (this=0x3fb61e50,
    aEvent=...)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/eda_base_frame.cpp:173
#7 0x000000006a62d003 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#8 0x000000006a62d321 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#9 0x0000000004d9449f in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#10 0x000000006a62d05b in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#11 0x0000000004d41f8d in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#12 0x0000000004bdea70 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#13 0x00007ff843586d41 in USER32!CallWindowProcW ()
   from C:\WINDOWS\System32\user32.dll
#14 0x00007ff843586a1c in USER32!CallWindowProcW ()
   from C:\WINDOWS\System32\user32.dll
#15 0x00007ff8435904d3 in USER32!IsWindowVisible ()
   from C:\WINDOWS\System32\user32.dll
#16 0x00007ff84460e6b4 in ntdll!KiUserCallbackDispatcher ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#17 0x00007ff8416712a4 in win32u!NtUserTranslateAccelerator ()
   from C:\WINDOWS\System32\win32u.dll
#18 0x0000000004bafdcb in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#19 0x00000000072d31c4 in wxFrame::MSWTranslateMessage (this=0x3fb61e50,
    msg=0x430f890) at C:/msys64/mingw64/include/wx-3.0/wx/msw/frame.h:94
#20 0x0000000004bd6142 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#21 0x0000000004bd6071 in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#22 0x0000000004bd5e8b in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom.dll
#23 0x000000006a4fc6d0 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#24 0x000000006a4fc339 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#25 0x000000006a4c68fa in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#26 0x00000000004394d2 in APP_SINGLE_TOP::OnRun (this=0x6902d00)
    at C:/msys64/home/wstambaugh/src/kicad-trunk/common/single_top.cpp:186
#27 0x000000006a547977 in ?? ()
   from C:\msys64\mingw64\bin\wxbase30u_gcc_custom.dll
#28 0x0000000004aaa24b in ?? ()
   from C:\msys64\mingw64\bin\wxmsw30u_core_gcc_custom....

Read more...

Changed in kicad:
assignee: nobody → Tomasz Wlostowski (twlostow)
summary: - Eeschema: Kicad crash when graphic line paste operation is canceled
+ Eeschema: assertion failed when graphic line paste operation is canceled
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 786ee0ec6955b458e7129085526a81c003179e16
https://git.launchpad.net/kicad/patch/?id=786ee0ec6955b458e7129085526a81c003179e16

Changed in kicad:
status: Triaged → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
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.