Reproduction steps:
1. Open the attached “IN-133671” project
2. Select the “AddressableAssetsData/AddressableAssetSettings” Asset in the Project window
3. Make sure the “Enable Json Catalog” option is unchecked in the Inspector window
4. Open the Addressables Groups window (Window > Asset Managment > Addressables > Groups)
5. Extend the “Play Mode Script” dropdown in the toolbar
6. Select the “Use Existing Build” option
7. Build the Addressables (Build > New Build > Default Build Script)
8. Open the “Scenes/SampleScene” Scene
9. Enter the Play Mode
10. Observe the Console window
Actual result: “System.Exception: Unable to load asset of type UnityEngine.Localization.Locale from location Assets/Norwegian Bokm?l (Norway) (nb-NO).asset.” error is thrown
Expected result: No errors are thrown
Reproducible with: 2.1.0, 2.4.1, 2.8.1 (6000.0.66f1, 6000.3.8f1, 6000.4.0b7, 6000.5.0a6)
Couldn’t test with: 1.28.2 (2022.3.71f1) - No “Enable Json Catalog” option available
Reproducible on: Windows 11, macOS 15.7.3
Not reproducible on: No other environments tested
Notes:
- Error may differ between OSes, but it will always mention the failed asset
- Go to the catalog.bin in the path “Library/com.unity.addressables/aa/<Platform>/catalog.bin”. Open it using a hex reader and search for the path above and note that the “?” is present in the path itself
- Checking the “Enable Json Catalog” option properly serializes the path of the asset bundle