Closed mikeskydev closed 2 years ago
How did you install glTFast in that project? If it's via GIT, then make sure GIT LFS is enabled and pulled.
Through the package manager with OpenUPM and Git LFS is enabled.
For a bit more information, we have another project that uses the same pipeline conditions, except the models are loaded at runtime from a CDN, and it appears to work fine.
I'd check if libdracodec_unity.so
is at the path specified (with correct size/content) and that there are no permission issues with it.
Let me know if that's the case. Otherwise I have no idea, but I maybe can forward the issue to some CI pro.
The actual error might be this one though:
2022-01-20T09:26:07.1074568Z NullReferenceException: Object reference not set to an instance of an object
2022-01-20T09:26:07.1075343Z at GLTFast.Editor.GltfImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) [0x001c4] in /github/workspace/AR Tool/Library/PackageCache/com.atteneder.gltfast@4.4.10/Editor/Scripts/GltfImporter.cs:123
2022-01-20T09:26:07.1076403Z at UnityEditor.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.AssetImporters.AssetImportContext ctx) [0x00001] in /home/bokken/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:22
Have you tried importing the same file in the Editor (not at runtime)? Can you provide said file?
edit: Probably just missing a null check at that line
I'd check if
libdracodec_unity.so
is at the path specified (with correct size/content) and that there are no permission issues with it.
I can check this once i've set up a ubuntu VM to test the runner, it might take a bit longer though!
Have you tried importing the same file in the Editor (not at runtime)? Can you provide said file?
Yes it works fine with an editor import. I can't provide the files but I can probably make an equivalent sample, we have 5 models and they're all having the same import issue.
After looking at this further it appears to be an issue with glTFast import, as we encountered it on a non-draco asset. Will file a bug in that repository instead. Thanks!
Hi, I'm using glTFast and DracoUnity in a GitHub Actions pipeline, with draco compressed GLBs. The files are imported into the project instead of at runtime. This runs Unity on a headless Ubuntu instance. It fails to import the files, and as such the our app doesn't display the geometry for these models.
Building from Unity manually works fine on macOS and Windows.
Unity: 2020.3.14f1 glTFast: 4.4.10 DracoUnity: 3.3.2
Relevant error log: