Skip to content

Stackoverflow exception on MagickNET.Initialize() with 14.15.0 #2049

Description

@TomGullen

Magick.NET version

14.15.0

Environment (Operating system, version and so on)

ASP.net 4.8.1, Windows 11 Pro, AMD Ryzen 7800x3D, IIS10

Description

After upgradnig from 14.14.0 to 14.15.0, I was getting fatal crashes in IIS:

Faulting application name: w3wp.exe, version: 10.0.26100.1882, time stamp: 0xc6bd45bd Faulting module name: Magick.Native-Q8-x64.dll, version: 10.3.0.0, time stamp: 0x6a53bff5 Exception code: 0xc00000fd Fault offset: 0x0000000000219487 Faulting process id: 0x73EC Faulting application start time: 0x1DD138777A867BE Faulting application path: c:\windows\system32\inetsrv\w3wp.exe Faulting module path: C:\[redacted]\bin\Magick.Native-Q8-x64.dll Report Id: 6ac6045f-b6cf-42ce-8d35-4d1312297a9f Faulting package full name: Faulting package-relative application ID:

Downgrading to 14.14.0 fixes the issue.

When I build my project using 14.15.0 I can verify all the expected DLL's are included in the bin folder.

Steps to Reproduce

In Application_Start add the line:

MagickNET.Initialize();

This causes the crash. I've spent a long time on this issue, and can't find any other useful information. Without initialising, the crash still occurs when the MagickNET functions are first called elsewhere in the app (presumably becuase the initialize method is lazy).

Images

Screenshot 2026-07-14 130105.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions