[BUG] Renamed adressable assets fail to load

If I have assets marked as addressables and later rename one of it than addresables will fail to load assets with following error:

Exception encountered in operation UnityEngine.AddressableAssets.Initialization.InitializationOperation, result='', status='Succeeded' - Chain<GameObject,IResourceLocator>: ChainOperation of Type: UnityEngine.GameObject failed because dependent operation failed
Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=8a2d47c4bcb0f1042ae7cf0a80168b2f
UnityEngine.ResourceManagement.ChainOperation`2:OnWrappedCompleted(AsyncOperationHandle`1)
DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:19)

Is this known bug? if it is when it will be fixed?

You renamed it in addressable panel or the project panel? If the later then the address name will not get synced, may cause the system to log the InvalidKeyException exception.

Of course in the Project window. And this is done by Art team. The always move assets around just because it is Unity way of work. There is no any hardcoded paths in project just links that works through GIUDs.

As I know adressables work through GUDs too but have bugs.

I think it is critical uncoverable bugs because now Unity just can no use anything and any reimport dont work.
The only hing that work is delete adressables, add it again and adjust all setting one again.

Very hard to work with the system.

May be there in some place button that can revalidate adressables?

1 Like

Do you know why the hell hey need synced address name?
We only need to reference assets by their ids that never change in Unity.

1 Like

Rename the asset will cause the address out of sync. Because the system can not distinguish a wrong path with a manual changed address. My importer (see my signature), implements a logic to sync the address for moved assets if the address looks like a path.

Anyway the buggy behavior only affects if you reference the asset by address. So if you switch to use AddressReference, which relying on guid, that will fix your problem.

2 Likes