Search Issue Tracker
Fixed
Votes
1
Found in
5.3.1f1
Issue ID
759529
Regression
No
[JsonUtility] ToJson() with Lists and lots of Data causes crash
Repro steps:
1) Open the project and Scene.scene in it
2) Take a look in the script - notice the for cycle with 500k iterations
3) Play the scene - notice the crash
4) Change 500k to 50k in the script
5) Play and notice there is no crash
Workaround: divide the data into few string
Reproduced in: 5.4.0b1; 5.3.1p2; 5.3.0b1
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
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
- Crash on BatchApplyPropertiesFromSourceAssetDB when opening a specific project
- Scene view Camera cannot be moved with WASD/QE keys when the Right Mouse Button is held down and the Mouse is not moved
- Crash when calling default interface method from virtual method with same name
- [Android] Unity does not include the ".aab" extension for an AppBundle when it is built via script with the buildPlayerOptions.locationPathName = "AppName.apk" and EditorUserBuildSettings.buildAppBundle = true
anamikakkumari098
Jul 16, 2021 11:20
hi
shongololo
Jan 29, 2016 16:51
I am having a similar problem. Though I am not using lists, only strings.
When sending large amounts of messages, at some point JsonUtility starts returning json fragments and some variables are corrupted, e.g. to "None".
A crash normally ensues.