XQuartz work around to avoid QOpenGLWidget: Failed to make context current; QOpenGLShaderProgram: could not create shader program

The SLiM/SLiMGUI evolutionary simulation framework from messerlab dot org slash slim/ seg faults when using XQuartz similiar to what this user reported with Ignition Gazebo, XQuartz issue 239, which then references this Indirect GLX rendering issue 144 that has yet to be fixed and I’m using XQuartz 2.8.6_beta2. I had to remove links to the bug reports as I don’t have permission to post URLs.

export LIBGL_ALWAYS_SOFTWARE=1, export LIBGL_ALWAYS_INDIRECT=1 and defaults write org.macosforge.xquartz.X11 enable_iglx -bool true do not help, except for removing these 2 warning:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Here are the errors after launching SLiMGUI:

QOpenGLWidget: Failed to make context current
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:
 ""
Segmentation fault (core dumped)
glxinfo | grep "OpenGL version"
OpenGL version string: 1.4 (2.1 ATI-4.14.1)

setting export QT_DEBUG_PLUGINS=1

SLiMgui 
Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archreq": 0,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
        ]
    },
    "archreq": 0,
    "className": "QXdgDesktopPortalThemePlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "archreq": 0,
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 330752
}


Found metadata in lib /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "ibus"
        ]
    },
    "archreq": 0,
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 330752
}


09:31:01 : Found metadata in lib /usr/lib64/qt5/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archreq": 0,
    "className": "QGifPlugin",
    "debug": false,
    "version": 330752
}


09:31:01 : Found metadata in lib /usr/lib64/qt5/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archreq": 0,
    "className": "QICOPlugin",
    "debug": false,
    "version": 330752
}


09:31:01 : Found metadata in lib /usr/lib64/qt5/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archreq": 0,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 330752
}


09:31:01 : Found metadata in lib /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_egl"
        ]
    },
    "archreq": 0,
    "className": "QXcbEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


09:31:01 : Found metadata in lib /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_glx"
        ]
    },
    "archreq": 0,
    "className": "QXcbGlxIntegrationPlugin",
    "debug": false,
    "version": 330752
}

GDB backtrace:

Core was generated by `./SLiMgui'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000155553355c27 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
 (gdb) bt full
#0  0x0000155553355c27 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000155546473c1b in emit_element_none.isra () from /lib64/libGLX_system.so.0
No symbol table info available.
#2  0x0000155546473ed1 in emit_DrawArrays_none () from /lib64/libGLX_system.so.0
No symbol table info available.
#3  0x0000155554b7a800 in QOpenGLTextureBlitterPrivate::blit(unsigned int, QMatrix4x4 const&, QGenericMatrix<3, 3, float> const&) ()
   from /lib64/libQt5Gui.so.5
No symbol table info available.
#4  0x0000155554b0d3b6 in blitTextureForWidget(QPlatformTextureList const*, int, QWindow*, QRect const&, QOpenGLTextureBlitter*, QPoint const&, bool) ()
   from /lib64/libQt5Gui.so.5
No symbol table info available.
#5  0x0000155554b0dcf6 in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) ()
   from /lib64/libQt5Gui.so.5
No symbol table info available.
#6  0x000015554abd9148 in QXcbBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) ()
   from /lib64/libQt5XcbQpa.so.5
No symbol table info available.
#7  0x0000155554e1c6c3 in QWidgetBackingStore::qt_flush(QWidget*, QRegion const&, QBackingStore*, QWidget*, QPlatformTextureList*, QWidgetBackingStore*) ()
   from /lib64/libQt5Widgets.so.5
No symbol table info available.
#8  0x0000155554e1e158 in QWidgetBackingStore::flush(QWidget*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#9  0x0000155554e1f787 in QWidgetBackingStore::doSync() () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#10 0x0000155554e1f9a9 in QWidgetBackingStore::sync(QWidget*, QRegion const&) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#11 0x0000155554e6cb6c in QWidgetWindow::handleExposeEvent(QExposeEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#12 0x0000155554e6d62e in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#13 0x0000155554e0f5f5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#14 0x0000155554e16b10 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
--Type <RET> for more, q to quit, c to continue without paging--No symbol table info available.
#15 0x0000155554232326 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#16 0x000015555489456e in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#17 0x00001555548947fd in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#18 0x000015555487176b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
No symbol table info available.
#19 0x000015554abe645e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
No symbol table info available.
#20 0x000015554ede567d in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
No symbol table info available.
#21 0x000015554ede5a48 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
No symbol table info available.
#22 0x000015554ede5ae0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
No symbol table info available.
#23 0x000015555428518b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#24 0x000015555423118b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#25 0x00001555542391a6 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
No symbol table info available.
#26 0x000000000056cbac in main ()
No symbol table info available.

MobaXterm works fine on Windows. Any suggestions on how to get this application to open? Any other environment variables to try? I also tried export MESA_GL_VERSION_OVERRIDE=3.2 & export MESA_GLSL_VERSION_OVERRIDE=150