Magick.NET icon indicating copy to clipboard operation
Magick.NET copied to clipboard

WinUI Arm64 Support - Currently causes app crash just by having nuget packages installed.

Open HEIC-to-JPEG-Dev opened this issue 3 years ago • 4 comments

Magick.NET version

11.1.2

Environment (Operating system, version and so on)

Windows 10 Arm64

Description

I have a WinUI 3.0 WASDK1.1 desktop app that works perfectly, but as soon as I add the following nuget packages, it crashes (when compiled to native arm64). It works for native x86 and native x64, and x86 emulated on arm64.

Packages:

  • Magick.NET.SystemWindowsMedia
  • Magick.NET-Q16-HDRI-AnyCPU

Steps to Reproduce

Create a WinUI 3 (WASDK 1.1) desktop app with publishing package Compile to arm64 Run before adding packages = works Run after adding packages = crashes

Packages:

  • Magick.NET.SystemWindowsMedia
  • Magick.NET-Q16-HDRI-AnyCPU

HEIC-to-JPEG-Dev avatar Jun 05 '22 12:06 HEIC-to-JPEG-Dev

Is it possible to create a small example project that can be used to reproduce this issue?

dlemstra avatar Jun 05 '22 12:06 dlemstra

So I created a new app to test. if you add the packages to the main app, it seems to work, but as soon as I move them to a class library, that's when it fails. Attached zip file of the project as it fails (only on arm64 native) MagickError.zip

HEIC-to-JPEG-Dev avatar Jun 05 '22 13:06 HEIC-to-JPEG-Dev

Thanks for sharing that project. I am having some issues to install Visual Studio on my arm64 machine that has limited disk space. The requirements that your project has cannot be installed and that is why I am unable to reproduce your issue. I tried installing Visual Studio in a different location but I cannot get that to work. It will probably take a while before I will be able to investigate this.

dlemstra avatar Jun 12 '22 12:06 dlemstra

I run visual studio on an x64 machine and then side load to the windows machine with remote debugging.

HEIC-to-JPEG-Dev avatar Jun 12 '22 15:06 HEIC-to-JPEG-Dev