Bug 27004 - [iOS]MasterDetailPage ImageSource not displaying after setting the detail property again
Summary: [iOS]MasterDetailPage ImageSource not displaying after setting the detail pro...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Rui Marinho
URL:
Depends on:
Blocks:
 
Reported: 2015-02-12 13:23 UTC by Jon Douglas [MSFT]
Modified: 2015-07-20 11:52 UTC (History)
6 users (show)

Tags: ac ios functional imagesource
Is this bug a regression?: ---
Last known good build:


Attachments
Reproduction (5.97 MB, application/x-zip-compressed)
2015-02-12 13:23 UTC, Jon Douglas [MSFT]
Details
Working version with updated packages (213.38 KB, application/zip)
2015-07-20 11:52 UTC, Rui Marinho
Details


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 or GitHub 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:
Status:
RESOLVED FIXED

Description Jon Douglas [MSFT] 2015-02-12 13:23:36 UTC
Created attachment 9798 [details]
Reproduction

*Description

When a page that has an Image with a dynamic ImageSource set, it appears just fine initially, however once navigating off that page and reentering the same page with the respective ImageSource set, it no longer displays the Image even though the ImageSource is set. 

A reproduction of this in action is attached.

*Xamarin Forms 1.3.4.6328

*Version Information

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2013 06177-004-0446016-02481
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013 06177-004-0446016-02481
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0446016-02481
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0446016-02481
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0446016-02481
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0446016-02481
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0446016-02481
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.21010.0
For additional information, visit http://www.asp.net/

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

Microsoft Azure Mobile Services Tools 1.3
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools 2.4
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.4.20730.1601

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

Office Developer Tools for Visual Studio 2013 ENU 12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools 1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin 3.9.289.0 (39a70ae)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android 4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS 8.6.1.0 (3b3ef438017c7ecf486defa9e01567a5f2b3cb2a)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration 1.0
Automated migration for Xamarin iOS Classic projects to Unified












=== Xamarin Studio ===



Version 5.7 (build 661)

Installation UUID: e218622f-3111-423c-9e4d-db8d5c54a57d

Runtime:

Mono 3.12.0 ((detached/a813491)

GTK+ 2.24.23 (Raleigh theme)



Package version: 312000068



=== Apple Developer Tools ===



Xcode 6.1.1 (6611)

Build 6A2008a



=== Xamarin.iOS ===



Version: 8.6.0.51 (Enterprise Edition)

Hash: dfb682f

Branch:

Build date: 2015-01-08 13:39:32-0500



=== Xamarin.Android ===



Version: 4.20.0.28

Android SDK: Not found



=== Xamarin.Mac ===



Not Installed



=== Build Information ===



Release ID: 507000661

Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78

Build date: 2015-01-05 16:31:31-05

Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7



=== Operating System ===



Mac OS X 10.10.0
Comment 1 Sadik Ali 2015-02-13 00:49:04 UTC
I have checked this issue and able to reproduce this behavior.I checked this issue With Xamarin.Forms "1.3.4.6329-pre3".When I navigate off the page and again goes the main page and click on image there is no image display.

Screencast:http://www.screencast.com/t/2uNYHErxML
System Logs:https://gist.github.com/Arpit360/6a7cb27ab8cda5add803
XVS Logs:https://gist.github.com/Arpit360/b181a053d4f82cc96b2a

Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0446016-02758
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0446016-02758
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0446016-02758
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0446016-02758
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0446016-02758
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0446016-02758
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0446016-02758
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0446016-02758
Windows Phone SDK 8.0 - ENU

ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
For additional information, visit http://www.asp.net/

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

Microsoft Azure HDInsight HQL Service   1.0.0000.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   1.0.0000.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.5
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.5.21104.1601

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

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.9.318.0 (b2a3fd2)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.6.2.0 (09ae75f83eafce1bdc3fa067f281cbdf1ca7b893)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified




=== Xamarin Studio ===

Version 5.7.1 (build 17)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
Runtime:
 Mono 3.12.0 ((detached/de2f33f)
 GTK+ 2.24.23 (Raleigh theme)

 Package version: 312000076

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
 Supported Android versions:
  2.1   (API level 7)
  2.2   (API level 8)
  2.3   (API level 10)
  3.1   (API level 12)
  4.0.3 (API level 15)
  4.4   (API level 19)
  5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1 (6602)
Build 6A1052c

=== Xamarin.iOS ===

Version: 8.6.1.20 (Business Edition)
Hash: 3b3ef43
Branch: 
Build date: 2015-01-24 09:42:21-0500

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:43:29-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

=== Operating System ===

Mac OS X 10.10.0
Darwin mac360-xamarins-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Seth Rosetter 2015-03-03 13:56:19 UTC
Hi, 

This appears to be an issue with XLabs which we do not officially support. Please file the issue for investigation with them. https://github.com/XLabs/Xamarin-Forms-Labs/issues. Marking as invalid for our bug tracking purposes.

Thanks!
-Seth
Comment 3 Imad Alazani 2015-03-04 14:51:28 UTC
Hi Seth,

I don't think that the issue is with XLabs.

I think the issue has to do with Item.ImageSource being set from byte[]

In my application I have this:

avatar.Source = (imageStream.Length == 0) ? ImageSource.FromFile("default_avatar.png") :
ImageSource.FromStream(() => imageStream);

In case imageStream is not 0, but real image stream,  the Image object will show the image, and then upon navigating to diff. content page and back, it will now show Image. While if imageStream is 0, and local file is being read, it will show the image upon navigation away and back from that content page that holds the Image control
Comment 4 Seth Rosetter 2015-03-05 13:02:04 UTC
Imad, 

Thank you. I will reopen / reinvestigate the issue.
Comment 5 Rui Marinho 2015-07-20 11:47:42 UTC
I have tried with the latest versions of XLabs 2.0516.2 and Xamarin Forms 1.4.3 and it works ok in my end.

I m attaching the sample  with the update packages.

I select a image from the library, and toggle between page 1 and page 2 and it works.
Comment 6 Rui Marinho 2015-07-20 11:52:00 UTC
Created attachment 12114 [details]
Working version with updated packages