ImageSource FromFile Android internal bug? #8809
Labels
area-controls-image
Image control
fixed-in-7.0.59
Look for this fix in 7.0.59!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
high
It doesn't work at all, crashes or has a big impact.
platform/android 🤖
t/bug
Something isn't working
Milestone
Description
Sorry I don't have many details, but the implementation of ImageSource.FromFile (which uses a FileImageSource) seems to have bug in the implementation which causes issues on Android.
For example when I use a Image which is bound to an ImageSource which was loaded with ImageSource.FromFile and then change tab a few time or scroll down / up it will suddenly throw a exception Canvas: trying to use a recycled bitmap android.
Doing the same thing but loading the file stream manually with ImageSource.FromStream works and doesn't cause any of these issues.
Steps to Reproduce
1, Load image file with ImageSource.FromFile
2, Bind the ImageSource to an Image inside a Tab
3. Change the Tab a few times until Android (randomly?) throws a exception Canvas: trying to use a recycled bitmap android
Version with bug
6.0.408 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
Use ImageSource.FromStream and manually load the file stream instead of using ImageSource.FromFile
Relevant log output
No response
The text was updated successfully, but these errors were encountered: