Sprite Release issue when using both main & sub asset

Hello there,

I just discovered a Release issue in Addressable 1.19.15 (cannot check if prevent if next revisions du to some custom code).

We have a sprite used in references. If at any time I load the same sprite using a reference with sub asset, ans without, the asset won’t be released.

  • load A[A], load A[A], Release both => works
  • load A, load A, Release both => works
  • load A[A], load A, Release both => Reference count stays at 1 and asset is not released

Is it a known issue? Any suggestion on how to prevent this (except running through all our asset references and updating everything manually)?

Thanks

@LoicLer is there any chance you could send a bug report that reproduces this issue? also, out of curiosity, does the order that you release A[A] and A and or the order that you load them affect this at all? This sounds like it’s not intended behavior, so a bug report would help us take a look at it. Thanks!