-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
w3wp.exe process crashing if AppDomain recycles #218
Comments
I could not reproduce this with IIS Express using the provided sample project. libvips delays thread creation until it needs them, the first thread is only created when the first pixel is processed. Once it starts processing pixels, it sets up the threading system. As far as I know, recycling the AppDomain should be fine after that (see #164), but trying to use As a possible solution, you could try to init and shutdown libvips within ASP.NET's <%@ Application CodeFile="Global.asax.cs" Inherits="NetVipsCrash.MyApplication" Language="C#" %>
namespace NetVipsCrash
{
using System;
using System.Web;
using NetVips;
public partial class MyApplication : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
NetVips.Init();
}
void Application_End(object sender, EventArgs e)
{
NetVips.Shutdown();
}
}
} However, I'm not sure if this will work. |
@victor-mikhalev Were you able to make any progress with this? |
I have tried your workaround, but it does not help. |
Glad to hear you found a solution to this. I'll close. |
ASP.NET 4.8 application with Net-Vips cause application crash.
Steps to reproduce:
Here is sample project to reproduce the issue.
https://github.com/victor-mikhalev/NetVipsCrash
The text was updated successfully, but these errors were encountered: