Error on decompression: Invalid index into function table
- Dominant language
- C++
- Stars
- 7.5k
- Forks
- 1.1k
- Avg merge
- 47m
- Merged PRs (30d)
- 1
Description
Hi,
I have been trying to track down a problem when decompressing a model in BabylonJS and they have suggested it might be an issue for the Draco team. I am not sure where the problem rests - Draco, Babylon or Blender. The error only occurs on a mobile or a Quest (both android devices), but it works fine on a PC - the phone I tested on was a Samsung Galaxy S7. I **think** it is related to animations/skinning/morphing as two of my models that do work don't have animations while the problematic one does.
The model started as a highly detailed SolidWorks model then imported into Blender 2.9 and simplified as much as possible without loosing too much detail, an armature added with a simple animation and exported as a GLB file with draco compression. While testing I have created two versions of the file with the only difference being the export settings in Blender - both files pass validation tests but one of them fails to decompress (on a mobile device) whereas the other works.
This [model](https://ozgrav.darkverse.com.au/webXR/models/torpedo.glb) **fails** - exported with compression level 6 and animations and shape keys and skinning.
This [model](https://ozgrav.darkverse.com.au/webXR/models/torpedo2.glb) **works** - exported with compression level 3 and animations but **without** shape keys and skinning.
There is a discussion on Babylon forum here https://forum.babylonjs.com/t/glb-import-error-only-on-quest-or-phone/15827
there are minimal working examples here:
[Model 1 fails](https://playground.babylonjs.com/#J61GAR)
[Model 2 works](https://playground.babylonjs.com/#J61GAR#1)
The error message is:

Any help or suggestion would be appreciated.
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.