Search Issue Tracker

Won't Fix

Won't Fix in 1.1.X

Votes

0

Found in [Package]

1.19.9

Issue ID

ADDR-2325

Regression

No

ScriptableObject in Scene loses serialised reference when releasing DownloadDependenciesAsync operation

Package: Build Pipeline - Addressables

-

Reproduction steps:
1. Open the "Main" project from the attached "case-1370530.zip" folder
2. Window > Asset Management > Addressables > Groups
3. From the "Play Mode Script" dropdown select "Use Existing Build"
4. From the "Build" dropdown select "New Build" > "Default Build Script"
5. Open the "Main" Scene
6. Enter Play Mode
7. Click the Button in the Game view
8. Repeat step 7
9. Observe the Console window

Expected result: No errors occurred
Actual result: "Cannot apply scene configuration in use: No performance profile selected" error is logged

Reproducible with: 1.18.9, 1.19.9 (2020.3.20f1, 2021.1.24f1, 2021.2.0b15, 2022.1.0a12)
Could not test with: 1.19.9 (2019.4.31f1), 1.18.4 (2020.3.20f1) - failed to load files errors after downgrade

Note:
- Error goes away when commenting out "downloadOperation.Completed += OnCompleteOperation;" (line 85) in Packages/com.btmain/Runtime/Main.cs

  1. Resolution Note:

    This will not be fixed

  2. Resolution Note (1.1.X):

    Addressables is actually working as designed in this case. The scriptable object that was being used was part of one of the loaded asset bundles, so when new scenes were getting loaded (and previous scenes unload as a result) the AssetBundles were getting unloaded as well causing the reference to go missing.

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.