Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Crash when hot-reloading CollectionView after edit #12553

Open
Tommigun1980 opened this issue Oct 21, 2020 · 0 comments
Open

[Bug] Crash when hot-reloading CollectionView after edit #12553

Tommigun1980 opened this issue Oct 21, 2020 · 0 comments
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@Tommigun1980
Copy link

Tommigun1980 commented Oct 21, 2020

  1. Have a collection view in your page
  2. Do some edit in the page's XAML
  3. The page should reload properly in the simulator
  4. Add an item to the collection view (in my case I use the UI to add chat messages)

Crash:

"Cannot access a disposed object.\nObject name: 'GroupableItemsViewController`1'."

"  at Foundation.NSObject.get_SuperHandle () [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/Foundation/NSObject2.cs:394 \n  at UIKit.UIViewController.get_IsViewLoaded () [0x00023] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIViewController.g.cs:2147 \n  at Xamarin.Forms.Platform.iOS.ObservableItemsSource.NotLoadedYet () [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\CollectionView\\ObservableItemsSource.cs:289 \n  at Xamarin.Forms.Platform.iOS.ObservableItemsSource.ReloadRequired () [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\CollectionView\\ObservableItemsSource.cs:294 \n  at Xamarin.Forms.Platform.iOS.ObservableItemsSource.Add (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00023] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\CollectionView\\ObservableItemsSource.cs:165 \n  at Xamarin.Forms.Platform.iOS.ObservableItemsSource.CollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00061] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\CollectionView\\ObservableItemsSource.cs:119 \n  at Xamarin.Forms.Platform.iOS.ObservableItemsSource.CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x000b7] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\CollectionView\\ObservableItemsSource.cs:110 \n  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021 \n  at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/Foundation/NSAction.cs:178 \n--- End of stack trace from previous location where exception was thrown ---\n\n  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)\n  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86 \n  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65 \n  at MyApp.iOS.Application.Main (System.String[] args) [0x00001] in /Users/myname/Projects/myproject/MyApp.iOS/Main.cs:13 "

Latest XF5 preview, iOS simulator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

1 participant