Open peterblazejewicz opened 10 months ago
Verified this on Visual Studio Enterprise 17.9.0 Preview 4(8.0.3). Project: GraphicsViewDemos.zip
iOS 17.2 and MacCatalyst: Throws exception: System.NullReferenceException.
Windows: Image does not render. Android: Works well.
Description
when using canvas from platform drawables, like in Maui 8.0
GraphicsViewDemos
, whenever ImagePain is used on iOS/Mac (works on Android implementation), platform throws:so here: https://github.com/dotnet/maui/blob/39440043ce9f69f0c8f275bc5a4dd083bdae1c7e/src/Graphics/src/Graphics/Platforms/MaciOS/PlatformCanvas.cs#L644
_fillImage
is already released and null.Steps to Reproduce
GraphicsViewDemos
Image paint demo
pageShould render downsized bot image (as on Android), instead it crashes (image is drawn, but app crashes due to null pointer)
Link to public reproduction project repository
https://github.com/dotnet/maui-samples/issues/336
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
Mac OS 14, iOS 15
Did you find any workaround?
no
Relevant log output