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.
When the MasterDetail page is set to the MainPage property for the 2nd time after it has been stored as a reference locally, clicking the menu-button will fail. The behaviour is different on iOS and Android. App to test the issue: https://github.com/App-Artment/xamarin-forms-tests Steps to reproduce on IOS: - Open app - 'Tap here to start' - select: MasterDetail Navigation - Test and check if the menu is working and select a page - Press START on navigationbar - select: MasterDetail Navigation - Press the menu button in the navigationbar (<< This will result in the following exception:) System.ObjectDisposedException: The object was used after being disposed. at MonoTouch.Foundation.NSObject.get_SuperHandle () [0x00015] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:345 at MonoTouch.UIKit.UIViewController.get_View () [0x00030] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIViewController.g.cs:2543 at Xamarin.Forms.Platform.iOS.PhoneMasterDetailRenderer.AddClickOffView () [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.PhoneMasterDetailRenderer.set_Presented (Boolean value) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.PhoneMasterDetailRenderer.HandlePropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00000] in <filename unknown>:0 at at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) at at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) at at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0 at Xamarin.Forms.MasterDetailPage.set_IsPresented (Boolean value) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer.<UpdateLeftBarButtonItem>b__9 (System.Object o, System.EventArgs e) [0x00000] in <filename unknown>:0 at MonoTouch.UIKit.UIBarButtonItem+Callback.Call (MonoTouch.Foundation.NSObject sender) [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIBarButtonItem.cs:27 at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62 at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46 at XamarinFormsTests.iOS.Application.Main (System.String[] args) [0x00008] in /Users/tim/Projects/XamarinFormsTests/iOS/Main.cs:17 Steps to reproduce on Android: - Open app - 'Tap here to start' - select: MasterDetail Navigation - Test and check if the menu is working and select a page - Press START on actionbar - select: MasterDetail Navigation - Press the menu button in the navigationbar (<< This won't work anymore, no action is done after pressing) Version info: Xamarin Forms: 1.3.0.6280-pre2 Xamarin Studio Version 5.5.4 (build 15) Runtime: Mono 3.10.0 ((detached/92c4884) GTK+ 2.24.23 (Raleigh theme) Package version: 310000031 Xamarin.Android Version: 4.20.0.28 (Indie Edition) Android SDK: /Users/tim/Library/Developer/Xamarin/android-sdk-mac_x86 Supported Android versions: 2.1 (API level 7) 2.2 (API level 8) 2.3 (API level 10) 3.1 (API level 12) 3.2 (API level 13) 4.0 (API level 14) 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.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
Created attachment 9105 [details] iOS Designer Log I have checked this issue with the help of instructions and sample app provided in bug description, and observed the same behaviour mentioned in bug description. Screencast : http://www.screencast.com/t/bL8LZmI4t6 iOS Application Output Log : https://gist.github.com/Udham1/6b2dda3781272438d5a4 Android Application Output Log : https://gist.github.com/Udham1/805b2504f4879c9c5ef9 Ide Log : https://gist.github.com/Udham1/cfd657cf8c6c35ac5e5a Android Tools Log : https://gist.github.com/Udham1/b9fbcbaa76f6d26ccdfa Environment Info : Xamarin.Forms : 1.3.0.6280-pre2 === Xamarin Studio === Version 5.7 (build 652) Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc Runtime: Mono 3.12.0 ((detached/a813491) GTK+ 2.24.23 (Raleigh theme) Package version: 312000068 === Apple Developer Tools === Xcode 6.1 (6602) Build 6A1052c === Xamarin.iOS === Version: 8.6.0.32 (Enterprise Edition) Hash: f31ad46 Branch: Build date: 2014-12-12 17:56:03-0500 === Xamarin.Android === Version: 4.20.0.28 (Enterprise Edition) Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx Supported Android versions: 1.6 (API level 4) 2.1 (API level 7) 2.2 (API level 8) 2.3 (API level 10) 3.1 (API level 12) 4.0 (API level 14) 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_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) === Xamarin.Mac === Version: 1.11.3.0 (Enterprise Edition) === Build Information === Release ID: 507000652 Git revision: 042e44ba92a6a9c46bd2b69b0b4348df43f381ea Build date: 2014-12-11 18:37:24-05 Xamarin addins: 06d3aaafde7f726d508e079c9b297cc9aae4af55 === Operating System === Mac OS X 10.9.4 Darwin Xamarin76s-Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0 Tue Jun 3 21:27:35 PDT 2014 root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Fixed in 1.3.2-pre1
I have checked this issue with Xamarin.Forms 1.3.2.6299-pre1 and now its working fine at our end. Hence closing this issue.