kokopelli icon indicating copy to clipboard operation
kokopelli copied to clipboard

Crash when loading a .stl file

Open tytouf opened this issue 10 years ago • 1 comments

The application crashes when loading a .stl file.

I connected gdb and it looks like the mesh->tdata and mesh->vdata are not correctly allocated when loading the .stl file.

Changing line 24 in libfab/formats/stl.c: mesh_reserve_v(mesh, mesh->vcount_3); with mesh_reserve_v(mesh, mesh->tcount_3); prevent the crash but then it does not seem to work correctly as my object is not displayed.

tytouf avatar Jul 12 '14 21:07 tytouf

I pushed a fix for that.

Unfortunately even after applying the fix, the model is not correctly rendered in the glcanvas.

tytouf avatar Jul 13 '14 10:07 tytouf