Skip to content

Restarting the project sometimes make the package not work anymore [USDU-461] #402

Description

@SoftwareMechanic

Hello!

Sometimes closing and reopening a Unity project make the package just not working anymore (maybe something saved in cache?), I can not import anymore USD files in Unity and whenever I try to open a stage reading a file from script I get errors:

  • ApplicationException: USD ERROR: Cannot determine file format for @C:/folder/output.usd:SDF_FORMAT_ARGS:target=usd@
  • ApplicationException: USD ERROR: Failed to open layer @C:/path/to/output.usd@
  • NullReferenceException: Null stage

so in the end I can not open and read USD file anymore

  • Asset Packages/com.unity.formats.usd/Runtime/Scripts/Tests/TestData/Materials has no meta file, but it's in an immutable folder. The asset will be ignored.
  • Asset Packages/com.unity.formats.usd/Runtime/Scripts/Tests/TestData/Materials has no meta file, but it's in an immutable folder. The asset will be ignored.

and a lot of similar logs all related to Materials

The files are correctly rendered in USD View and others tool.
Before I faced this issue, I was working easily with the same files, both from editor menu (Import) and from script.

you can see that issue #401 has been created by me, I was just reporting issue post-import, but now I can not even import the same file:
https://github.com/Unity-Technologies/usd-unity-sdk/files/12135108/usd_files.zip

Unity Version: 2022.3 (I faced same issue with .0 and .5f1)

In the projects I am testing this, there is also the NVIDIA Omniverse package installed, do you think this could cause conflicts?

I hope this can help you to improve this package :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions