dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

The RealParent on Microsoft.Maui.Controls.Button has been Garbage Collected. This should never happen #25739

Closed heinsk closed 2 weeks ago

heinsk commented 2 weeks ago

Description

Hello,

In the log of Debug Window, i noticed some messages like:

2024-11-07 14:53:07.065806-0600 Xignux.Mobile.UI[56543:1254105] warn: Microsoft.Maui.Controls.Element[0] The RealParent on Microsoft.Maui.Controls.Button has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui 2024-11-07 14:53:07.067052-0600 Xignux.Mobile.UI[56543:1254105] warn: Microsoft.Maui.Controls.Element[0] The RealParent on Microsoft.Maui.Controls.Button has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui 2024-11-07 14:53:08.176159-0600 Xignux.Mobile.UI[56543:1254105] warn: Microsoft.Maui.Controls.Element[0] The RealParent on Microsoft.Maui.Controls.Button has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui 2024-11-07 14:53:08.177406-0600 Xignux.Mobile.UI[56543:1254105] warn: Microsoft.Maui.Controls.Element[0]

Steps to Reproduce

Create a list with a button collection

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.5

Did you find any workaround?

No response

Relevant log output

No response

similar-issues-ai[bot] commented 2 weeks ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

jfversluis commented 2 weeks ago

Duplicate of https://github.com/dotnet/maui/issues/23050