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

Crash when loading a .stl file #16

Open
tytouf opened this issue Jul 12, 2014 · 1 comment
Open

Crash when loading a .stl file #16

tytouf opened this issue Jul 12, 2014 · 1 comment

Comments

@tytouf
Copy link
Collaborator

tytouf commented Jul 12, 2014

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
Copy link
Collaborator Author

tytouf commented Jul 13, 2014

I pushed a fix for that.

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

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

No branches or pull requests

1 participant