google / google/draco

Error on decompression: Invalid index into function table

Open
#662 3 comments 0 reactions 0 assignees View on GitHub
Waiting Response
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:
![b972c5574e704c850c091700932893f370154bd6_2_1035x202](https://user-images.githubusercontent.com/29388690/101708547-8ea28400-3ae1-11eb-8ea3-cba07b175b47.png)

Any help or suggestion would be appreciated.
Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.