Skip to content

Magick.NET 9.0.0 - The type initializer for 'NativeResourceLimits' threw an exception. #1121

Closed
@MattiaCamponesco

Description

@MattiaCamponesco

Description

Dear all,
I was testing the new release of Magick.Net and I found out an exception limitating the memory of the process.

Error:
The type initializer for 'NativeResourceLimits' threw an exception.

Stack Trace:
at ImageMagick.ResourceLimits.NativeResourceLimits.LimitMemory(Double percentage) at ImageMagick.ResourceLimits.LimitMemory(Percentage percentage) in /_/src/Magick.NET/ResourceLimits.cs:line 95 at Libraries.Managers.Graphics.ImageManager..ctor(Process process) at Libraries.Managers.Graphics.GraphicsManager.Elabora_SincronizzazioneGrafiche_GestisciGrafica(DataTosGraficheServices dataTosGraficheServices) at Libraries.Managers.Graphics.GraphicsManager.Elabora_SincronizzazioneGrafiche()

Inner Exception:
System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q8-x64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize() at ImageMagick.Environment.Initialize() in /_/src/Magick.NET/Helpers/Environment.cs:line 22 at ImageMagick.ResourceLimits.NativeResourceLimits..cctor() in /_/src/Magick.NET/Native/ResourceLimits.cs:line 137

Steps to Reproduce

Call the method ResourceLimits.LimitMemory(percentage)

image

System Configuration

  • Magick.NET version: Magick.NET.Core + Magick.NET-Q8-AnyCPU
  • Environment (Operating system, version and so on): Windows 10.0.17763
  • Additional information: .NET Framework 4.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions