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 · 1 comment
Open

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

DanPatten opened this issue Jan 6, 2025 · 1 comment

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

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

2 participants