dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

Android: Specific Avif image fails to load #23316

Open armanimichael opened 2 months ago

armanimichael commented 2 months ago

Description

Hello, I'm having a peculiar issue where a very specific image is not loading in on Android.

By digging into this a bit, it looks like Glide is failing to load the image. Yet, there's nothing suggesting why this is happening.

From the sample project, you'll see how there's simply a blank space where the image is supposed to be: Screenshot 2024-06-27 at 14 37 01

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/armanimichael/maui-image-sample

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

RoiChen001 commented 2 months ago

I can repro this issue at Android platform on the latest 17.11.0 Preview 2.1(8.0.61).

albyrock87 commented 1 month ago

I've opened an issue on the appropriate repository to add the NuGet package for AVIF support. When available also remember about: https://github.com/bumptech/glide/issues/5140#issuecomment-1550067008

moljac commented 1 month ago

@armanimichael @albyrock87

Does AVIF work on other platofrms?

albyrock87 commented 1 month ago

@moljac on iOS it does work, I have to information regarding other platforms

moljac commented 1 month ago

@armanimichael @albyrock87

Are you sure that just by adding new package this will be resolved?

albyrock87 commented 1 month ago

@moljac unfortunately I couldn't try this due to the missing NuGet package.

I'll try to see if I can create a java app in order to verify this.

My assumption is simply based on Glide's documentation. To fix this issue we need the NuGet and then we have to modify the Gradle configuration so that Glide "sees" that plugin. Automatic plugin loading is also explained in Glide docs.

moljac commented 1 month ago

@moljac unfortunately I couldn't try this due to the missing NuGet package.

No. No. There is no nuget. Sorry for confusion

I'll try to see if I can create a java app in order to verify this.

Please do not waste your time. I created new bindings, but dependecy package is using some crazy versioning format which is not SemVer 2 nor Nuget legacy, so I need to fix tooling 1st.

My assumption is simply based on Glide's documentation. To fix this issue we need the NuGet and then we have to modify the Gradle configuration so that Glide "sees" that plugin.

This "seeing" part worries me. There is no Gradle when using nuget package. Hopefully we don't have to add too much. We'll see after bindings are ready.

Automatic plugin loading is also explained in Glide docs.

Plugin in Maven usually indicates that MSBuild tasks (tricks and hacks) will be needed.