Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
5.15
-
None
-
Linux, X11, Ubuntu 21.10
Description
Hello,
While testing my software on various systems, I noticed that it crashes on startup on OSes running llvmpipe, for instance on an Ubuntu 21.10 VM on VirtualBox.
I reduced the setup_opengl function to this which is enough to cause the crash:
static void setup_opengl() { QSurfaceFormat fmt = QSurfaceFormat::defaultFormat(); fmt.setProfile(QSurfaceFormat::CoreProfile); fmt.setSwapInterval(1); fmt.setMajorVersion(4); fmt.setMinorVersion(6); QOpenGLContext ctx; ctx.setFormat(fmt); ctx.create(); // crash is here }
So, my issue with this is that since the crash occurs on creation of the context, I cannot even try to call glGetStrings(GL_VERSION) to try to blacklist llvmpipe. What are my other options to avoid this sad state of affairs ?