dotnet / Comet

Comet is an MVU UIToolkit written in C#
MIT License
1.66k stars 117 forks source link

[Android] Exception trying to load big images #232

Open jsuarezruiz opened 2 years ago

jsuarezruiz commented 2 years ago

Using the same images from the sample created with Xamarin.Forms or .NET MAUI (where the images are working correctly), get a crash:

'Canvas: trying to draw too large(181500000bytes) bitmap.'

For example: https://github.com/jsuarezruiz/netmaui-travel-app-challenge/blob/main/src/Xamarin.Forms/TravelApp/TravelApp.Android/Resources/drawable/destination1.jpg

In Comet just reduced the image size to get it working.

Clancey commented 2 years ago

This sounds like a bug in Core. If controls fixed it we should move that fix to Core.