Assimp import throws StackoverflowException can't be caught by try/catch in .NET env

Issue #2 resolved
Ethan created an issue

Using .NET dll (from NuGet), from time to time we are getting exception that can't be caught by try/catch. StackoverflowException is one example - https://msdn.microsoft.com/en-us/library/system.stackoverflowexception(v=vs.110).aspx You can download the mode from http://static.tf3dm.com/models/c3dc953mnm68-Colloseum-by-William.zip to repro the issue. We also found other uncaughtable exception.

Here is the details:

FatalExecutionEngineError occurred HResult=-2146233082 Message=Exception of type 'System.ExecutionEngineException' was thrown. InnerException:

http://static.tf3dm.com/models/1/b6193a6p5m2o-Glass_Sparkling_Water.rar

Can all these exceptions be handled by assimp code? In our continuous process, it would stop when this kind of exception triggered. Thanks. -Ethan

Comments (3)

  1. Nicholas Woodfield repo owner

    I can't reproduce the stack overflow, but both models fail to import (3ds and also obj) which causes an AssimpException to be thrown.

    So the import returns, but with a null scene pointer. The last native log message I see is this:

    "Error, T18440: bad allocation"

    If you haven't (I realize it's been a while), please report this to the native Assimp developers.

  2. Log in to comment