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

Android export failed because of corrupt files #7

Open
mgschwan opened this issue Jul 18, 2024 · 13 comments
Open

Android export failed because of corrupt files #7

mgschwan opened this issue Jul 18, 2024 · 13 comments

Comments

@mgschwan
Copy link

mgschwan commented Jul 18, 2024

The latest version 2.4.1 has two anim files that contain a pointer to the git-lfs location instead of the actual file content. That causes the Android export to fail because the file is corrupt from Unity's point of view.

The two offending files are

./Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/RightHandGrab.anim
./Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim

They contain the git-lfs info

version https://git-lfs.github.com/spec/v1
oid sha256:320bd9c9547f0f8d2cb494c8d4b6532a88ff2713cfc1a0f93a4c0532c23ff7d0
size 149832

@tony-phlin
Copy link
Contributor

Hi Michael,

We just realized that our Github LFS service was being terminated few hours ago which seem the timing you’re downloading so some files were broken.

The LFS bandwidth and service is resumed so please simply download again and it should be workable (we just verified)

Thanks for the notice and let us know if the situation is recovered.

@kaimikael
Copy link

The files as stored in Github are correct, but https://github.com/ViveSoftware/VIVE-OpenXR/tree/master/Installer/ViveOpenXRInstaller.unitypackage still contains the corrupt files.

@grobm
Copy link

grobm commented Nov 27, 2024

Any chance you guys will update this? Or could you update the Registry tool on Unity Store. This is ridiculously frustrating.

@tony-phlin
Copy link
Contributor

Hi Sir,

Thanks for the feedbacks, may we know which corrupt files you're mentioned here?
We do several check with below info.

Environment:

  • Unity version:2021.3.9f1
  • OpenXR Plugin (com.unity.xr.openxr) version: 1.4.2
  • Input System (com.unity.inputsystem) version: 1.4.3
  • Device ROM (if used): n/a
  • VIVE Plugin version: 2.4.2

Test:

  • Reproduce steps:
  1. Navigate to https://github.com/ViveSoftware/VIVE-OpenXR-Unity/blob/master/Installer/ViveOpenXRInstaller.unitypackage and click the “Download raw file” button.
  2. Navigate to Unity menu Assets > Import Package > Custom Package and import the downloaded “ViveOpenXRInstaller.unitypackage” file.
  3. Navigate to Unity menu VIVE > OpenXR Installer > Install or Update latest version.
  4. After VIVE Plugin installed, checks the files:
    a. Packages > VIVE OpenXR Plugin > Runtime > Toolkits > RealisticHandInteraction(experimental) > Resources > Animations > LeftHandGrab.anim
    b. Packages > VIVE OpenXR Plugin > Runtime > Toolkits > RealisticHandInteraction(experimental) > Resources > Animations > RightHandGrab.anim
  • Result: PASSED, files are not corrupted.

In addition, we will have upcoming release of new version of 2.5.0 to enable more extension support shortly.
Will keep you posted, thanks.

@kaimikael
Copy link

kaimikael commented Nov 28, 2024

That’s strange. I ran the same sequence. I get the files installed as Library/PackageCache/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim
with the contents

version https://git-lfs.github.com/spec/v1
oid sha256:a783c64d9ddd7f983040ed00800bdf42cd9c233f8d1955be98f8194c662f6d97
size 150014

RightHandGrab.anim with the contents

version https://git-lfs.github.com/spec/v1
oid sha256:320bd9c9547f0f8d2cb494c8d4b6532a88ff2713cfc1a0f93a4c0532c23ff7d0
size 149832

Library/PackageCache/com.htc.upm.vive.openxr/Runtime/Android/openxr_loader.aar
contains

version https://git-lfs.github.com/spec/v1
oid sha256:658d03cfd36e12406d704e8ca5ceb3399932dca855767d068672a2d07f6a1370
size 13024021

I am testing with Unity 6000.0.23f1 under macOS Sequoia 15.1.

@tony-phlin
Copy link
Contributor

We use Unity: 6000.0.25f1 and follow the way you mentioned to import package but still no error log
The sizes of three files are same as yours and it's workable.
Do you see any error logs to provide?
The rest of difference that we use Windows to test, could you have opportunity to switch to try?
Not sure if it's caused on MacOS, thanks.

@kaimikael
Copy link

I get the same result as on macOS when trying on Windows 11. Note however, for me the files end up in Library/PackageCache, rather than Packages/ as in your example. Why would that be?
I can’t find anything obvious in Event Viewer on Windows, let me know if I should check somewhere elsewhere. I attach the log file from the macOS Unity, I see that LeftHandGrab.Anim and RightHandGrab.anim flag for errors on their first reading, but it seems the process manages to read them on a renewed attempt. The openxr_loader.aar I don’t see mentioned at all in the log.

I attach the package manifest as well.

Editor.log
manifest.json

@tony-phlin
Copy link
Contributor

Hi kaimikael

Thanks for providing related info. We have compared the situation in our Editor.log on both sides when loading the package.

The following is the log when we load the two anim files:
Start importing Packages/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/RightHandGrab.anim using Guid(a10ddbfcbce64f84787e026f4fc003a4) (NativeFormatImporter) -> (artifact id: '6dbca18c5668300497f1ca8942a00edc') in 0.0053611 seconds
Start importing Packages/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim using Guid(44fadaef2720de846af62a7bbb2ec370) (NativeFormatImporter) -> (artifact id: 'd7169c98a760b5df802135ef7c767a60') in 0.005138 seconds

The Editor.log you provided loads the logs of these two anim files:
Start importing Packages/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/RightHandGrab.anim using Guid(a10ddbfcbce64f84787e026f4fc003a4) (NativeFormatImporter)Failed to load '/private/tmp/TestVive/Library/PackageCache/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/RightHandGrab.anim'. File may be corrupted or was serialized with a newer version of Unity.
-> (artifact id: 'adfbacabf3a68c4b5fe3742c6f38e528') in 0.60465968 seconds
Start importing Packages/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim using Guid(44fadaef2720de846af62a7bbb2ec370) (NativeFormatImporter)Failed to load '/private/tmp/TestVive/Library/PackageCache/com.htc.upm.vive.openxr/Runtime/Toolkits/RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim'. File may be corrupted or was serialized with a newer version of Unity.
-> (artifact id: 'f81ebe1cd3ca8f5293599a6fcfeccf98') in 0.00998157 seconds

We noticed that during the process, the system seems to reference a folder path that doesn't exist in the project: /private/tmp/TestVive/.
I think this may be a reason for file corrupted. Do you happen to recall any details or have any impressions about this path?

In addition, the two paths Library/PackageCache or Packages/ may only be different in definition.

  1. Library/PackageCache: It is an absolute path. You can check in the project that the SDK is installed here.
  2. Packages/: is the path in Unity Editor, you can see project>Packages in the Unity window

@kaimikael
Copy link

/private/tmp/TestVive/ is the project root folder. I tested putting the root in my ~/Documents/ folder instead, this made no difference—I get the same error when attempting to read {Left,Right}HandGrab.anim.

@kaimikael
Copy link

I’m thinking. Could it be that I am somehow not downloading the correct file from GitHub? The version of https://github.com/ViveSoftware/VIVE-OpenXR-Unity/blob/master/Installer/ViveOpenXRInstaller.unitypackage that I see is created on 2023-09-14 and is 1976 bytes in size. Does that match the file you are downloading?

@tony-phlin
Copy link
Contributor

Yes, same here.
Since we're going to update new release soon before the weekend, maybe you can have a try based on the newer version to see if it's workable on your side. Thanks.

@kaimikael
Copy link

Yes. So what file should I download?

@WadimBrakowski
Copy link

Hello,
I receive the same error again with the package version 2.5.0.
I already tried to remove the package and delete the Libary folder in my Unity project.
Maybe there is again a issue with the LFS service.

Thanks.

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

5 participants