Bug 35770 - [WinRT] Adding Page With A Disabled ListView to CarouselPage Causes Crash
Summary: [WinRT] Adding Page With A Disabled ListView to CarouselPage Causes Crash
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-10 21:00 UTC by Jimmy [MSFT]
Modified: 2017-06-22 02:21 UTC (History)
4 users (show)

Tags: CarouselPage ac
Is this bug a regression?: ---
Last known good build:


Attachments
repro solution (180.87 KB, application/x-zip-compressed)
2015-11-10 21:00 UTC, Jimmy [MSFT]
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 NOT_ON_ROADMAP

Description Jimmy [MSFT] 2015-11-10 21:00:02 UTC
Created attachment 13770 [details]
repro solution

### Overview
Dynamically adding a ContentPage with a disabled ListView to a CarouselPage will cause the app to crash on WinRT with the exception message:

> "No installed components were detected. Cannot resolve TargetName NormalRectangle."

I tested this with Forms 1.5.1 and 1.5.2-pre2.


### Steps to Reproduce
1. Run the WinRT project in the attached repro project
2. Press "Add Enabled ListView Page" and swipe to confirm it was added
3. Press "Add Disabled ListView Page"


### Actual Results
The app will crash when trying to add the page with the disabled ListView. This seems to only happen if the disabled ListView has its ItemSource set however. If you comment out the ItemSource declaration, the app will add the page without any issues.


### Expected Results
The app does not crash.


### Environment Info
Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA558
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA558
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA558
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA558
Windows Phone SDK 8.0 - ENU

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

ASP.NET and Web Tools   14.0.20626.0
ASP.NET and Web Tools

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

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

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

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

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

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps   14.0.23309.00 d14oob
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.

Xamarin   3.11.1589.0 (f119127)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.7.12 (53fce3730830417896a42f365a5ba35f1ee58d9d)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   9.1.0.0 (a49a79c0e30fc5f9acf323008a9e44be2f0c1bd2)
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.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 1 Jimmy [MSFT] 2016-10-31 20:31:07 UTC
Still reproducible on Forms 2.3.3-pre3. Also this issue does _not_ occur on UWP.
Comment 2 Rui Marinho 2017-06-19 15:21:20 UTC
Still on 2.3.4