eeschema hangs on startup on osx
Description
Eeschema will sometimes hang on startup on OSX Catalina. When this happens, it will draw the schematic but hang while drawing the UI controls and other window decoration. It will also show the "rainbow beach ball" mouse pointer and not respond to input at this time. The application shows as "Not Responding" in the mac Activity Monitor. Force killing and restarting kicad is not enough to fix this situation, but if ~/Library/Preferences/kicad/eeschema is removed the problem appears to go away. This appears to reliably happen if kicad was previously quit while eeschema was maximized in full screen mode.
I have not noticed this with other sub-allications, just eeschema. (However, it's possible its a problem with an application I use less often than either eeschema or pcb.)
Steps to reproduce
- Open kicad with an existing project that already has a PCB and schematic. (The project I am using has nested schematics where some of the nested sheets point to the same file since this project has multiple instances of common sub-assemblies, I do not know if that is important.)
- Open the main schematic in eeschema file from the project.
- Maximize the window of eeschema to full screen by clicking in the full screen button on the window title bar.
- quit Kicad completely.
- Repeat steps 1-2. eeschema will hang on opening.
This behavior will continue until ~/Library/Preferences/kicad/eeschema is removed while kicad is not running. (My removed preferences file is attached.)eeschema
KiCad Version
Application: KiCad
Version: (5.1.5-0-10_14), release build
Libraries:
wxWidgets 3.0.4
libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.39.2
Platform: Mac OS X (Darwin 19.3.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
USE_WX_GRAPHICS_CONTEXT=ON
USE_WX_OVERLAY=ON
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