Search Issue Tracker

Fixed

Fixed in 2022.2.2f1, 2023.1.0a22

Votes

0

Found in

2022.2.1f1

2023.1.0a21

Issue ID

UUM-26042

Regression

Yes

Crash on AssetDatabase::CheckCanAddObjectToAsset(Object*) when applying textures on GameObjects in Scene view

-

Reproduction steps:
1. Open the attached project “TextureCrash”
2. In the Project window find the “Assets/Herringbone_Brick_baseColor” texture file and apply it to any GameObject in the Scene view

Expected result: The texture is applied to the GameObject
Actual result: Unity crashes

Reproducible with: 2022.2.1f1, 2023.1.0a18, 2023.1.0a21
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.5f1, 2023.1.0a17, 2023.1.0b2
Fixed in: 2022.2.2f1, 2023.1.0a22

Reproducible on: macOS 13.1 (Intel)

Stacktrace:
#0 0x00000102989f4c in AssetDatabase::CheckCanAddObjectToAsset(Object*) 2
#1 0x00000102ac119c in CreateSerializedAssetV2(Object**, int, core::basic_string<char, core::StringStorageDefault<char> > const&, AssetDatabase::CreateAssetMask, AssetResolver const&) 3
#2 0x0000010298ab4c in AssetDatabase::CreateSerializedAsset(Object&, UnityGUID const&, core::basic_string_ref<char>, core::basic_string<char, core::StringStorageDefault<char> > const&, AssetDatabase::CreateAssetMask) 4
#3 0x0000010350fc94 in CreateMaterialAsset(Material*, core::basic_string<char, core::StringStorageDefault<char> > const&) 5
#4 0x0000010206c878 in FindOrCreateMaterialAssetForTexture(Texture&, Shader&, ShaderLab::FastPropertyName, Material*) 6
#5 0x000001020691dc in HandleTextureDragAndDrop(Object*, Object*, DragAndDropForwarding::DragInfo*)

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.