Assert fired when editing text properties of a symbol field
Description
When opening the text properties of a symbol field, I got the below assert (Debug build):
assert ""HasFlag(0x0400)"" failed in wxTextCtrlBase::OnDynamicBind(): Must have wxTE_PROCESS_ENTER for wxEVT_TEXT_ENTER to work
Call stack:
wxmsw314ud_core_vc_custom.dll!wxTextCtrlBase::OnDynamicBind(wxDynamicEventTableEntry & entry) Line 1208
at C:\MySources\vcpkg\buildtrees\wxwidgets\src\v3.1.4-b747a62900.clean\src\common\textcmn.cpp(1208)
wxbase314ud_vc_custom.dll!wxEvtHandler::DoBind(int id, int lastId, int eventType, wxEventFunctor * func, wxObject * userData) Line 1763
at C:\MySources\vcpkg\buildtrees\wxwidgets\src\v3.1.4-b747a62900.clean\src\common\event.cpp(1763)
wxbase314ud_vc_custom.dll!wxEvtHandler::Connect(int winid, int lastId, int eventType, void(wxEvtHandler::*)(wxEvent &) func, wxObject * userData, wxEvtHandler * eventSink) Line 3731
at C:\MySources\vcpkg\buildtrees\wxwidgets\src\v3.1.4-b747a62900.clean\include\wx\event.h(3731)
wxbase314ud_vc_custom.dll!wxEvtHandler::Connect(int eventType, void(wxEvtHandler::*)(wxEvent &) func, wxObject * userData, wxEvtHandler * eventSink) Line 3746
at C:\MySources\vcpkg\buildtrees\wxwidgets\src\v3.1.4-b747a62900.clean\include\wx\event.h(3746)
_eeschema.kiface!DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE(wxWindow * parent, int id, const wxString & title, const wxPoint & pos, const wxSize & size, long style) Line 223
at C:\MySources\kicad\importer_fixes\eeschema\dialogs\dialog_lib_edit_text_base.cpp(223)
_eeschema.kiface!DIALOG_EDIT_ONE_FIELD::DIALOG_EDIT_ONE_FIELD(SCH_BASE_FRAME * aParent, const wxString & aTitle, const EDA_TEXT * aTextItem) Line 45
at C:\MySources\kicad\importer_fixes\eeschema\dialogs\dialog_edit_one_field.cpp(45)
_eeschema.kiface!DIALOG_SCH_EDIT_ONE_FIELD::DIALOG_SCH_EDIT_ONE_FIELD(SCH_BASE_FRAME * aParent, const wxString & aTitle, const SCH_FIELD * aField) Line 289
at C:\MySources\kicad\importer_fixes\eeschema\dialogs\dialog_edit_one_field.cpp(289)
_eeschema.kiface!SCH_EDIT_TOOL::editFieldText(SCH_FIELD * aField) Line 1193
at C:\MySources\kicad\importer_fixes\eeschema\tools\sch_edit_tool.cpp(1193)
_eeschema.kiface!SCH_EDIT_TOOL::Properties(const TOOL_EVENT & aEvent) Line 1506
at C:\MySources\kicad\importer_fixes\eeschema\tools\sch_edit_tool.cpp(1506)
[External Code]
_eeschema.kiface!COROUTINE<int,TOOL_EVENT const &>::callerStub(__int64 aData) Line 351
at C:\MySources\kicad\importer_fixes\include\tool\coroutine.h(351)
[External Code]
Steps to reproduce
- Open eeschema
- Add any symbol to the design (the one below is provided for convenience but should happen with any)
- Try to edit the text properties of the designator or value fields
- Assert is fired.
Test symbol to copy/paste
(lib_symbols
(symbol "Amplifier_Buffer:EL2001CN" (pin_names (offset 0.127)) (in_bom yes) (on_board yes)
(property "Reference" "U" (id 0) (at 7.62 5.08 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "EL2001CN" (id 1) (at 7.62 2.54 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "Package_DIP:DIP-8_W7.62mm" (id 2) (at 0 -8.89 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "http://www.datasheetlib.com/datasheet/677973/el2001_intersil.html#datasheet" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "Monolithic high slew rate, buffer amplifier" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Monolithic high slew rate, buffer amplifier, DIP-8" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "DIP*W7.62mm*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "EL2001CN_0_1"
(polyline
(pts
(xy 5.08 0)
(xy -5.08 5.08)
(xy -5.08 -5.08)
(xy 5.08 0)
)
(stroke (width 0.254)) (fill (type background))
)
)
(symbol "EL2001CN_1_1"
(pin power_in line (at -2.54 7.62 270) (length 3.81)
(name "V+" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin input line (at -7.62 0 0) (length 2.54)
(name "IN" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin no_connect line (at -5.08 2.54 0) (length 2.54) hide
(name "NC" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at -2.54 -7.62 90) (length 3.81)
(name "V-" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin no_connect line (at -5.08 -2.54 0) (length 2.54) hide
(name "NC" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin no_connect line (at -5.08 -5.08 0) (length 2.54) hide
(name "NC" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin output line (at 7.62 0 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin no_connect line (at -5.08 5.08 0) (length 2.54) hide
(name "NC" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
)
)
)
(symbol (lib_id "Amplifier_Buffer:EL2001CN") (at 147.32 99.06 0) (unit 1)
(in_bom yes) (on_board yes)
(uuid fa2f8590-4e85-49cf-b72e-873410d93fe1)
(property "Reference" "U?" (id 0) (at 154.94 93.98 0))
(property "Value" "EL2001CN" (id 1) (at 154.94 96.52 0))
(property "Footprint" "Package_DIP:DIP-8_W7.62mm" (id 2) (at 147.32 107.95 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "http://www.datasheetlib.com/datasheet/677973/el2001_intersil.html#datasheet" (id 3) (at 147.32 99.06 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 232e107d-0b42-4798-b7e7-5b1ce14e7f60))
(pin "2" (uuid 78aa6a90-f506-4fc3-a1d7-fe5b9c7ef05f))
(pin "3" (uuid 10cea72d-31ae-437c-9b66-e960a85b3864))
(pin "4" (uuid 7691308d-5152-4bdf-82a7-9153d2c36e31))
(pin "5" (uuid ba1af905-34a9-4cd0-a412-9d2ae52e8c46))
(pin "6" (uuid 542467b6-15ae-4079-83ce-13a2beb886a4))
(pin "7" (uuid 554171a3-c877-4f09-bdbd-0123f1223bd4))
(pin "8" (uuid 1df3b313-b892-4e09-9c66-1de569613cef))
)
KiCad Version
Application: KiCad Schematic Editor
Version: (5.99.0-10090-g325d1fa046), debug build
Libraries:
wxWidgets 3.1.4
libcurl/7.72.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19041), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 2 2021 19:55:06
wxWidgets: 3.1.4 (wchar_t,STL containers)
Boost: 1.73.0
Curl: 7.72.0-DEV
Compiler: Visual C++ 1928 without C++ ABI
Build settings:
KICAD_SCRIPTING=OFF
KICAD_SCRIPTING_MODULES=OFF
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=OFF
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=OFF
KICAD_SPICE=OFF
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE=OFF
Edited by Roberto Fernandez Bautista