Bug 28821 - Application crashes when ContentPage in TabbedPage has its IsVisible property set to false.
Summary: Application crashes when ContentPage in TabbedPage has its IsVisible property...
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Seth Rosetter
URL:
Depends on:
Blocks:
 
Reported: 2015-04-06 17:04 UTC by Ed
Modified: 2015-06-18 07:24 UTC (History)
8 users (show)

Tags: all crash xaml AC
Is this bug a regression?: ---
Last known good build:


Attachments
Demo project (174.57 KB, application/zip)
2015-04-06 17:04 UTC, Ed
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:
VERIFIED FIXED

Description Ed 2015-04-06 17:04:52 UTC
Created attachment 10644 [details]
Demo project

Application crashes when ContentPage in TabbedPage has its IsVisible property set to false with exception: "Unable to cast object of type 'Xamarin.Forms.ContentPage' to type 'Xamarin.Forms.View'."

See attached project.
Comment 1 Sunil Kumar 2015-04-29 11:16:06 UTC
I have tried to reproduce this issue and getting the same exception reported in bug description. Application crashes when ContentPage in TabbedPage has its IsVisible property set to false with exception: "Unable to cast object of type
'Xamarin.Forms.ContentPage' to type 'Xamarin.Forms.View'." To reproduce this issue I downloaded the attached sample and run it.

Screencast: http://www.screencast.com/t/he7xB5IR3s
Exception: https://gist.github.com/sunil360/515b0e7b77b81f4c479c
IDE log: https://gist.github.com/sunil360/3a78b2520d303afa0c12

Environment info:
=== Xamarin Studio ===
XF 1.4.2.6355

Version 5.9 (build 436)
Installation UUID: 561c7a69-0a91-4bae-ad7c-f0c79d594337
Runtime:
	Mono 4.0.1 ((detached/373d684)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000009

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: 8.10.0.272 (Enterprise Edition)
Hash: db1ccb6
Branch: master
Build date: 2015-04-28 22:39:42-0400

=== Xamarin.Android ===

Version: 5.1.0.115 (Enterprise Edition)
Android SDK: /Users/tajinder/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.0.0.269 (Enterprise Edition)

=== Build Information ===

Release ID: 509000436
Git revision: 7e8ba4cbccf7b188ce5e80a90fdc4acdedb5a83f
Build date: 2015-04-23 13:19:57-04
Xamarin addins: 21fd95f743742c5237e22023996c2800ce3f8db3

=== Operating System ===

Mac OS X 10.10.0
Darwin Tajinders-iMac.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-05-21 20:03:28 UTC
This has been fixed in Forms 1.4.3 (upcoming release).

Thanks for filing the issue!

-Seth
Comment 3 Parmendra Kumar 2015-06-18 07:24:26 UTC
I have checked this issue with xamarin.forms.1.4.3.6364-pre3 and its working fine at my end.

Hence closing this issue.

Environment info:

Xamarin Studio 5.9.3 (build 1)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
Mono 4.0.1 ((detached/ed1d3ec)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400010044
Xcode 6.2 (6776)
Build 6C131e
Xamarin.iOS : 8.10.1.64 (Enterprise Edition)
Xamarin.Android : 5.1.3.1 (Enterprise Edition)
Xamarin.Mac : 2.0.1.64 (Enterprise Edition)
Mac OS X 10.9.4