-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Disposed objects are not handled properly in android scrollview renderer #8600
Comments
@SubburajPandianV Can you please attach a small project that demonstrates this issue? Thanks! |
Hey @SubburajPandianV thanks for the report! I'm afraid I don't quite understand what is going on. You mention all kinds of issues and fixes and if I read it correctly everything seems fixed? Could you give some more information and like Samantha mentioned; a reproduction project? Thanks! |
Hi @samhouts / @jfversluis, Sorry for the delay. I have attached the sample project in which we installed Xamarin.Forms latest stable version 4.4.0.991. Sample: ScrollView_Sample.zip Replication procedure:
Issue details: Since it occurs in the Xamarin framework and we have already logged a defect report, please find the report link below, And it is resolved this issue in Xamarin.Forms version 4.2.0.815419. Please find the release notes below, https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/4.2/4.2.0-sr2 Unfortunately, after upgrading the Xamarin.Forms to v4.2.0.815419, we have encountered the following crash report in the application,
It is resolved again and now the first issue replicated again in the same scenario. Issue occurs in both 4.2.0.815419 and the latest stable version 4.4.0.991. Please let me know if you have any concern Regards, |
@SubburajPandian I feel like there are a few overlapping things here and I don't think anything you are referencing is relevant to your issue. #6151 is just making it so the dispose happen successfully
is only related to that particular build of our nuget
This is most likely due your control not properly setting up the hierarchy so that our code can navigate the children and detach the renderers. All of our controls use a VisualElementPackager and then on dispose it iterates over the children and disposes of the renderers. I'm not sure how your SfExpander is setup but it's on the control to iterate it's children and dispose of the renderers. The forms code can't just descend a hierarchy it doesn't understand |
Issue
Disposed objects are not handled properly in android scrollview renderer.
#5820
Description
It occured due to ScrollViewRenderer is not disposed properly when navigated away from the page i.e., Renderer is not cleared from Xamarin.Forms.ScrollView even if we disposed the native object
This reported issue 5820 has been fixed in this commit 6151
Fixed in Xamarin.Forms v4.2.0.815419, release notes.
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/4.2/4.2.0-sr2
After upgrading the Xamarin.Forms to v4.2.0.815419, we have encountered the following crash report in the application,
#7602
It is also resolved, now again the mentioned issue 5820 occuring. Kindly check and let us know the details.
The text was updated successfully, but these errors were encountered: