Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d6b1a9c
Allocation improvements
konraddysput Dec 10, 2020
5184958
Native attributes improvement
konraddysput Dec 10, 2020
1d4280a
Removed try/catch block
konraddysput Dec 10, 2020
5d2105b
Added filename to stack frames
konraddysput Dec 16, 2020
24a8cce
Records operation improvements
konraddysput Dec 16, 2020
e38f563
Fixed db.count
konraddysput Dec 16, 2020
d13c4b6
Improved JSON algorithm
konraddysput Dec 16, 2020
79986f1
Fixed invalid preprocesor editor directive
konraddysput Dec 17, 2020
139c0a9
Removed not used meta file
konraddysput Dec 17, 2020
30cd18d
Modified complex annotations
konraddysput Dec 17, 2020
ae25176
Merge branch 'feature/improvements' of https://github.com/backtrace-l…
konraddysput Dec 17, 2020
aa8ce6f
Stack frame optimization
konraddysput Dec 17, 2020
9ec3f5f
Style changes
konraddysput Dec 17, 2020
517b405
Unit tests update
konraddysput Dec 17, 2020
ea18aa4
Make backtrace unity message class variables readonly
konraddysput Dec 18, 2020
4802a3f
update environment variables checks
konraddysput Jan 4, 2021
da6eb2e
Source code property update + few small improvements to decrease gc a…
konraddysput Jan 7, 2021
4b0a686
Update BacktraceDatabaseAttachmentManager.cs
vlussenburg Jan 15, 2021
ec8bca2
Inlcuded removed namespace
konraddysput Jan 19, 2021
ec7ab38
Fixed line endings
konraddysput Jan 19, 2021
963e0f3
Prevents from returning empty file name - return instead libary name
konraddysput Jan 19, 2021
3971dbc
support for filename - .
konraddysput Jan 19, 2021
40e3bdc
Guessing library name improvements
konraddysput Jan 20, 2021
d61fb8f
Guessing library name improvements
konraddysput Jan 20, 2021
28b8e77
Fixed line engings
konraddysput Jan 21, 2021
a484bf4
OOM/Anr support (#57)
konraddysput Jan 21, 2021
84c4346
Changelog and readme update
konraddysput Jan 21, 2021
f6bf7ee
Update CHANGELOG.md
Jan 21, 2021
913de9c
Error.type attributes support
konraddysput Jan 21, 2021
272837b
Consistent line ending
konraddysput Jan 21, 2021
13b4bf7
Update CHANGELOG.md
Jan 21, 2021
f73e373
updated error.type attribute for hangs
konraddysput Jan 21, 2021
f7ef454
Update README.md
Jan 22, 2021
0ce1ada
Squashed commit of the following:
konraddysput Jan 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Android/lib/arm64-v8a/libbacktrace-native.so
Binary file not shown.
Binary file modified Android/lib/armeabi-v7a/libbacktrace-native.so
Binary file not shown.
Binary file modified Android/lib/x86/libbacktrace-native.so
Binary file not shown.
16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Backtrace Unity Release Notes

## Version 3.3.0
- `BacktraceReport` stack trace now includes the file name of the stack frame.
- Performance improvements:
- JSON algorithm performance improvements - avoid analyzing data types.
- improved library attributes management.
- improved Unity logs management.
- Support for Low Memory error reports on Anrdoid and iOS (these are sometimes referred to as OOM or Out Of Memory errors). If a low memory situation is detected, backtrace-unity will attempt to generate and submit a native error report to the Backtrace instance. The report will have the `error.type` value of `Low Memory`.
- New support for hang detection on Android and iOS. If a game experiences non responsiviness after 5 seconds, backtrace-unity will generate an error report to the Backtrace instance. The report will have the `error.type` value of `Hang`.


## Version 3.2.6
- `BacktraceClient` will apply sampling only to errors lacking exception information.
- Fixed annotations nullable value.
- Renamed `BacktraceUnhandledException` classifier to `error`.
- Renamed `BacktraceUnhandledException` classifier, which was generated from a Debug.LogError call, to `error`.
- Fixed nullable environment annotation value.

## Version 3.2.5
- Added `BacktraceClient` Initialization method that allows developer to intialize Backtrace integration without adding game object to game scene.
- Fixed invalid `meta` file for iOS integration for Unity 2019.2.13f1.
- HTTP communication messages improvements - right now Backtrace-Unity plugin will print only one error message when network failure happen. Backtrace-Unity will stop printing failures until next successfull report upload.
- Sampling skip fraction - Enables a new random sampling mechanism for unhandled exceptions - by default sampling is equal to 0.01 - which means only 1% of randomply sampling reports will be send to Backtrace. If you would like to send all unhandled exceptions to Backtrace - please replace 0.01 value with 1.
- Sampling skip fraction - Enables a new random sampling mechanism for BacktraceUnhandledExceptions (errors from Debug.LogError), by setting default sampling equal to 0.01 - which means only 1% of randomly sampled Debug.LogError reports will be send to Backtrace. If you would like to send all Debug.LogError to Backtrace - please replace 0.01 value with 1.

**Be aware**

By default Backtrace library will send only 1% of your reports - please change this value if you would like to send more unhandled exceptions to server.
By default Backtrace library will send only 1% of your Debug.LogError reports - please change this value if you would like to send more Debug.LogErrors to server.



Expand Down
2 changes: 1 addition & 1 deletion Editor/BacktraceClientConfigurationEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override void OnInspectorGUI()
#else
settings.IgnoreSslValidation = false;
#endif
#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IOS
settings.HandleANR = EditorGUILayout.Toggle(BacktraceConfigurationLabels.LABEL_HANDLE_ANR, settings.HandleANR);
#endif
settings.GameObjectDepth = EditorGUILayout.IntField(BacktraceConfigurationLabels.LABEL_GAME_OBJECT_DEPTH, settings.GameObjectDepth);
Expand Down
10 changes: 6 additions & 4 deletions Editor/BacktraceConfigurationEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ public override void OnInspectorGUI()
serializedObject.FindProperty("IgnoreSslValidation"),
new GUIContent(BacktraceConfigurationLabels.LABEL_IGNORE_SSL_VALIDATION));
#endif
#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IOS
EditorGUILayout.PropertyField(
serializedObject.FindProperty("HandleANR"),
new GUIContent(BacktraceConfigurationLabels.LABEL_HANDLE_ANR));

EditorGUILayout.PropertyField(
serializedObject.FindProperty("SymbolsUploadToken"),
new GUIContent(BacktraceConfigurationLabels.LABEL_SYMBOLS_UPLOAD_TOKEN));
#if UNITY_2019_2_OR_NEWER && UNITY_ANDROID
EditorGUILayout.PropertyField(
serializedObject.FindProperty("SymbolsUploadToken"),
new GUIContent(BacktraceConfigurationLabels.LABEL_SYMBOLS_UPLOAD_TOKEN));
#endif
#endif
EditorGUILayout.PropertyField(
serializedObject.FindProperty("UseNormalizedExceptionMessage"),
Expand Down
2 changes: 1 addition & 1 deletion Editor/Native/Android/SymbolsUpload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private string ConvertSymbols(string symbolsArchive)

private string GetPathToSymbolsArchive(BuildReport report)
{
var archiveName = string.Format("{0}-{1}-v{2}.symbols.zip", Path.GetFileNameWithoutExtension(report.summary.outputPath), PlayerSettings.bundleVersion, PlayerSettings.Android.bundleVersionCode);
var archiveName = string.Format("{0}-{1}-v{2}.symbols.zip", Path.GetFileNameWithoutExtension(report.summary.outputPath), PlayerSettings.bundleVersion, PlayerSettings.Android.bundleVersionCode.ToString());
return Path.Combine(Directory.GetParent(report.summary.outputPath).FullName, archiveName);

}
Expand Down
Loading