Skip to content

Commit 8175b4b

Browse files
committed
Version 3.2.3
1 parent 41a9b06 commit 8175b4b

22 files changed

+241
-157
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Backtrace Unity Release Notes
22

3+
## Version 3.2.3
4+
- Backtrace offline database will now store 8 reports by default. Previously this was not set by default.
5+
- HTTP client communication improvements
6+
- Improvements in UPM
7+
- Updated symbolication strategy on iOS crashes
8+
39
## Version 3.2.2
410
- Fixed native iOS attributes
511

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
The MIT License (MIT)
2-
3-
Copyright (c) 2018 Backtrace I/O, Inc.
4-
5-
Permission is hereby granted, free of charge, to any person obtaining
6-
a copy of this software and associated documentation files (the "Software"),
7-
to deal in the Software without restriction, including without limitation
8-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
9-
and/or sell copies of the Software, and to permit persons to whom the Software
10-
is furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
22-
23-
24-
The JSON library included in the Backtrace Unity plugin is derived from the following:
25-
Copyright (c) 2007 James Newton-King
26-
27-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
28-
29-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
30-
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Backtrace I/O, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the "Software"),
7+
to deal in the Software without restriction, including without limitation
8+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
and/or sell copies of the Software, and to permit persons to whom the Software
10+
is furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+
23+
24+
The JSON library included in the Backtrace Unity plugin is derived from the following:
25+
Copyright (c) 2007 James Newton-King
26+
27+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
28+
29+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
30+
3131
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSE.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
[Backtrace](http://backtrace.io/)'s integration with Unity allows developers to capture and report handled and unhandled Unity exceptions and crashes to their Backtrace instance, instantly offering the ability to prioritize and debug software errors.
55

6+
[![openupm](https://img.shields.io/npm/v/io.backtrace.unity?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/io.backtrace.unity/)
7+
8+
69
[github release]: (https://github.com/backtrace-labs/backtrace-labs/)
710

811
- [Features Summary <a name="features-summary"></a>](#features-summary--a-name--features-summary----a-)

Runtime/BacktraceClient.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class BacktraceClient : MonoBehaviour, IBacktraceClient
2020
{
2121
public BacktraceConfiguration Configuration;
2222

23+
public const string VERSION = "3.2.3";
2324
public bool Enabled { get; private set; }
2425

2526
/// <summary>
@@ -339,7 +340,7 @@ public void SetClientReportLimit(uint reportPerMin)
339340
{
340341
if (!Enabled)
341342
{
342-
Debug.LogWarning("Please enable BacktraceClient first - Please validate Backtrace client initializaiton in Unity IDE.");
343+
Debug.LogWarning("Please enable BacktraceClient first.");
343344
return;
344345
}
345346
_reportLimitWatcher.SetClientReportLimit(reportPerMin);
@@ -470,6 +471,10 @@ record = Database.Add(data);
470471
yield break;
471472
}
472473
}
474+
else
475+
{
476+
yield break;
477+
}
473478
}
474479

475480
yield return new WaitForEndOfFrame();
@@ -507,7 +512,7 @@ record = Database.Add(data);
507512
if (record != null)
508513
{
509514
record.Dispose();
510-
if (Database != null && result.Status != BacktraceResultStatus.ServerError)
515+
if (Database != null && result.Status != BacktraceResultStatus.ServerError && result.Status != BacktraceResultStatus.NetworkError)
511516
{
512517
Database.Delete(record);
513518
}
@@ -566,7 +571,7 @@ internal void OnAnrDetected(string stackTrace)
566571
{
567572
if (!Enabled)
568573
{
569-
Debug.LogWarning("Please enable BacktraceClient first - Please validate Backtrace client initializaiton in Unity IDE.");
574+
Debug.LogWarning("Please enable BacktraceClient first.");
570575
return;
571576
}
572577
const string anrMessage = "ANRException: Blocked thread detected";
@@ -619,7 +624,7 @@ private void SendUnhandledException(BacktraceUnhandledException exception)
619624

620625
private bool ShouldSendReport(Exception exception, List<string> attachmentPaths, Dictionary<string, string> attributes)
621626
{
622-
if(!Enabled)
627+
if (!Enabled)
623628
{
624629
return false;
625630
}

Runtime/BacktraceDatabase.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ private void SendData(BacktraceDatabaseRecord record)
399399
StartCoroutine(
400400
BacktraceApi.Send(backtraceData, record.Attachments, queryAttributes, (BacktraceResult sendResult) =>
401401
{
402-
if (sendResult.Status != BacktraceResultStatus.ServerError)
402+
if (sendResult.Status != BacktraceResultStatus.ServerError && sendResult.Status != BacktraceResultStatus.NetworkError)
403403
{
404404
Delete(record);
405405
}
@@ -465,6 +465,7 @@ protected virtual bool InitializeDatabasePaths()
465465
DatabasePath = Configuration.GetFullDatabasePath();
466466
if (string.IsNullOrEmpty(DatabasePath))
467467
{
468+
Debug.LogWarning("Backtrace database path is empty.");
468469
return false;
469470
}
470471

@@ -477,6 +478,11 @@ protected virtual bool InitializeDatabasePaths()
477478
databaseDirExists = dirInfo.Exists;
478479
}
479480

481+
if(!databaseDirExists)
482+
{
483+
Debug.LogWarning(string.Format("Backtrace database path doesn't exist. Database path: {0}", DatabasePath));
484+
485+
}
480486
return databaseDirExists;
481487

482488
}

Runtime/Model/BacktraceConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public class BacktraceConfiguration : ScriptableObject
178178
/// Maximum number of stored reports in Database. If value is equal to zero, then limit not exists
179179
/// </summary>
180180
[Tooltip("This is one of two limits you can impose for controlling the growth of the offline store. This setting is the maximum number of stored reports in database. If value is equal to zero, then limit not exists, When the limit is reached, the database will remove the oldest entries.")]
181-
public int MaxRecordCount;
181+
public int MaxRecordCount = 8;
182182

183183
/// <summary>
184184
/// Database size in MB

Runtime/Model/BacktraceData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class BacktraceData
4545
/// <summary>
4646
/// Version of the C# library
4747
/// </summary>
48-
public const string AgentVersion = "3.2.2";
48+
public const string AgentVersion = BacktraceClient.VERSION;
4949

5050
/// <summary>
5151
/// Application thread details

Runtime/Model/BacktraceResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ internal static BacktraceResult OnLimitReached()
9393
/// <param name="report">Executed report</param>
9494
/// <param name="exception">Exception</param>
9595
/// <returns>BacktraceResult with exception information</returns>
96-
internal static BacktraceResult OnError(Exception exception)
96+
internal static BacktraceResult OnNetworkError(Exception exception)
9797
{
9898
return new BacktraceResult()
9999
{
100100
Message = exception.Message,
101-
Status = BacktraceResultStatus.ServerError
101+
Status = BacktraceResultStatus.NetworkError
102102
};
103103
}
104104

Runtime/Native/Android/NativeClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private void HandleNativeCrashes()
105105
// add exception type to crashes handled by crashpad - all exception handled by crashpad
106106
// will be game crashes
107107
backtraceAttributes.Attributes["error.type"] = "Crash";
108+
backtraceAttributes.Attributes["backtrace.version"] = BacktraceClient.VERSION;
108109
var minidumpUrl = new BacktraceCredentials(_configuration.GetValidServerUrl()).GetMinidumpSubmissionUrl().ToString();
109110

110111
// reassign to captureNativeCrashes

0 commit comments

Comments
 (0)