From ab6514e16bae7aac08a7b093288cfa4cd41e1e20 Mon Sep 17 00:00:00 2001 From: Konrad Dysput Date: Wed, 17 Jan 2024 18:50:43 +0100 Subject: [PATCH] Version 3.8.5: Handle nullable graphic card attributes (#201) * Version 3.8.5: Handle nullable graphic card attributes * Update Runtime/Model/Attributes/MachineAttributeProvider.cs --- CHANGELOG.md | 5 +++++ Runtime/BacktraceClient.cs | 2 +- Runtime/Model/Attributes/MachineAttributeProvider.cs | 5 +++++ package.json | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 121b435d..25427a23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Backtrace Unity Release Notes +## Version 3.8.5 + +Bugfixes +- Fixed populating graphic card attributes, when graphic card is not available. + ## Version 3.8.4 Bugfixes diff --git a/Runtime/BacktraceClient.cs b/Runtime/BacktraceClient.cs index 7b60180b..788657b2 100644 --- a/Runtime/BacktraceClient.cs +++ b/Runtime/BacktraceClient.cs @@ -24,7 +24,7 @@ namespace Backtrace.Unity /// public class BacktraceClient : MonoBehaviour, IBacktraceClient { - public const string VERSION = "3.8.4"; + public const string VERSION = "3.8.5"; internal const string DefaultBacktraceGameObjectName = "BacktraceClient"; public BacktraceConfiguration Configuration; diff --git a/Runtime/Model/Attributes/MachineAttributeProvider.cs b/Runtime/Model/Attributes/MachineAttributeProvider.cs index ae8076e4..d085f8b3 100644 --- a/Runtime/Model/Attributes/MachineAttributeProvider.cs +++ b/Runtime/Model/Attributes/MachineAttributeProvider.cs @@ -82,7 +82,12 @@ private void IncludeOsInformation(IDictionary attributes) } private void IncludeGraphicCardInformation(IDictionary attributes) { + // if a graphic card is not available + if (SystemInfo.graphicsDeviceType == null) + { + return; + } //This is the PCI device ID of the user's graphics card. Together with SystemInfo.graphicsDeviceVendorID, //this number uniquely identifies a particular graphics card model. //The number is the same across operating systems and driver versions. diff --git a/package.json b/package.json index 8f0266be..e01d92bc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "io.backtrace.unity", "displayName": "Backtrace", - "version": "3.8.4", + "version": "3.8.5", "unity": "2017.1", "description": "Backtrace's integration with Unity games allows customers to capture and report handled and unhandled Unity exceptions to their Backtrace instance, instantly offering the ability to prioritize and debug software errors.", "keywords": [