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
- "ArgumentException: Unknown Type:`UnityEngine.SkinnedMeshRenderer`" Error thrown when a Subscene is open in a Scene
- Editor freezes on "Postprocessing IL for Assembly-CSharp" when compiling a script with an InputAction object referenced in a Managed Component
- UnityYAMLMerge fails to merge on some computers when some specific files are used
- [Android] The application freezes during the AssetBundle loading
- PlaneOcclusionShader Properties foldout does not display any content
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.