Bug 29845 - Setting ContentPage Visibility to False causes InvocationTargetException
Summary: Setting ContentPage Visibility to False causes InvocationTargetException
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.4
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2015-05-07 12:03 UTC by Cody Beyer (MSFT)
Modified: 2015-07-15 19:11 UTC (History)
2 users (show)

Tags: ac crash android carouselpage
Is this bug a regression?: ---
Last known good build:


Attachments
re (20.19 KB, application/x-zip-compressed)
2015-05-20 16:54 UTC, Chris King
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 Cody Beyer (MSFT) 2015-05-07 12:03:54 UTC
### Description

The following sample app has a button, which sets the visibility of a content page to false. Clicking the button will cause the app to crash

### Test Case

https://www.dropbox.com/s/uhr28d5sxcbs4kc/testCarousel1.zip?dl=0

### Video

https://www.dropbox.com/s/3uj3q2tzwv4kqor/VisibleBad.mov?dl=0

### Stacktrace

https://gist.github.com/CodyBeyer/83dc131a167f988681f0

### Steps to Reproduce

1. Download and open linked app
2. Deploy to Android emulator 
3. Click button

### Expected Results

The visibility of page2 should be set to false

### Actual Results

App crashes with above linked stacktrace

### Versions

=== Xamarin Studio ===

Version 5.9 (build 464)
Installation UUID: d8ebdab3-1afa-44d2-8784-4c929811fb0d
Runtime:
	Mono 4.0.1 ((detached/5a0b19f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010024

=== Apple Developer Tools ===

Xcode 6.3.1 (7703)
Build 6D1002

=== Xamarin.iOS ===

Version: 8.10.1.24 (Business Edition)
Hash: 1b48440
Branch: master
Build date: 2015-05-04 17:01:32-0400

=== Xamarin.Android ===

Version: 5.1.0.129 (Business Edition)
Android SDK: /Users/beyerc/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.2   (API level 17)
		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)

=== Xamarin Android Player ===

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

=== Xamarin.Mac ===

Version: 2.0.1.24 (Business Edition)

=== Build Information ===

Release ID: 509000464
Git revision: 97f3c43266a4abe2dff0a31b1afb976de897d099
Build date: 2015-05-04 10:06:54-04
Xamarin addins: 438f3e4b8352e006958552de07c6f54770c9233c

=== Operating System ===

Mac OS X 10.10.3
Darwin Codys-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Chris King 2015-05-20 16:54:39 UTC
Created attachment 11265 [details]
re

re
Comment 2 Chris King 2015-05-20 17:00:35 UTC
Indeed. Setting the visibility of an off screen page in a carouselpage to false causes a crash.
Comment 3 Chris King 2015-07-15 19:11:35 UTC
No longer repros on Master. Please wait for next release to verify.

Warm regards,
XFT