Search Issue Tracker

Won't Fix

Votes

1

Found in

6000.0.62f1

6000.2.12f1

Issue ID

UUM-126497

Regression

Yes

Crash on SpriteAtlas::PopulatePackedTexturesAndRenderData when changing Import Settings on a Sprite that has been added to a Sprite Atlas while in PlayMode

-

Steps to reproduce:
1. Open the “user’s attached project”
2. Open “SampleScene”
3. Enter Play Mode
4. Select the “AtlasTestSprite” Sprite through the Project window
5. Change the “Pixels Per Unit” value through the Inspector
6. Observe the crash

Reproducible with versions: 6000.0.62f1, 6000.2.3f1, 6000.2.12f1
Not reproducible with versions: 6000.2.2f1, 6000.3.0b10, 6000.4.0a4, 6000.5.0a1

Reproducible on: macOS 15.7.1 (M1 Max)
Not reproducible on: no other environment tested

First few lines of StackTrace:
#0 0x00000106271e0c in SpriteAtlas::PopulatePackedTexturesAndRenderData(core::vector<PPtr<Texture2D>, core::allocator<PPtr<Texture2D>, 0ul>> const&, core::vector<PPtr<Texture2D>, core::allocator<PPtr<Texture2D>, 0ul>> const&, BuildTargetPlatform, core::hash_map<std::{}{{}}1::pair<UnityGUID, long long>, SpriteRenderData, SpriteRenderDataKeyHash, std::{}{{}}1::equal_to<std::\{_}_1::pair<UnityGUID, long long>>>&)
#1 0x0000010626f608 in SpriteAtlasImporter::PackSpriteAtlas(SpriteAtlas, AssetImportContext&, AssetImporter, PPtr<Object>)
#2 0x00000106275efc in SpriteAtlasImporter::GenerateAssetData(AssetImportContext&)
#3 0x00000106acf7d0 in ImportToObjects(core::basic_string<char, core::StringStorageDefault<char>> const&, core::hash_map<AssetDatabase::ImporterID, ImporterInfo, core::hash<AssetDatabase::ImporterID>, std::__1::equal_to<AssetDatabase::ImporterID>> const&, core::vector<PostprocessorInfo, core::allocator<PostprocessorInfo, 0ul>> const&, TransientArtifactProvider const&, AssetResolveTracker const&, ImportAssetInputs const&, ImportAssetOutputs&, IImportProgress)
#4 0x00000106ace678 in ImportAsset(core::hash_map<AssetDatabase::ImporterID, ImporterInfo, core::hash<AssetDatabase::ImporterID>, std::__1::equal_to<AssetDatabase::ImporterID>> const&, core::vector<PostprocessorInfo, core::allocator<PostprocessorInfo, 0ul>> const&, TransientArtifactProvider const&, AssetResolveTracker const&, ImportAssetInputs const&, ImportAssetOutputs&, IImportProgress
)

  1. Resolution Note:

    Thank you for the report!
    The issue you have raised had been flagged internally and it got fixed in 6000.4.0a3 and 6000.4.0a3.
    Unfortunately it will not be ported to 6000.2 as it is reaching its EOL date

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.