dotnet / dotnet/macios

[mac] ReleaseManagedRef crash when reusing views that have RemoveFromSuperview overridden

Open
#5,432 2 comments 0 reactions 0 assignees View on GitHub
bug macOS
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

### Steps to Reproduce

[NSOutlineViewDidRemove.zip](https://github.com/xamarin/xamarin-macios/files/2769992/NSOutlineViewDidRemove.zip)

1. Open attached project
2. Run
3. Click button about 10 times, scrolling through list when up appears to make it happen more often, but seems random.
4. Comment out RemoveFromSuperview on MyView and it seems to go away.

### Expected Behavior

Not randomly crash

### Actual Behavior

💥

### Environment

XM from master.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.