The error doesn't occur when I use my own n-gon parsing code, though I still don't get faces. (turns out it was because my code has error checking to prevent creation of <3 point faces)