KhronosGroup / COLLADA2GLTF

COLLADA to glTF converter
Other
532 stars 156 forks source link

Segmentation fault option -v 1.0 #261

Closed Boeneke closed 4 years ago

Boeneke commented 4 years ago

We use the IFC viewer AECgeeks / BIMsurfer2 to display IFC files uploaded by the user in a website project. Therefore, we have to convert these uploaded IFC files to gLTF files using the Collada .dae format. The adapted version of BIMsurfer2 actually only works with gLTF v 1.0.

Here are the steps to achieve this:

For example: ./IfcConvert IFC / AC20-FZK-Haus.ifc generated / DAE / AC20-FZK-Haus.dae

./collada2gltf/COLLADA2GLTF-bin -i generated / DAE / AC20-FZK-Haus.dae -o generated / GLTF / AC20-FZK-Haus.gltf -v 1.0

The conversion from .dae to .gltf -v 1.0 fails for most tested IFC files and is "segmentation error". The default without any option (v 2.0) converts and the .gltf file works fine (e.g. tested with https://sandbox.babylonjs.com/).

First we installed and used the binary version COLLADA2GLTF-v2.1.5-linux.zip (Ubuntu 16.04, Oracle VM VirtualBox). Today we have compiled COLLADA2GLTF from the source code on two servers: VM and root server (Ubuntu 16.04).

The VM version showed the Segfault again immediately, the root server version showed the error after two successful conversions.

Is this a problem of our used IFC files (test files) or a general issue converting to .gltf -v 1.0?

Thanks for help.

Find an example of our trials attached. ifc-files.zip