Skip to content

Commit

Permalink
Merge pull request #132 from ZLLentz/maint_default_mesa
Browse files Browse the repository at this point in the history
MAINT: workaround for opengl crash when sshing to operator console
  • Loading branch information
ZLLentz authored Oct 19, 2022
2 parents fd9404f + 8a44362 commit c3fdff3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/dev_conda
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,10 @@ source "${TOKEN_DIR}/typhos.sh"
# The same was done with PyDM and this fixes Designer and friends.
if [ -n "${SSH_CONNECTION}" ]; then
export QT_QUICK_BACKEND="software"
# On operator consoles over ssh for most users, opengl crashes unless this is set.
# This tells the GLX extension to use software rendering by way of the mesa library.
if [ -z "${__GLX_VENDOR_LIBRARY_NAME}" ]; then
export __GLX_VENDOR_LIBRARY_NAME="mesa"
fi
fi

5 changes: 5 additions & 0 deletions scripts/pcds_conda
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,9 @@ source "${TOKEN_DIR}/typhos.sh"
# The same was done with PyDM and this fixes Designer and friends.
if [ -n "${SSH_CONNECTION}" ]; then
export QT_QUICK_BACKEND="software"
# On operator consoles over ssh for most users, opengl crashes unless this is set.
# This tells the GLX extension to use software rendering by way of the mesa library.
if [ -z "${__GLX_VENDOR_LIBRARY_NAME}" ]; then
export __GLX_VENDOR_LIBRARY_NAME="mesa"
fi
fi

0 comments on commit c3fdff3

Please sign in to comment.