Search Issue Tracker

Active

Votes

0

Found in

6000.0.36f1

6000.1.0b3

6000.2.0a1

Issue ID

UUM-95549

Regression

Yes

Crash on TypeTreeIterator::Children() when renaming a corrupted asset while Asset Serialization is set to Mixed

-

Reproduction steps:
1. Open the attached project ("BehaviorTreeCrashTest2")
2. Go to Project Settings -> Editor
3. Under Asset Serialization, set Mode to "Mixed"
4. In the project Assets, rename "a123" to "a123a"
5. If the Editor doesn't crash after step 4, rename the asset to "a123aa"

Expected result: The Asset gets renamed
Actual result: The Editor crashes

Reproducible with: 6000.0.0b11, 6000.0.36f1, 6000.1.0b4, 6000.2.0a1
Not reproducible with: 2022.3.57f1, 2023.3.0b11

Reproducible on: Windows 10 (User), macOS 15.1.1 (Intel)
Not reproducible on: No other environment tested

Stacktrace:
#0 0x00000102f220c8 in TypeTreeIterator::Children() const
#1 0x00000102f5bced in TypeTreeQueries::HasManagedReferences(TypeTree const&)
#2 0x00000104129cd0 in ResizeArrayGeneric(TypeTreeIterator const&, core::vector<unsigned char, core::allocator<unsigned char, 0ul>>&, int, int, bool, SerializedManagedReferencesIndex*, TypeTree const*)
#3 0x00000104129bb3 in SetStringValue(TypeTreeIterator const&, core::vector<unsigned char, core::allocator<unsigned char, 0ul>>&, int, core::basic_string<char, core::StringStorageDefault<char>> const&, SerializedManagedReferencesIndex*, TypeTree const*)
#4 0x000001045d896f in PatchNameInBinaryObjectData(core::basic_string_ref<char>, SerializedFile::ObjectData&)

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.