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

[Bug] iOS CollectionView Cannot access disposed object. DefaultRenderer #12894

Closed
VladislavAntonyuk opened this issue Nov 18, 2020 · 3 comments · Fixed by #12923
Closed

[Bug] iOS CollectionView Cannot access disposed object. DefaultRenderer #12894

VladislavAntonyuk opened this issue Nov 18, 2020 · 3 comments · Fixed by #12923
Labels
a/carouselview a/collectionview e/3 🕒 3 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛

Comments

@VladislavAntonyuk
Copy link
Contributor

VladislavAntonyuk commented Nov 18, 2020

Reopened the issue: #12776
Still reproduced on 5.0.0-pre4
iOS 14.1

Step to reproduce:

  1. Create RefreshView
  2. Put CollectionView inside
  3. Pull down to execute refresh.
NSObject.get_SuperHandle () /Library/Frameworks/Xamarin.iOS.framework/Versions/14.7.0.166/src/Xamarin.iOS/Foundation/NSObject2.cs:394
UIView.set_Frame (CoreGraphics.CGRect value) /Library/Frameworks/Xamarin.iOS.framework/Versions/14.7.0.166/src/Xamarin.iOS/UIKit/UIView.g.cs:3732
ItemsViewController`1[TItemsView].LayoutEmptyView () D:\a\1\s\Xamarin.Forms.Platform.iOS\CollectionView\ItemsViewController.cs:330
ItemsViewController`1[TItemsView].ViewWillLayoutSubviews () D:\a\1\s\Xamarin.Forms.Platform.iOS\CollectionView\ItemsViewController.cs:163
StructuredItemsViewController`1[TItemsView].ViewWillLayoutSubviews () D:\a\1\s\Xamarin.Forms.Platform.iOS\CollectionView\StructuredItemsViewController.cs:78
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) /Library/Frameworks/Xamarin.iOS.framework/Versions/14.7.0.166/src/Xamarin.iOS/UIKit/UIApplication.cs:86
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) /Library/Frameworks/Xamarin.iOS.framework/Versions/14.7.0.166/src/Xamarin.iOS/UIKit/UIApplication.cs:65
@VladislavAntonyuk VladislavAntonyuk added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 18, 2020
@samhouts samhouts added this to New in Triage Nov 18, 2020
@jsuarezruiz jsuarezruiz added a/carouselview a/collectionview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often labels Nov 18, 2020
@jsuarezruiz
Copy link
Contributor

Could you attach a sample where reproduce the issue?.
Some doubts:

  • CollectionView has EmptyView defined?
  • RefreshView when executing the command, does it return an empty collection?

@jsuarezruiz jsuarezruiz moved this from New to Needs Info in Triage Nov 18, 2020
@jsuarezruiz jsuarezruiz added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Nov 18, 2020
@VladislavAntonyuk
Copy link
Contributor Author

VladislavAntonyuk commented Nov 18, 2020

issue12894.zip
open the Browse page, swipe to refresh
or
Switch between tabs

@jsuarezruiz
Copy link
Contributor

Thanks for the repro sample!

@jsuarezruiz jsuarezruiz moved this from Needs Info to Ready For Work in Triage Nov 20, 2020
@jsuarezruiz jsuarezruiz added e/3 🕒 3 and removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified labels Nov 20, 2020
@jsuarezruiz jsuarezruiz added this to Backlog in CollectionView via automation Nov 20, 2020
Triage automation moved this from Ready For Work to Closed Dec 11, 2020
CollectionView automation moved this from Backlog to Done Dec 11, 2020
rmarinho pushed a commit that referenced this issue Dec 11, 2020
…12923) fixes #12910 fixes #12894

* Added repro sample

* Updated sample

* Updated repro sample

* Fix build error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/carouselview a/collectionview e/3 🕒 3 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛
Projects
Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

2 participants