Draco compressed glTF import fails on headless pipeline
See original GitHub issueHi, 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:
2022-01-20T09:26:06.1421114Z Start importing Assets/Products/SampleModel.glb using Guid(8857eb8bb32258f4abd2736284ed2ef2) Importer(-1,00000000000000000000000000000000) Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:06.1421980Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0237254Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0239946Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0553130Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0553811Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0582498Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0583150Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0589177Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0589918Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0624786Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0625659Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0897638Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0898304Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0952072Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
2022-01-20T09:26:07.0954980Z Fallback handler could not load library /opt/unity/Editor/Data/Mono/lib/libPackages/com.atteneder.draco/Runtime/Plugins/x86_64/libdracodec_unity.so
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
2022-01-20T09:26:07.1076995Z
2022-01-20T09:26:07.1077367Z (Filename: Library/PackageCache/com.atteneder.gltfast@4.4.10/Editor/Scripts/GltfImporter.cs Line: 123)
2022-01-20T09:26:07.1077652Z
2022-01-20T09:26:07.1085813Z Asset import failed, "Assets/Products/SampleModel.glb" > NullReferenceException: Object reference not set to an instance of an object
2022-01-20T09:26:07.1086596Z GLTFast.Editor.GltfImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) (at Library/PackageCache/com.atteneder.gltfast@4.4.10/Editor/Scripts/GltfImporter.cs:123)
2022-01-20T09:26:07.1087598Z UnityEditor.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.AssetImporters.AssetImportContext ctx) (at /home/bokken/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:22)
2022-01-20T09:26:07.1088157Z
2022-01-20T09:26:07.1106684Z -> (artifact id: 'f2e51d33102ef21f38a5a10f58986777') in 1.123872 seconds
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Gltf-pipeline draco compression not working! - Questions
The Draco set up is working now, but I noticed that I can no longer compress the compressed files from Blender, it seems...
Read more >glTF roadmap
Library for compressing and decompressing 3D geometric meshes and point clouds. - Draco designed and built for compression efficiency and speed - great...
Read more >Unable to import meshes, require extension ...
Hi! I am trying to load a Draco-compressed glb file (I used gltf-pipeline to convert it from GLTF to dracoGLTF to glb).
Read more >Update to Web3D
Library for compressing and decompressing 3D geometric meshes and point clouds. - Draco designed and built for compression efficiency and speed - great...
Read more >Untitled
Define a change in a medical problem as dramatic, Caiques and conure! ... Gta san andreas compressed file download, Heneolgy of the sirname...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can check this once i’ve set up a ubuntu VM to test the runner, it might take a bit longer though!
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!