-
Notifications
You must be signed in to change notification settings - Fork 251
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
Major error handling bugs #442
Comments
Thanks for this report. |
I work with forked version of OpenCOLLADA and can't contribute a patch since I can't test it with the official version. I can upload the fork itself on github if it will be of any interest when I've tested it. Here is what I'm changing from the official version:
|
if you forked from this repo, you should be able to create a branch matching the common ancestry and do the patch. you can merge the updated openCOLLADA changes too. |
There is a function called handleFWLError() which returns true if the parsing should stop (either because of the IErrorHandler or a critical error). On most places, it's used like this though:
success = handleFWLError ( )
I.e. it does exactly the opposite.
There are also palaces like this one where the result is not handled at all:
if ( positionInput == 0 )
handleFWLError ( SaxFWLError::ERROR_DATA_NOT_VALID, "No positions, can't import!", IError::SEVERITY_CRITICAL );
mPositionsOffset = positionInput->getOffset ();
The code directly crashes of course. Tested also with the Maya importer.
The text was updated successfully, but these errors were encountered: