You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_GestureRecognizers from UITableView crash regression. #6782
iOSIssues affecting iOSneed-infoWaiting for more information before the bug can be investigatedvs-sync*Only use when triaging (not before)* Syncs this bug with VSTS
@viniciusjarina please avoid vs-sync (we'll apply it it) as it double the triaging work.
I don't understand your screencast... what is wrong ? I don't see any crash
There's also nothing that tell us how to duplicate this issue.
IIRC there was a change in GestureRecognizers recently - but it was to allow it to be GC'ed properly (they were not). So it's quite possible that some incorrect code will have to be fixed.
The fix is simple, assign table.GestureRecognizers to a local variable and use it - that way all the logic will be applied to the same data. It will also cut down on memory allocations, which is always a good thing :)
iOSIssues affecting iOSneed-infoWaiting for more information before the bug can be investigatedvs-sync*Only use when triaging (not before)* Syncs this bug with VSTS
Activity
spouliot commentedon Aug 15, 2019
@viniciusjarina please avoid
vs-sync(we'll apply it it) as it double the triaging work.I don't understand your screencast... what is wrong ? I don't see any crash
There's also nothing that tell us how to duplicate this issue.
IIRC there was a change in
GestureRecognizersrecently - but it was to allow it to be GC'ed properly (they were not). So it's quite possible that some incorrect code will have to be fixed.Also the code you linked https://github.com/xamarin/Xamarin.Forms/blob/57d507ef0b47d54d4026a07632f88a39a40de0c9/Xamarin.Forms.Platform.iOS/ContextActionCell.cs#L646 is racy since each call to
table.GestureRecognizerscan return a different array, so it can be non-null of the first check, then null later (or with a different number of items).The fix is simple, assign
table.GestureRecognizersto a local variable and use it - that way all the logic will be applied to the same data. It will also cut down on memory allocations, which is always a good thing :)viniciusjarina commentedon Aug 15, 2019
The screencast was from the Forms PR, is working. I've added the vs-sync because I've added the repro details in the AzDO bug. 😉
I agree that code is kinda of "racy" but should not crash the application, correct?
chamons commentedon Sep 18, 2019
We have not received the requested information.
If you are still experiencing this issue please provide all the requested information then click the Reopen Issue button.
Thanks!