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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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.