Bug 61181 - Live Player not showing images on Android device
Summary: Live Player not showing images on Android device
Alias: None
Product: Live Player
Classification: Xamarin
Component: Mobile App Android ()
Version: 1.4.X
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2018-01-25 18:40 UTC by Ivan Zhang
Modified: 2018-02-09 21:31 UTC (History)
3 users (show)

Tags: ivzhang@microsoft.com
Is this bug a regression?: ---
Last known good build:

The image not shown (used a background color to show where the image should be) (6.67 KB, image/png)
2018-01-25 18:40 UTC, Ivan Zhang
LiveView test that did not work (1.22 MB, application/x-zip-compressed)
2018-01-25 18:42 UTC, Ivan Zhang
Xamarin Logs generated during issue activity (112.47 KB, application/x-zip-compressed)
2018-01-29 21:40 UTC, John Tolle

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Ivan Zhang 2018-01-25 18:40:32 UTC
Created attachment 26120 [details]
The image not shown (used a background color to show where the image should be)

Using a Samsung S7 running Android 7.0, unable to see images when referenced locally. Using a basic Image UI and source.

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"

    <Image Source="icon.png" />


Live Player v1.4.134 (634) running on devices:
Physical Samsung S7 running Android 7.0

Microsoft Visual Studio Community 2017 
Version 15.5.3
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017   00369-60000-00001-AA046
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA046
Microsoft Visual C# 2017

Visual F# 4.1   00369-60000-00001-AA046
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.10.01106.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.31127.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

Azure App Service Tools v3.0.0   15.0.31106.0
Azure App Service Tools v3.0.0

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GorillaPlayerPackage Extension   1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   4.8.4-pre (3fe64e3)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61710.120
Microsoft SQL Server Data Tools

TypeScript Tools   15.5.11025.1
TypeScript Tools for Microsoft Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Universal Windows Apps   15.0.27130.2020
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin (7f9ec2a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin.Android SDK (HEAD/ef47226b7)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (6857dfc)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Ivan Zhang 2018-01-25 18:42:12 UTC
Created attachment 26121 [details]
LiveView test that did not work
Comment 2 James Montemagno [MSFT] 2018-01-26 23:26:21 UTC
I was able to pull down your app sample and it showed up right away. Can you just close the app and re-open it.

Another thing that is handy is sending me the logs from VS right after you see the error.

Go to Help -> Xamarin -> Logs
Comment 3 John Tolle 2018-01-29 21:40:23 UTC
Created attachment 26137 [details]
Xamarin Logs generated during issue activity

Good afternoon, James and Ivan.  I'm the poor schmuck who is living without images on Live Player (well, ignoring my "workaround" involving using IIS to serve up the images in my Drawable folder via HTTP).  Here's my logs.  Although I was unable to find anything related to image loading issues, hopfully you'll find something interesting in them.  I'm up for a screen sharing session just about any time, although this week will be a bit of a mess, so scheduling may be more challenging.
Comment 4 James Montemagno [MSFT] 2018-02-09 20:12:48 UTC

Thanks for the follow up with the logs and they look correct. I would suggest trying the latest versions, as I tested again and your sample works perfect and your logs match here.

What is the workaround that you are desrcibing?
Comment 5 John Tolle 2018-02-09 21:31:33 UTC
Each time you release a new version via the Hockey App, I download it and test within a day or so and still have the same issue.

The workaround is to use full URLs which download the images from my locally hosted web server which has a virtual directory pointed at the drawables folder, i.e. "http://localhost/x/someimage.png."

I frequently use Gorilla Player instead of Live Player now, not only because it does fine with images, but it renders instantly upon save (rather than the "realtime updates" that live player, unfortunately, does even when I pause for thought in the middle of typing in a new XAML element, which causes errors and then the textual cursor loses focus on the page I'm working on.)  Oh, and the ability for it to render custom controls is kind of huge, too.

But I still really like the capabilities of Live Player and the fact that it's not just a static renderer like Gorilla but an actual interactive player.  That makes it fantastic for testing interactivity without having to wait for a full build each time.

I'm up for a live screen sharing session starting the week after next (I'll be out of town next week) or if you want any other kind of logging, etc., just let me know.