diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index c6f94f0a80..85ff5d197d 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -126,13 +126,18 @@ class CrashHandler: return group def _getOpenGLInfo(self): + opengl_instance = OpenGL.getInstance() + if not opengl_instance: + self.data["opengl"] = {"version": "n/a", "vendor": "n/a", "type": "n/a"} + return catalog.i18nc("@label", "not yet initialised
") + info = "" - self.data["opengl"] = {"version": OpenGL.getInstance().getOpenGLVersion(), "vendor": OpenGL.getInstance().getGPUVendorName(), "type": OpenGL.getInstance().getGPUType()} + self.data["opengl"] = {"version": opengl_instance.getOpenGLVersion(), "vendor": opengl_instance.getGPUVendorName(), "type": opengl_instance.getGPUType()} return info