How to reproduce:
1. Open the user attached "JobLoggingCrashIssue-2021.3.zip" project
2. Open the "SampleScene" Scene
3. Enter Play Mode
4. Open the Console Window
Expected result: Error "My Test Error" is logged
Actual result: "UnityEngine::UnityException: get_realtimeSinceStartupAsDouble can only be called from the main thread" is thrown
Reproducible with: 2020.2.0b12, 2020.3.33f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11
Couldn't test with: 2019.4.38f1, 2020.2.0b11 (Functionality was not available)
Note:
- Entering Play Mode a second time, a silent crash occurs
- The Debug.LogError gets thrown after a few seconds of running