Skip to content

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

Open
@DanPatten

Description

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));

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions