-
Notifications
You must be signed in to change notification settings - Fork 54
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 unsupported file #79
Comments
Please submit the error trace and the model file which causes the problem. Thanks. |
This is the model: https://sketchfab.com/models/d6c802a74a174c8c805deb20186d1877
|
I checked and the FBX file is imported fine both in iOS and macOS sample apps. Please ensure that you have installed AssimpKit correctly and if you are using it in your app, please refer to the instructions/tutorial. For installation, you can also refer to: #77. Sorry, but |
Crashing should not be considered a correct behaviour in any case. One could make an app in which users can select their own model files. In that case, a user can select an unsupported file (just like I did) and the app would crash and apps shouldn't crash. AssimpKit should error instead of crashing so app developers like me can display helpful messages to their users. |
@AlicanC Please read the manual before offering advice as to how things should be done. There is a specific method |
I've had |
Okay, just found and used the |
On the following line
AssimpKit/AssimpKit/Code/Model/AssimpImporter.m
Line 131 in 8d5997c
even if
aiScene
is notNULL
,aiScene->mRootNode
can be, and makes[AssimpImporter makeSCNNodeFromAssimpNode:inScene:atPath:]
crash.I am not sure if
aiGetErrorString()
has anything when this happens, but if it does, printing it can also be useful.The text was updated successfully, but these errors were encountered: