-
Notifications
You must be signed in to change notification settings - Fork 83
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
AssimpContext.ExportFile broken #62
Comments
Hi. Scene scene = new Scene();
scene.RootNode = new Node("Root");
using var ctx = new AssimpContext();
ctx.ExportFile(scene, fileName, "obj"); I have found test case that it creats scene from scratch. assimp-net/AssimpNet.Test/AssimpContextTestFixture.cs Lines 75 to 101 in ed18dda
|
Thank you @kenjiuno , that was definitively the case. Although it would be very good if this library was throwing a proper exception message for it (eg. |
Access violation could be the native lib just assumes it exists. More validation and error messages are always welcomed. This repo isn't the official assimpnet one, and is very old compared to the last few nuget releases. I'm on bit bucket. Several times now I've requested transfer of ownership or admin of this github repo without any action. Feel free to do a PR for extra validation here https://bitbucket.org/Starnick/assimpnet/src |
Using ExportFile method always results to a crash, regardless the format I am exporting to:
using var ctx = new AssimpContext(); ctx.ExportFile(new Scene(), fileName, "obj");
Exception:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
I am using .Net Core 3.1 and AssimpNet 4.1.0.
The text was updated successfully, but these errors were encountered: