Skip to content
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

Image resizing is crashing our server about twice a week #62

Open
DanPatten opened this issue Jan 6, 2025 · 9 comments
Open

Image resizing is crashing our server about twice a week #62

DanPatten opened this issue Jan 6, 2025 · 9 comments

Comments

@DanPatten
Copy link

Hey we narrowed down crash dumps on our .net 4.8 app server running Imageflow 0.13.2.

The utility function is in a library using .net standard 2.0, and this is the input function

using (var b = new ImageJob())
{
    await b.BuildCommandString(
         new StreamSource(streamIn, false),
         new StreamDestination(streamOut, false),
         $"width={width}&height={height}&mode={fitMode}&ignore_icc_errors=true&bgcolor={bgcolor}")
         .Finish()
         .SetSecurityOptions(new SecurityOptions().SetMaxFrameSize(FrameSizeLimit))
         .InProcessAsync();
}

I'm getting an error at JobContext.cs

//Unhandled exception at 0x00007FF97035437D (ntdll.dll) in 1_20250106_121706_memory.hdmp: 0xC0000005: Access violation writing location 0x0000000000000008.

var ptr = NativeMethods.imageflow_context_send_json(Handle, new IntPtr(methodPtr), new IntPtr(jsonPtr), new UIntPtr((ulong)utf8Json.Length));
@lilith
Copy link
Member

lilith commented Jan 7, 2025 via email

@DanPatten
Copy link
Author

That is all the information that I have, the same image can be uploaded again and it works fine which is strange.

@PhilBrammer
Copy link

@DanPatten That behavior make it sound like the second time it works, is because of the crash and memory resetting for that buffer.

@lilith
Copy link
Member

lilith commented Jan 22, 2025 via email

@DanPatten
Copy link
Author

You said it's a .net 4.8 server but running imageflow server? I'm confused
since that isn't supported. Could you share the /imageflow.debug contents
with me at @.***?

We are migrating our application from net 48 to 6 and used to use imageresizer, since imageflow supports .net standard 2.0, it provides a path for us to migrate (why Microsoft released .net standard) and has worked great for the past 2 years. Where do I get that debug info at?

@lilith
Copy link
Member

lilith commented Jan 22, 2025 via email

@DanPatten
Copy link
Author

We are not using the Imageflow server, we have our own logic that simply uses Imageflow's utils as a library for converting images using the ImageJob shown above so we don't have any debug info on the browser.

@lilith
Copy link
Member

lilith commented Jan 22, 2025 via email

@lilith
Copy link
Member

lilith commented Jan 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants