Sometimes testing OpenGL compatibility crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Won't Fix
|
Medium
|
Chris Pavlina |
Bug Description
Due to general quirkiness in various libraries (this spans OpenGL itself, X11, wxWidgets, GTK, possibly other platforms' libs as well), sometimes it isn't possible to test OpenGL support without crashing KiCad.
My planned fix for this is to write an executable "kicad-ogltest" that performs the test itself. Any crashes will be contained in this process, and KiCad can watch whether it exits cleanly. It will be necessary to disable crash reporting in this executable on various platforms so the OS doesn't "helpfully" tell the user a program crashed...this can probably be done by intercepting SIGSEGV and SIGABRT on Linux and macOS, though I have to test this, and can be done directly via the Windows API there.
Application: kicad
Version: (2017-03-27 revision 731b2b8a6)-master, debug build
Libraries: wxWidgets 3.0.2
Platform: Linux 4.10.5-1-ARCH x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.63.0
Curl: 7.53.1
KiCad - Compiler: GCC 6.3.1 with C++ ABI 1010
Settings: USE_WX_
I've pushed a tool "kicad-ogltest" to master under utils/, which contains some preliminary tests to determine OpenGL compatibility. Once this tool has propagated to nightlies, I'm going to seek out KiCad users with unusual graphics configurations to run it and report its response.