Search Issue Tracker




Found in


Issue ID




Crash on SerializedProperty_CUSTOM_SetStringValueInternal when setting SerializedProperty string value



Reproduction steps:
1. Open the attached project "CrashRepro"
2. Click on “Assets/IgnoreThis/V2_Test/TestScript1.asset“ to make it visible in the Inspector window
3. Open the “WINDOW“ window (Window > NAME > Script Editor)
4. Change “Text 2“, “Text 1“, and “Text 3“ values to “asd“ (can be anything)
5. If it doesn't crash repeat step 4 a few times

Expected result: “Text 2“, “Text 1“, and “Text 3“ values are changed
Actual result: Editor crashes

Reproducible with: 2022.3.13f1, 2022.3.31f1, 2023.1.0a18, 6000.0.6f1
Not reproducible with: 2021.3.39f1, 2022.3.6f1, 2023.1.0a17
Couldn’t test with: 2022.3.7f1-2022.3.12f1 (Missing default layout error when opening project)

Reproducible on: Windows 10
Not reproducible on: macOS Sonoma 14.5

Note: step 4 seems to crash more consistently when appending text instead of changing it

First few lines of stack trace:
0x00007FFA6254CA9C (Unity) SerializedProperty_CUSTOM_SetStringValueInternal
0x00000275CA4F0DD8 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.SerializedProperty:SetStringValueInternal_Injected (intptr,UnityEngine.Bindings.ManagedSpanWrapper&)
0x00000275CA4F0BEB (Mono JIT Code) UnityEditor.SerializedProperty:SetStringValueInternal (string)
0x00000275CA4F08B3 (Mono JIT Code) UnityEditor.SerializedProperty:set_stringValue (string){noformat}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.