Uncaught exception when trying to download results
Uncaught exception when trying to download results of compression for specific model.
Reproduction Steps
- Download Bone.glb.zip
- Drop it on https://github.khronos.org/glTF-Compressor-Release/
- Select Compressor > Texture Compressor
- Select All, KTX2, 2x downscale, ETC1S
- Press "Compress"
- So far so good, we have a size reduction!
- Now, press "Export as glTF"
- Note exception:
I see this error "all the time" too. You get a similar thing if your textures are not square (which is something I don't have control over). Any chance you could make it fail gracefully? At the moment if any of these happen you are back to square one having to reload and do whatever you have spent ages setting up all over again. It's really frustrating as I so want to use this regularly.
I'm currently seeing this repeatedly with an uploaded model as well. After using both the Geometry and Texture Compressor settings, I get the same error displayed in the initial post. I've tried a few times, hoping that some combination of settings would allow a successful download, with no luck.
Uploading the file to glTF Validator gives a few warnings, including "UNSUPPORTED_EXTENSION" for KHR_draco_mesh_compression, "UNSUPPORTED_EXTENSION" for KHR_texture_basisu, and "VALUE_NOT_IN_LIST" with the message "Invalid value 'image/ktx2'. Valid values are ('image/jpeg', 'image/png', 'image/webp')", among others about missing tangent space information.
I found another model that was able to be compressed and downloaded successfully, and it shared those tangent space warnings, which proved to be non-fatal.
This error also occurs with glTF Sample Asset models, like https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/ChronographWatch/glTF which has all high-quality PNG source files, but I'm guessing the error occurs because some are non-square (albeit pow2)?