Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bruno-garcia/unity-of-bugs
The fun game of bugs 🐞🦋🐛🐜🕷
https://github.com/bruno-garcia/unity-of-bugs
bugs unity
Last synced: about 1 month ago
JSON representation
The fun game of bugs 🐞🦋🐛🐜🕷
- Host: GitHub
- URL: https://github.com/bruno-garcia/unity-of-bugs
- Owner: bruno-garcia
- Created: 2020-12-06T22:17:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-10T02:35:12.000Z (over 3 years ago)
- Last Synced: 2024-01-27T23:11:57.042Z (10 months ago)
- Topics: bugs, unity
- Language: C#
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity of Bugs
A set of different programming errors that would cause errors on a real world game.
This serves as a test project for crash reporting tools.## Current cases
* Assert False - only relevant on the editor (unless `BuildOptions.ForceEnableAssertions=true`).
* C# throw null - unhandled by user code.
* C# throw/try/catch and `Debug.LogException`.
* C# Log an instance of an Exception as a String - The raw `Exception.ToString()`.
* C# Unity `Log.Debug` calls.
* Android: Kotlin `throw Exception` - unhandled by user code.
* Android: Kotlin `throw` on a background thread - **Crashes the app**.
* Android: C bad access - Requires IL2CPP. **Crashes the app**.Currently the native plugins are focused on Android. But iOS will come next, and standalone (desktop) after that.
## Other cases
`UnityEngine.Diagnostics.Utils` has a method called `ForceCrash()`.
It takes a `ForcedCrashCategory` as an argument [which includes 4 different types of errors](https://docs.unity3d.com/2019.1/Documentation/ScriptReference/Diagnostics.ForcedCrashCategory.html).
These will be added too in the future. Quicker if you'd like to contribute with a PR :)