Search Issue Tracker
Won't Fix
Votes
2
Found in
2021.3.41f1
2022.3.40f1
Issue ID
UUM-77507
Regression
No
Crash on JsonUtility_CUSTOM_ToJsonInternal when building a specific project
Reproduction steps:
1. Open the attached “ReproProj” project
2. Build the project
Expected result: The project is built
Actual result: The Editor crashes
Reproducible with: 2021.3.41f1, 2022.3.40f1, 2023.1.20f1
Not reproducible with: 2023.2.0a1, 6000.0.14f1
Reproducible on: macOS 14.6 (M1 Max)
Not reproducible on: No other environment tested
First few lines of the stack trace:
#0 0x00000191ca63c0 in _platform_memmove
#1 0x00000166420e68 in mono_string_new_utf8_len
#2 0x00000166420d88 in mono_string_new_len
#3 0x0000010516d338 in MonoStringNewLength(char const, int)
#4 0x00000104634cac in JsonUtility_CUSTOM_ToJsonInternal(ScriptingBackendNativeObjectPtrOpaque, unsigned char)
#5 0x0000034a6d218c in (wrapper managed-to-native) UnityEngine.JsonUtility:ToJsonInternal (object,bool) [{0x154226f10} + 0x74] (0x34a6d2118 0x34a6d2204) [0x147e42a80 - Unity Child Domain]
#6 0x0000034a6d2050 in UnityEngine.JsonUtility:ToJson (object,bool) [{0x154226df0} + 0x120] [/Users/bokken/build/output/unity/unity/Modules/JSONSerialize/Public/JsonUtility.bindings.cs :: 27u] (0x34a6d1f30 0x34a6d2094) [0x147e42a80 - Unity Child Domain]
#7 0x0000034a6d1ed0 in UnityEngine.JsonUtility:ToJson (object) [{0x154226db0} + 0x18] [/Users/bokken/build/output/unity/unity/Modules/JSONSerialize/Public/JsonUtility.bindings.cs :: 17u] (0x34a6d1eb8 0x34a6d1edc) [0x147e42a80 - Unity Child Domain]
Comments (2)
-
wpghijsen
Aug 16, 2024 19:34
Hi Unity Support,
This is the bug created from my crash, and I was just checking in to see what the time line is for a patch, or if I can do anything on my end to expedite this.
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case, the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.