Eeschema hang when opening schematic formatted as US Letter from the project viewer
Description
On macOS 10.15.5, when I open a schematic from the project viewer, Eeschema hangs if the schematic is formatted as US Letter (8.5 x 11 inches). The schematic itself is rendered but not interactive, and the toolbar/sidebar UI is blank.
This does not happen when opening Eeschema as a standalone app (i.e. not from the project viewer). It also does not happen when opening Pcbnew with a US Letter formatted file.
Steps to reproduce
- Create a new project
- Open Eeschema from the project viewer
- Change the page settings to "USLetter 8.5x11in"
- Save the schematic
- Exit KiCad
- Reopen KiCad
- Open Eeschema from the project viewer
KiCad Version
Application: KiCad
Version: (5.1.6-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: macOS Catalina Version 10.15.5 (Build 19F101), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
Boost: 1.72.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
Backtrace (from Crash Reporter)
Heaviest stack for the main thread of the target process:
11 start + 1 (libdyld.dylib + 109769) [0x7fff6b54ccc9]
11 main + 48 (kicad + 82592) [0x10f5522a0]
11 wxEntry(int&, wchar_t**) + 58 (libwx_osx_cocoau-3.0.0.4.0.dylib + 479818) [0x10f77724a]
11 APP_KICAD::OnRun() + 25 (kicad + 84729) [0x10f552af9]
11 wxApp::OnRun() + 26 (libwx_osx_cocoau-3.0.0.4.0.dylib + 1624042) [0x10f88e7ea]
11 wxAppConsoleBase::MainLoop() + 99 (libwx_osx_cocoau-3.0.0.4.0.dylib + 41635) [0x10f70c2a3]
11 wxEventLoopBase::Run() + 162 (libwx_osx_cocoau-3.0.0.4.0.dylib + 244146) [0x10f73d9b2]
11 wxCFEventLoop::DoRun() + 49 (libwx_osx_cocoau-3.0.0.4.0.dylib + 974673) [0x10f7eff51]
11 wxGUIEventLoop::OSXDoRun() + 174 (libwx_osx_cocoau-3.0.0.4.0.dylib + 2045150) [0x10f8f54de]
11 -[NSApplication run] + 658 (AppKit + 204158) [0x7fff2e7b6d7e]
11 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 (AppKit + 262256) [0x7fff2e7c5070]
11 _DPSNextEvent + 883 (AppKit + 268329) [0x7fff2e7c6829]
11 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 193913) [0x7fff3017e579]
11 ReceiveNextEventCommon + 359 (HIToolbox + 194292) [0x7fff3017e6f4]
11 RunCurrentEventLoopInMode + 292 (HIToolbox + 195261) [0x7fff3017eabd]
11 CFRunLoopRunSpecific + 462 (CoreFoundation + 532174) [0x7fff3154fece]
11 __CFRunLoopRun + 874 (CoreFoundation + 534677) [0x7fff31550895]
11 __CFRunLoopDoObservers + 457 (CoreFoundation + 537335) [0x7fff315512f7]
11 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 (CoreFoundation + 537541) [0x7fff315513c5]
11 wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) + 66 (libwx_osx_cocoau-3.0.0.4.0.dylib + 972290) [0x10f7ef602]
11 wxAppConsoleBase::ProcessPendingEvents() + 215 (libwx_osx_cocoau-3.0.0.4.0.dylib + 44647) [0x10f70ce67]
11 wxEvtHandler::ProcessPendingEvents() + 478 (libwx_osx_cocoau-3.0.0.4.0.dylib + 1158830) [0x10f81ceae]
11 wxEvtHandler::ProcessEvent(wxEvent&) + 100 (libwx_osx_cocoau-3.0.0.4.0.dylib + 1159684) [0x10f81d204]
11 wxEvtHandler::ProcessEventLocally(wxEvent&) + 93 (libwx_osx_cocoau-3.0.0.4.0.dylib + 1160077) [0x10f81d38d]
11 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 239 (libwx_osx_cocoau-3.0.0.4.0.dylib + 1154895) [0x10f81bf4f]
11 EDA_DRAW_PANEL_GAL::onPaint(wxPaintEvent&) + 822 (_eeschema.kiface + 4293174) [0x11751c236]
11 KIGFX::OPENGL_GAL::endDrawing() + 436 (_eeschema.kiface + 4364324) [0x11752d824]
11 wxGLCanvas::SwapBuffers() + 45 (libwx_osx_cocoau_gl-3.0.0.4.0.dylib + 28845) [0x10f6ee0ad]
11 -[NSOpenGLContext flushBuffer] + 20 (AppKit + 4112170) [0x7fff2eb70f2a]
11 CGLFlushDrawable + 59 (OpenGL + 54387) [0x7fff3c053473]
11 glSwap_Exec + 97 (GLEngine + 112849) [0x7fff3c0718d1]
11 gldPresentFramebufferData + 83 (AMDRadeonX5000GLDriver + 389803) [0x1181f12ab]
10 glrATI_Hwl_SubmitPacketsWithToken + 101 (AMDRadeonX5000GLDriver + 377743) [0x1181ee38f]
10 gpusSubmitDataBuffers + 136 (libGPUSupportMercury.dylib + 13631) [0x7fff5296453f]
10 IOAccelContextSubmitDataBuffersExt2 + 253 (IOAccelerator + 7903) [0x7fff561d7edf]
10 IOConnectCallStructMethod + 35 (IOKit + 17508) [0x7fff342c5464]
10 IOConnectCallMethod + 244 (IOKit + 13868) [0x7fff342c462c]
10 io_connect_method + 383 (IOKit + 14291) [0x7fff342c47d3]
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 3578) [0x7fff6b68ddfa]
*10 hndl_mach_scall64 + 22 (kernel + 811558) [0xffffff80002c6226]
*10 mach_call_munger64 + 517 (kernel + 2297093) [0xffffff8000430d05]
*10 mach_msg_overwrite_trap + 722 (kernel + 1125026) [0xffffff8000312aa2]
*10 ipc_kmsg_send + 309 (kernel + 1031365) [0xffffff80002fbcc5]
*10 ipc_kobject_server + 568 (kernel + 1200936) [0xffffff8000325328]
*10 ??? (kernel + 2130610) [0xffffff80004082b2]
*10 is_io_connect_method + 547 (kernel + 8772787) [0xffffff8000a5dcb3]
*10 IOUserClient::externalMethod(unsigned int, IOExternalMethodArguments*, IOExternalMethodDispatch*, OSObject*, void*) + 823 (kernel + 8735719) [0xffffff8000a54be7]
*10 shim_io_connect_method_structureI_structureO + 430 (kernel + 8743262) [0xffffff8000a5695e]
*10 IOAccelContext2::submit_data_buffers(IOAccelContextSubmitDataBuffersIn*, IOAccelContextSubmitDataBuffersOut*, unsigned long long, unsigned long long*) + 2519 (IOAcceleratorFamily2 + 28683) [0xffffff7f8293700b]
*10 IOAccelGLContext2::processDataBuffers(unsigned int) + 234 (IOAcceleratorFamily2 + 99378) [0xffffff7f82948432]
*10 lck_mtx_sleep + 112 (kernel + 1247232) [0xffffff8000330800]
*10 thread_block_reason + 175 (kernel + 1309743) [0xffffff800033fc2f]
*10 ??? (kernel + 1315825) [0xffffff80003413f1]
*10 machine_switch_context + 200 (kernel + 2382072) [0xffffff80004458f8]