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
- Invalid Clip Method
- WebGPU error with Fantasy Kingdom and GPU Resident Drawer
- WebGPU fails with height fog in Fantasy Kingdom
- Crash on UndoManager::RegisterUndoInternal when applying added GameObjects to a Prefab
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
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.