Xamarin.forms: [Bug] Image Control doesn't work

Created on 9 Mar 2020  路  25Comments  路  Source: xamarin/Xamarin.Forms

Description

Steps to Reproduce

  1. archive https://github.com/yinyue200/xamarinformstest in release mode
  2. install the apk
  3. go to about page

Expected Behavior

show the image

Actual Behavior

can't show the image

Basic Information

  • Version with issue:
  • Last known good version:4.4
  • IDE:VS2019
  • Platform Target Frameworks:

    • iOS:

    • Android: 10

    • UWP:

  • Android Support Library Version: AndroidX
  • Nuget Packages:
  • Affected Devices:

Screenshots


Screenshot_2020-03-09-22-37-01-264_com companynam

Reproduction Link

https://github.com/yinyue200/xamarinformstest
https://github.com/yinyue200/xamarinformstest/releases/tag/1.0

Workaround

use FFImageLoading

4.5.0 external-components regression high impact Android bug

Most helpful comment

Also I don't want all the DLLs of the app to be seen in the /lib folder of the apk

All 25 comments

same here , toolbar icons not showing after archiving in release mode

+1, I lost images on the Android platform for my Forms project suddenly after upgraded the Xamarin.Forms package.

does disabling the linker fixes it for you ?

@StephaneDelcroix It failed to archive if linker set to None.
devenv_2020-03-12_22-18-35

does disabling the linker fixes it for you ?

No. The issue still persists

Same Error when update to lastest XF

same here , toolbar icons and image not showing after archiving in release mode

Any news for this problem? It is a blocker for my project and I can't release a new version.

Disabling bundle assemblies into native code option resolves my problem.

I have the same problem and I can confirm that disabling "bundle assemblies into native code" fixes the problem. However, this is not an option for me for the Release build. The bug is maybe related to #1595

We are running into the same problem. Disabling "bundle assemblies into native code" fixes it, but we don't want to do this.

Here the same problem and indeed disabling "bundle assemblies into native code" fixes the problem. But this is not an option. Any update please?

With newly released version 16.5.2, the problem still continues. It starts with 16.5.0 and this is the second update ignoring this problem :(

It looks like this might be related to https://github.com/xamarin/AndroidX/issues/64#issuecomment-606645412. @mattleibow Can you confirm, please? Thanks!!

@hig-dev mentioned:

[disabling "bundle assemblies into native code"] is not an option for me for the Release build

Would you mind elaborating on why setting $(BundleAssemblies)=False isn't an option? We are strongly considering removing support for $(BundleAssemblies) in .NET 5, and would like to better understand why people are using it. (It's not a very good obfuscation technology, and for it not being very good it increases on-device memory usage and slows down app startup times.)

Hello, I guess the reason why we are using these kind of bad obfuscation tecniques is that the only other option (dotfuscator) has a starting price of around 4k$ a year so we do what we can with what we have. Any suggestion of better tecnologies for an affordable / free price with azure CI pipelines integrations on microsoft hosted environments?

Anyway this is a bad regression.

We would like to better understand _why_ people are using it.

It's decreasing size of apk a lot.

Also I don't want all the DLLs of the app to be seen in the /lib folder of the apk

The same problem is here. It occured when I updated Xamarin.Forms from nuget.

Current Xamarin.Forms version is v4.6.0.726. It's definetely related to new versions (I think it began with v4.5). There was no problem while using an old version (cant remember old version number :/)

What I tested;
When "target framework is 10" and "bundle assemblies... = true" => problem
When "target framework is 10" and "bundle assemblies... = false" => not problem

When "target framework is 9" and "bundle assembliies... = true" => not problem
When "target framework is 9" and "bundle assemblies... = false" => not problem

An update: There is no problem with Xamarin.Forms v4.4.0.991864 (from NuGet)

"Target framework is 10" and "bundle assemblies... = true" = not problem at all.

It's been more 2 months now. This bug cannot be solved???

This is clearly a regression, so it should be simple enough for the xamarin team to fix it.
But sadly they don't seem to care at all about it. And it gives more and more the feeling that they don't care about their own users.

Anyway, it's not even clear to me if this is a Xamarin.Forms or a Xamarin.Android regression ?
And starting from which version ?

I am facing the same problem with the latest version of Xamarin.Forms (4.6.0.800) and targetSdkVersion="29" (Android 10 - Queen Cake): if "Bundle assemblies into native code" is enabled, the Image won't show.

Also there isn't any fix for this in

4.7.0.773-pre1

4.7.0.813-pre2

Pre Release versions. What a regression is it that can not be fixed for more that 2 months.

Closing in favor of https://github.com/xamarin/AndroidX/pull/106 as this is not a Forms issue

Was this page helpful?
0 / 5 - 0 ratings