Non-KiCad schematic import: OpenGL error - string too long
Description
When importing a second LTspice file the below error is displayed. After this, the canvas remains grey and whilst all the rest of the UI works, the schematic editor becomes unusable until KiCad is restarted.
Call stack after message is displayed
_eeschema.dll!`EDA_DRAW_PANEL_GAL::DoRePaint'::`1'::catch$35() Line 317
at C:\src\kicad\common\draw_panel_gal.cpp(317)
[External Code]
_eeschema.dll!EDA_DRAW_PANEL_GAL::DoRePaint() Line 299
at C:\src\kicad\common\draw_panel_gal.cpp(299)
_eeschema.dll!EDA_DRAW_PANEL_GAL::Refresh(bool aEraseBackground, const wxRect * aRect) Line 385
at C:\src\kicad\common\draw_panel_gal.cpp(385)
_eeschema.dll!EDA_DRAW_PANEL_GAL::OnEvent(wxEvent & aEvent) Line 569
at C:\src\kicad\common\draw_panel_gal.cpp(569)
[External Code]
_eeschema.dll!WX_PROGRESS_REPORTER::WX_PROGRESS_REPORTER(wxWindow * aParent, const wxString & aTitle, int aNumPhases, bool aCanAbort, bool aReserveSpaceForMessage) Line 36
at C:\src\kicad\common\widgets\wx_progress_reporters.cpp(36)
_eeschema.dll!SCH_EDIT_FRAME::importFile(const wxString & aFileName, int aFileType) Line 1255
at C:\src\kicad\eeschema\files-io.cpp(1255)
_eeschema.dll!SCH_EDIT_FRAME::OnImportProject(wxCommandEvent & aEvent) Line 702
at C:\src\kicad\eeschema\files-io.cpp(702)
[External Code]
_eeschema.dll!EDA_BASE_FRAME::ProcessEvent(wxEvent & aEvent) Line 289
at C:\src\kicad\common\eda_base_frame.cpp(289)
[External Code]
_eeschema.dll!EDA_BASE_FRAME::MSWWindowProc(unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 1561
at C:\src\kicad\common\eda_base_frame.cpp(1561)
[External Code]
eeschema.exe!APP_SINGLE_TOP::OnRun() Line 206
at C:\src\kicad\common\single_top.cpp(206)
[External Code]
eeschema.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 286
at C:\src\kicad\common\single_top.cpp(286)
[External Code]
Steps to reproduce
- Import an LTspice file
- Import a second LTspice file (don't save the previous one)
- Error is displayed, hidden behind the progress bar
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.99.0-1798-gdfe7051171, debug build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.86.0-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jul 9 2023 23:01:53
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.86.0-DEV
ngspice: 37
Compiler: Visual C++ 1933 without C++ ABI
Build settings:
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF