Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with 0.16.1 #87

Open
1 of 4 tasks
laicasaane opened this issue Feb 9, 2023 · 2 comments
Open
1 of 4 tasks

Issues with 0.16.1 #87

laicasaane opened this issue Feb 9, 2023 · 2 comments

Comments

@laicasaane
Copy link
Contributor

Bug report

Bug category

  • Importer: issues related to the importer behaviours or UI.
  • ODIN: issues related to the Odin integration.
  • Documentation
  • Others

Steps to reproduce

  • Upgrade to 0.16.1 from 0.16.0

What is expected?

  • Everything works fine as before.

What is actually happening?

  1. It throws a warning after upgrading
[AddressableImporter] import settings file not found.
Please go to Assets/AddressableAssetsData folder, right click in the project window and choose 'Create > Addressables > Import Settings'.
—
at void UnityEngine.Debug.LogWarningFormat(string format, params object[] args)
void AddressableImporter.OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) in ./Library/PackageCache/[email protected]/Editor/AddressableImporter.cs:58
  1. And if we try to recreate the importer settings, it throws an exception
NullReferenceException: Object reference not set to an instance of an object
—
System.NullReferenceException: Object reference not set to an instance of an object
void AddressableImportSettings.CreateAsset() in ./Library/PackageCache/[email protected]/Editor/AddressableImportSettings.cs:86

Other relevant information

  • OS (Win/Mac/Linux/Others): Windows
  • Unity version: 2022.2.5f1
  • Addressables version: 1.21.2
  • Unity Addressable Importer version: 0.16.1
@favoyang
Copy link
Owner

favoyang commented Feb 9, 2023

That's weird.

0.16.1 from 0.16.0 only applies the commit below. It doesn't seem related to your issue.
5ebbcd8

I try to update 0.16.0 to 0.16.1 and get no problem. Also, it works by deleting both setting files and recreating them from scratch.

AddressableImportSettings
AddressableImportSettingsList

void AddressableImportSettings.CreateAsset() in ./Library/PackageCache/[email protected]/Editor/AddressableImportSettings.cs:86

        if (!AddressableImportSettingsList.Instance.SettingList.Contains(settings))

Could you place a few Debug.Log to check which element is null?

AddressableImportSettingsList
AddressableImportSettingsList.Instance
AddressableImportSettingsList.Instance.SettingList
settings

@laicasaane
Copy link
Contributor Author

laicasaane commented Feb 9, 2023

0.16.1 from 0.16.0 only applies the commit below. It doesn't seem related to your issue.

Yeah. I also inspected the said commit but can't spot anywhere that could possibly cause this issue.

I'll try again later by deleting the Library folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants