Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault option -v 1.0 #261

Closed
Boeneke opened this issue May 19, 2020 · 0 comments · Fixed by #267
Closed

Segmentation fault option -v 1.0 #261

Boeneke opened this issue May 19, 2020 · 0 comments · Fixed by #267

Comments

@Boeneke
Copy link

Boeneke commented May 19, 2020

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:

  • IfcConvert (IfcOpenShell IfcConvert 0.6.0b0 (OCC 7.3.0)) for converting .ifc to .xml and .ifc to .dae
  • COLLADA2GLTF (2.1.5) for converting .dae to .gltf with the option -v 1.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant