-
Notifications
You must be signed in to change notification settings - Fork 602
Open
Labels
Description
Description
On a Maui app, debugging in iOS, I am getting a TargetInvocationException when creating an SKBitmap. Below is the error:
Could not find `System.Formats.Nrbf` referenced by assembly `System.Private.Windows.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089`.
Unhandled managed exception: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
This project is in .NET 9.0. I did not notice the issue when using SkiaSharp for Blazor in .Net9.0.
Code
SKBitmap buffer = new SKBitmap(new SKImageInfo(2000,2000));
Expected Behavior
I am not sure if it is vaguely related to this issue:
dotnet/maui#27057
Actual Behavior
The app loads, but crashes on the first occurrence of new SKBitmap. This happened after upgrading from 2.88.9 to 3.116.1
Version of SkiaSharp
3.116.0 (Current)
Also tested the latest prerelease 3.118.2.3
Last Known Good Version of SkiaSharp
2.88.9 (Previous)
IDE / Editor
Visual Studio Code (macOS)
Platform / Operating System
iOS
Platform / Operating System Version
iOS and Mac
Devices
iPhone 14
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New