Post

How to fix .dae files when importing mixamo animated models with assimp on Linux

The problem

You work for some hours with this notoriously buggy tutorial from LearnOpenGL and you encounter this magic bug: Alt text. You might need to use the callstack to find that line, or it might look like it is triggering from the line you ask assimp to parse the file: Alt text

The fix

You open the .dae file to inspect it for the tag you encountered. I am going to spoil it for you and tell you that there are exactly three tags that are self closing: comments, title and revision. Alt text

Why does it matter that they are self-enclosing?

Well, those three are the only self-enclosing in the whole file and you get an error from one of them. After you connect the dots and delete the tags everything should work properly. Alt text

Conclusion

Yes, sometimes you make some horrible bugs in your code, but that’s fine, because it is human. Even the biggest model parsing library has bugs!

This post is licensed under CC BY 4.0 by the author.