Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.35f1
2022.3.20f1
2023.2.10f1
2023.3.0b7
6000.0.0b11
Issue ID
UUM-63977
Regression
No
Crash on JsonUtility_CUSTOM_FromJsonInternal when running "JsonUtility.FromJson" in a Thread
How to reproduce:
1. Open the “JsonThreadCrash“ project
2. Open “TestJsonUtility” > “StartTest”
3. Wait for 5 seconds
4. Exit the Editor
5. Observe the crash
Reproduced with: 2021.3.35f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7
Reproduced on: Windows 10 (by reporter), Windows 11
Not reproduced on: No other environment tested
First few lines of the stack trace:
0x00007FF95D09567C (KERNELBASE) RaiseException
[Licensing::IpcConnector] License Notification channel disconnected successfully.
[Licensing::IpcConnector] License Client channel disconnected successfully.
Cleanup mono
0x00007FF62FCEDB1E (Unity) LaunchBugReporter
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
Upon further inspection the reason of the crash is due to unsupported behavior.
Even though some versions of JsonUtility.FromJson can be used from background threads, this will not work after the Editor is closed.
The threads need to be stopped as the editor closes.
I can see that EditorApplication.quitting is used in other places in the project, it should be used here as well, and this should resolve the problem.