From 78403e443609612b440a2c141d7fa34492b02d1c Mon Sep 17 00:00:00 2001 From: Anthony Thibault Date: Wed, 8 May 2019 13:33:45 -0700 Subject: [PATCH] Add gpu_name, gpu_driver & gpu_memory to crash annotations This may help us identify the hardware causing early gl initialization errors. --- interface/src/Application.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index b13fd3dda9..a0a660b21d 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1069,6 +1069,14 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo } } + { + // identify gpu as early as possible to help identify OpenGL initialization errors. + auto gpuIdent = GPUIdent::getInstance(); + setCrashAnnotation("gpu_name", gpuIdent->getName().toStdString()); + setCrashAnnotation("gpu_driver", gpuIdent->getDriver().toStdString()); + setCrashAnnotation("gpu_memory", std::to_string(gpuIdent->getMemory())); + } + // make sure the debug draw singleton is initialized on the main thread. DebugDraw::getInstance().removeMarker("");