I've seen a couple of threds on the OBJ loader regarding crashes and exceptions of various kinds. I had the same problem, and tracked it down to a sign issue in the MTL file reader.
The fix (well, it works for me) is to replace line 634 in COBJMeshFileLoader.cpp
with
Code: Select all
while (isspace((unsigned char)buf[++i])) ;
Apparently, when the buf[] is negative, the isspace function stops at an ASSERT somewhere, and the application crashes. Forcing it possitive seems to solve the problem. I guess that this error only shows up in certain cases, i.e. whenever the first character beyond the file buffer just happens to be 128+ (which may explain why this error hasn't been found in testing the loader).
I've used svn version 194 (but I haven't committed this, as I'm not sure if that's the right procedure, or indeed if I'm even allowed to do so).