Search Issue Tracker

Fixed

Fixed in 2022.3.21f1, 2023.2.10f1, 2023.3.0b7

Votes

0

Found in

2022.3.13f1

Issue ID

UUM-62176

Regression

No

[Addressables] Lightmap errors are thrown when unloading an AssetBundle scene

--

-

Steps to reproduce:
1. Open the attached "Project.zip" link to download the project and Asset Bundles
2. Create a "Venues" folder on the Desktop and extract the Asset Bundle content to it
3. Upon opening the project, open "Assets/Scenes/VSSPlayer.unity" Scene
4. Enter Play Mode and wait until the scene loads with the Asset Bundles
5. Exit Play Mode
6. Enter Play Mode

Expected results: no errors are thrown
Actual results: "async texture load: failed to load Lightmap-64_comp_dir from <project path>" errors are printed in the Console regarding lightmaps

Reproducible with: Addressables 1.21.18 (2022.3.13f1)
Could not test on 2021.3.32f1, 2023.2.0f1, 2023.3.0a14 due to custom package errors when downgrading/upgrading

Reproducible on: Windows 10
Not reproducible on: No other environment tested

Notes:
-If the issue does not reproduce the first time, navigate in the Game View and/or swap the loaded Scenes with the bottom left dropdown list
-Errors:
Could not open file <project path>/archive:/CAB-e73404074a16023b2d49d1eed139cd15/CAB-e73404074a16023b2d49d1eed139cd15.sharedAssets.resS for read

async texture load: failed to load Lightmap-64_comp_dir from <project path>/archive:/CAB-e73404074a16023b2d49d1eed139cd15/CAB-e73404074a16023b2d49d1eed139cd15.sharedAssets.resS

Cancelling DisplayDialog because it was run from a thread that is not the main thread: Opening file failed Opening file <project path>/archive:/CAB-e73404074a16023b2d49d1eed139cd15/CAB-e73404074a16023b2d49d1eed139cd15.sharedAssets.resS: The filename, directory name, or volume label syntax is incorrect.

  1. Resolution Note (fix version 2023.3.0b7):

    User error. The user calls AssetBundle.UnloadAllBundles(unloadAllObjects:false) when exiting Play Mode. This causes an issue with the Texture Streaming Manager which still references textures loaded from the bundle. It will try to access the unloaded bundle, resulting in the error. Documentation added to the Unity manual.

  2. Resolution Note (fix version 2023.2.10f1):

    User error. The user calls AssetBundle.UnloadAllBundles(unloadAllObjects:false) when exiting Play Mode. This causes an issue with the Texture Streaming Manager which still references textures loaded from the bundle. It will try to access the unloaded bundle, resulting in the error. Documentation added to the Unity manual.

  3. Resolution Note (fix version 2022.3.21f1):

    User error. The user calls AssetBundle.UnloadAllBundles(unloadAllObjects:false) when exiting Play Mode. This causes an issue with the Texture Streaming Manager which still references textures loaded from the bundle. It will try to access the unloaded bundle, resulting in the error. Documentation added to the Unity manual.

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.