Skip to content

Commit

Permalink
Version 3.8.5: Handle nullable graphic card attributes (#201)
Browse files Browse the repository at this point in the history
* Version 3.8.5: Handle nullable graphic card attributes

* Update Runtime/Model/Attributes/MachineAttributeProvider.cs
  • Loading branch information
konraddysput authored Jan 17, 2024
1 parent 2d4f738 commit ab6514e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Runtime/BacktraceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Backtrace.Unity
/// </summary>
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;

Expand Down
5 changes: 5 additions & 0 deletions Runtime/Model/Attributes/MachineAttributeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ private void IncludeOsInformation(IDictionary<string, string> attributes)
}
private void IncludeGraphicCardInformation(IDictionary<string, string> 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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit ab6514e

Please sign in to comment.