Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui #23050

Open
snufffgit opened this issue Jun 14, 2024 · 32 comments
Assignees
Labels
area-architecture Issues with code structure, SDK structure, implementation details p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@snufffgit
Copy link

snufffgit commented Jun 14, 2024

Description

Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui

Steps to Reproduce

I'm reporting the bug as instructed by the Application Output

Link to public reproduction project repository

Possible reproduction here
#23050 (comment)

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Thread started:  #19
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Thread started: <Thread Pool> #305
Thread started: <Thread Pool> #306
2024-06-14 01:31:19.551411+0100 App.Sign[83286:8791825] //TabBar/HomePage/D_FAULT_PolicyPage16
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
2024-06-14 01:31:22.122925+0100 App.Sign[83286:8791825] //TabBar/HomePage/D_FAULT_PolicyPage16/D_FAULT_IdentityPage17
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
2024-06-14 01:31:24.329648+0100 App.Sign[83286:8791825] //TabBar/HomePage/D_FAULT_PolicyPage16
Thread started:  #307
Thread finished: <Thread Pool> #293
Thread finished: <Thread Pool> #305
Thread started:  #308
Thread started:  #309
Thread started:  #310
Thread started:  #311
Thread started:  #312
Thread started:  #313
Thread started:  #314
Thread started:  #315
Thread started:  #316
Thread started:  #317
Thread started:  #318
Thread started:  #319
Thread started: <Thread Pool> #320
Thread started:  #321
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Thread started: <Thread Pool> #322
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: '(null)' cannot be converted to type 'Syncfusion.Maui.Core.BadgeType'
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Thread started:  #323
Thread started:  #324
Thread started:  #325
2024-06-14 01:33:49.373138+0100 App.Sign[83286:8791825] 
Unhandled Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.Collections.Generic.List`1[[Sign.Api.Models.Core.ActivityData, Sign.Api.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].get_Item(Int32 index)
   at System.Collections.ObjectModel.Collection`1[[Sign.Api.Models.Core.ActivityData, Sign.Api.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].System.Collections.IList.get_Item(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.ElementAt(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.get_Item(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.get_Item(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetSizeForItem(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.ItemsViewDelegator`2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.ReorderableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetSizeForItem(UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath indexPath)
   at UIKit.UICollectionView.InsertItems(NSIndexPath[] indexPaths) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/UIKit/UICollectionView.g.cs:line 478
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.<>c__DisplayClass42_0.<Add>b__0(UICollectionView c)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.Update(Action`1 update, NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.Add(NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.CollectionChanged(NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.<>c__DisplayClass38_0.<CollectionChanged>b__0()
   at Foundation.NSAsyncActionDispatcher.Apply() in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSAction.cs:line 150
--- End of stack trace from previous location ---
   at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2594
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 60
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94
   at App.Sign.Program.Main(String[] args) in /Users/snufff/Projects/Sign/MAUI.App.Sign/MAUI.App.Sign/Platforms/iOS/Program.cs:line 13
2024-06-14 01:33:49.381410+0100 App.Sign[83286:8791825] Unhandled managed exception: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') (System.ArgumentOutOfRangeException)
   at System.Collections.Generic.List`1[[Sign.Api.Models.Core.ActivityData, Sign.Api.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].get_Item(Int32 index)
   at System.Collections.ObjectModel.Collection`1[[Sign.Api.Models.Core.ActivityData, Sign.Api.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].System.Collections.IList.get_Item(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.ElementAt(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.get_Item(Int32 index)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.get_Item(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetSizeForItem(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.ItemsViewDelegator`2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.ReorderableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].GetSizeForItem(UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath indexPath)
   at UIKit.UICollectionView.InsertItems(NSIndexPath[] indexPaths) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/ios/generated-sources/UIKit/UICollectionView.g.cs:line 478
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.<>c__DisplayClass42_0.<Add>b__0(UICollectionView c)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.Update(Action`1 update, NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.Add(NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.CollectionChanged(NotifyCollectionChangedEventArgs args)
   at Microsoft.Maui.Controls.Handlers.Items.ObservableItemsSource.<>c__DisplayClass38_0.<CollectionChanged>b__0()
   at Foundation.NSAsyncActionDispatcher.Apply() in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSAction.cs:line 150
--- End of stack trace from previous location ---
   at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2594
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 60
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94
   at App.Sign.Program.Main(String[] args) in /Users/snufff/Projects/Sign/MAUI.App.Sign/MAUI.App.Sign/Platforms/iOS/Program.cs:line 13

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x10e8136d5 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info
	0x10e7b20de - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_handle_native_crash
	0x10e9acb08 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : sigabrt_signal_handler.cold.1
	0x10e813010 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_runtime_setup_stat_profiler
	0x127f37fdd - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x0 - Unknown
	0x128405d30 - /Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib : abort
	0x10df9b0a7 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libxamarin-dotnet-debug.dylib : xamarin_unhandled_exception_handler
	0x10e8b0ce4 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_invoke_unhandled_exception_hook
	0x10e7b1cdf - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_handle_exception_internal
	0x10e7afd25 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_handle_exception
	0x10e827b09 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : interp_throw
	0x10e825c5c - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : interp_throw_ex_general
	0x10e81fe85 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_interp_exec_method
	0x10e814f63 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : interp_runtime_invoke
	0x10e8fb2d8 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_runtime_invoke_checked
	0x10e902c1b - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_runtime_exec_main_checked
	0x10e767742 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libmonosgen-2.0.dylib : mono_jit_exec
	0x10dfaebea - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/libxamarin-dotnet-debug.dylib : xamarin_main
	0x1027d3794 - /Users/snufff/Library/Developer/CoreSimulator/Devices/720B152D-9442-4AF9-97F9-7C56CA7A7FBA/data/Containers/Bundle/Application/57AAABE1-B6BF-4717-B6A4-62E6FF0F5CD0/App.Sign.app/App.Sign : main
	0x10b22c3e0 - Unknown
	0x203142366 - Unknown

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x12844714a):0x12844713a  ff ff c3 90 90 90 b8 48 01 00 02 49 89 ca 0f 05  .......H...I....
0x12844714a  73 08 48 89 c7 e9 cc 99 ff ff c3 90 90 90 b8 53  s.H............S
0x12844715a  00 00 02 49 89 ca 0f 05 73 08 48 89 c7 e9 b4 99  ...I....s.H.....
0x12844716a  ff ff c3 90 90 90 b8 83 01 00 02 49 89 ca 0f 05  ...........I....

=================================================================
	Managed Stacktrace:
=================================================================
=================================================================
@snufffgit snufffgit added the t/bug Something isn't working label Jun 14, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen
Copy link
Member

@snufffgit

Does your app also throw this exception in sr6 8.0.40?

Do you have a repro by chance?

If it's hard to repro can you paste your xaml that uses RoundRectangle

@snufffgit
Copy link
Author

snufffgit commented Jun 14, 2024 via email

@PureWeen PureWeen self-assigned this Jun 15, 2024
@PureWeen PureWeen added the area-architecture Issues with code structure, SDK structure, implementation details label Jun 15, 2024
@softlion
Copy link
Contributor

repro can you paste your xaml that uses RoundRectangle

I'm using sr6, and this is reported in Sentry multiple times for multiple UI controls, since I switched to sr6.

I have multiple logs. I'm posting one:

Occurred in non-app: void Logger.<Log>g__LoggerLog|14_0<FormattedLogValues>(?)+LoggerLog(LogLevel, EventId, ILogger, Exception, Func<FormattedLogValues, Exception, string>, ref List<Exception>, in FormattedLogValues)

Hide 12 more frames

void Logger.Log<FormattedLogValues>(LogLevel, EventId, FormattedLogValues, Exception, Func<FormattedLogValues, Exception, string>)

void Logger<Element>.Microsoft.Extensions.Logging.ILogger.Log<FormattedLogValues>(LogLevel, EventId, FormattedLogValues, Exception, Func<FormattedLogValues, Exception, string>)

void LoggerExtensions.Log(ILogger, LogLevel, EventId, Exception, string, params object[]) x 2

void LoggerExtensions.LogWarning(ILogger, string, params object[])

Element Element.get_RealParent()

void Element.SetParent(Element value)

void ImageElement.ImageSourceChanged(BindableObject bindable, ImageSource newSource)

void ImageElement.OnImageSourceChanged(BindableObject bindable, object oldValue, object newValue)

void BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, bool silent)

void BindableObject.SetValueCore(BindableProperty property, object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)

void BindableObject.SetValue(BindableProperty property, object value)

void Image.set_Source(ImageSource value)

object <InitializeComponent>_anonXamlCDataTemplate_5.LoadDataTemplate()
In App

Assembly:
Wz
Version:
2.0.0.0
Called from: object ElementTemplate.CreateContent()

Show 24 more frames

void StateContainerController.SwitchToState(string state)
In App

void StateContainer.ChangeState(BindableObject bindable, string state)
In App

void StateContainer.OnCurrentStateChanging(BindableObject bindable, object oldValue, object newValue)
In App

Called from: void BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, bool silent)

Show 7 more frames

void BaseViewModel.OnPropertyChanged(PropertyChangedEventArgs eventArgs)
In App

void BaseViewModel.set_CurrentState(LayoutState value)
In App

async Task HomeViewModel.SetSelectedTabIndex(int tabIndex)
In App

Called from: void AsyncMethodBuilderCore.Start<<SetSelectedTabIndex>d__79>(ref <SetSelectedTabIndex>d__79)

Task HomeViewModel.SetSelectedTabIndex(int tabIndex)
In App

void HomeTabsPhoneView.HomePhoneView_OnCurrentPageChanged(object sender, EventArgs e)
In App

Called from: void MultiPage<Page>.OnCurrentPageChanged()

Show 6 more frames

void Program.Main(string[] args)

@softlion
Copy link
Contributor

image

@softlion
Copy link
Contributor

Related #23139

@softlion
Copy link
Contributor

I really don’t remember to see that event on the previous version of Microsoft.Maui.Controls, and I’m aware of the application log.

I confirm that it is only since SR6 that does happen.

@PureWeen PureWeen added this to the .NET 8 SR8 milestone Jun 20, 2024
@PureWeen
Copy link
Member

@snufffgit do you have any code examples you can include here where you are using RoundRectangle?

@softlion
Copy link
Contributor

@snufffgit do you have any code examples you can include here where you are using RoundRectangle?

I have examples of this issue report in sentry where the UI control involved change everytime.

I would conclude that it is not related to the UI control used.

@tranb3r
Copy link

tranb3r commented Jun 25, 2024

I'm also getting this warning from time to time:
The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen...

And also:
The RealParent on File: xxxx has been Garbage Collected. This should never happen...

MAUI 8.0.60 SR6

@PureWeen PureWeen modified the milestones: .NET 8 SR8, .NET 8 SR9 Jul 2, 2024
@JoeVoo
Copy link

JoeVoo commented Jul 5, 2024

Had the same debug massage after update to maui 8.0.61 on Windows, combined with bad ui performance. Back to 8.0.40 - messages gone and performance is normal. Only part where RoundRectangle is used, but lots of borders are loaded in Collectionviews and Flexlayouts:
<Style TargetType="Border" x:Key="BaseBorderStyle"> <Setter Property="Stroke" Value="{DynamicResource StrokeColor}" /> <Setter Property="StrokeShape" Value ="RoundRectangle 5,5,5,5"/>

@mmiller-d8
Copy link

mmiller-d8 commented Jul 22, 2024

Okay, so my first question is why neither I nor the AI that looks for possible duplicates could find this one in a search. But anyways...

In my case, I'm getting the error for some images as well as for RoundRectangle. In the case of the images, I'm using a derived class that applies a behavior to tint the images. I can't imagine that would cause this, but who knows?

Here is the XAML for the image (one thing I do notice immediately is that the target type for IconStyleBase is Image, not TintedImage):


<Style x:Key="IconStyleBase" TargetType="Image">
    <Setter Property="HeightRequest" Value="20" />
    <Setter Property="WidthRequest" Value="20" />
    <Setter Property="WidthRequest" Value="25" />
    <Setter Property="HeightRequest" Value="25" />
    <Setter Property="Margin" Value="0,0,5,0" />
</Style>

<Style x:Key="VisibleIconStyle" TargetType="controls:TintedImage" BasedOn="{StaticResource IconStyleBase}">
    <Setter Property="Source" Value="icon_visible.png" />
    <Setter Property="TintColor" Value="{AppThemeBinding Dark={StaticResource DarkThemeText}, Light={StaticResource LightThemeText}}" />
</Style>

<HorizontalStackLayout Grid.Row="1" Style="{StaticResource PropertyVisibilityLayoutStyle}">
    <controls:TintedImage Style="{StaticResource VisibleIconStyle}" />
    <Label Text="{x:Static resx:UserSetup.sphereSelection_VisibilityMessage}" />
</HorizontalStackLayout>

Here is the code for the TintImage control:

public class TintedImage : Image 
{

    public static readonly BindableProperty TintColorProperty = BindableProperty.Create(nameof(TintColor), typeof(Color), typeof(TintedImage), null);
    public Color? TintColor 
    {
        get => (Color?)GetValue(TintColorProperty);
        set => SetValue(TintColorProperty, value);
    }

    protected override void OnPropertyChanged([CallerMemberName] string? propertyName = null)
    {
        base.OnPropertyChanged(propertyName);

        if (propertyName == nameof(TintColor))
        {
            var behavior = Behaviors.FirstOrDefault(b => b is IconTintColorBehavior);

            if (TintColor != null) 
            {
                if (behavior == null) 
                {
                    behavior = new IconTintColorBehavior
                    {
                        TintColor = TintColor
                    };

                    this.Behaviors.Add(behavior);
                }
                else 
                    ((IconTintColorBehavior)behavior).TintColor = TintColor;
            }

            if (TintColor == null && behavior != null)
                this.Behaviors.Remove(behavior);
        }
    }

}

Here is one example of the RoundRectangle issue. Both issues seem to be coming from a ContentView. In one of those, the XAML is a control template. In the other it is not. In both cases, the StrokeShape property is bound to a bindable property on the ContentView.

<Border
        x:DataType="local:PropertyCard"
        BindingContext="{x:Reference this}"
        Stroke="{Binding Stroke}"
        StrokeThickness="{Binding StrokeThickness}"
        StrokeShape="{Binding StrokeShape}"
        BackgroundColor="{Binding CardBackgroundColor}"
        Padding="{Binding CardPadding}">

        <Grid 
            x:Name="mainContainer"
            Grid.RowDefinitions="Auto,*">

            <Label 
                Grid.Row="0"
                Text="{Binding HeaderText}"
                FontSize="{Binding HeaderFontSize}"
                TextColor="{Binding HeaderTextColor}" 
                FontFamily="{Binding HeaderFontFamily}"
                Margin="0,0,0,5" />

            <Grid x:Name="itemContainer" Grid.Row="1"></Grid>
        </Grid>
</Border>

Finally, here is the Style that is applying RoundRectangle to the ContentView:

<Style TargetType="controls:PropertyCard">
        <Setter Property="CardBackgroundColor" Value="{AppThemeBinding Dark={StaticResource DarkThemeCardBackground}, Light={StaticResource LightThemeCardBackground}}" />
        <Setter Property="CardPadding" Value="15,15,15,7" />
        <Setter Property="Stroke" Value="{AppThemeBinding Dark={StaticResource DarkThemeCardBorder}, Light={StaticResource LightThemeCardBorder}}" />
        **<Setter Property="StrokeShape" Value="RoundRectangle 12" />**
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="HeaderFontSize" Value="{x:Static root:FontSizes.LargeText}" />
        <Setter Property="HeaderFontFamily" Value="{x:Static root:FontNames.DefaultBold}" />
        <Setter Property="HeaderTextColor" Value="{AppThemeBinding Light={StaticResource LightThemeHeaderText}, Dark={StaticResource DarkThemeHeaderText}}" />
        <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource LightThemeCardText}, Dark={StaticResource DarkThemeCardText}}" />
        <Setter Property="TextFontSize" Value="{x:Static root:FontSizes.DefaultText}" />
        <Setter Property="SubtextColor" Value="{AppThemeBinding Light={StaticResource LightThemeCardText}, Dark={StaticResource DarkThemeCardText}}" />
        <Setter Property="SubtextFontSize" Value="{x:Static root:FontSizes.TinyText}" />
        <Setter Property="PromptTextColor" Value='{AppThemeBinding Light={StaticResource LightThemeAccent}, Dark={StaticResource DarkThemeAccent}}' />
        <Setter Property="NavigationArrow" Value="arrow_forward.png" />
        <Setter Property="LockIcon" Value="icon_padlock.png" />
        <Setter Property="ColumnSpacing" Value="10" />
</Style>

As an aside, I was looking through the Sentry logs and there are some images where it happens pretty much every time that page loads. There is another case where I have a custom control that is on virtually every setup and settings page in my app - and there are a lot - and it only happened once for that control and it has happened a couple dozen times for the other images it's affecting.

Also, I should point out that I'm currently in development, so I'm the only user. That's why the numbers are so low.

@softlion
Copy link
Contributor

Ah that explains my issues with custom image sources that i am using as they are applied through a behavior too.

This bug is being cornered.

@PureWeen PureWeen added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label Aug 2, 2024
@Thaldoras
Copy link

Is there any solution to this other than reverting your Maui version? It floods my logging and am often not sure if issues are caused by this or something else.

@IVSoftware
Copy link

IVSoftware commented Sep 23, 2024

On StackOverflow, I was testing my answer to this question and stumbled upon this unexpected output. This may be a possible repro and might save someone a little legwork.

image ___

This testbench code lives on a specific branch in this repro:

Clone: windows-machine-successful-test


UPDATE: After letting it run for a while I got a total of 21 occurrences of RealParent warning in a sample of 35000 with no real sense of how it relates to COMException with 810 occurrences.

Count = 32333
Count = 32334
COMException Count=728 Caller=SelectItem

Count = 32335

Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.Rectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
Microsoft.Maui.Controls.Element: Warning: The RealParent on Microsoft.Maui.Controls.Shapes.Rectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui
.
.
.
Count = 34956
COMException Count=810 Caller=OnNavigatedTo

@Thaldoras
Copy link

Thaldoras commented Sep 25, 2024

@PureWeen Is this PR the cause of the warnings?
#22561

WeakReference<Element> _realParent;
/// <summary>For internal use by .NET MAUI.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Element RealParent 
{ 
	get
	{
		if (_realParent is null)
		{
			return null;
		}
		if (_realParent.TryGetTarget(out var parent))
		{
			return parent;
		}
		else
		{
			Application.Current?
				.FindMauiContext()?
				.CreateLogger<Element>()?
				.LogWarning($"The RealParent on {this} has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui");
		}

		return null;
	} 
	private set
	{
		if (value is null)
			_realParent = null;
		else
			_realParent = new WeakReference<Element>(value);
	}
}

@arahmancsd
Copy link

For me this is happening at app start-up in CollectionView in iOS with 8.0.91 (the latest version).

@mikeparker104 mikeparker104 added the partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with label Oct 9, 2024
@kdotdk
Copy link

kdotdk commented Oct 22, 2024

Have see same problem a few times

2024-10-16 09:20:10.1277|WARN|Microsoft.Maui.Controls.Element|The RealParent on Microsoft.Maui.Controls.Shapes.RoundRectangle has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui

Context could be open and closing Maui Community PopUp defined in Xaml and I have only seen it when building to release mode.
App was running on Windows 10 and build with net8.0-windows10.0.19041.0 as target and supported OS 10.0.17763.0 and packages:

	  <PackageReference Include="CommunityToolkit.Maui" Version="9.0.1" /> <!-- 9.0.2 causes exceptions see below references -->
		<!-- https://github.com/CommunityToolkit/Maui/issues/2003 -->
		<!-- https://github.com/CommunityToolkit/Maui/pull/1932-->
          <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
	  <PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="8.0.7" />
	  <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.82" />
	  <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.82" />

Regards

@TargetReacher
Copy link

Because of big memory leaks in a custom ContentView I tried to free up allocated memory by disconnecting handlers and setting all child views to null and call ClearLogicalChildren () for example..

But when I do that, this error occurs for almost every element inside the ContentView.
So not only RealParent of File: xxx or RealParent of RoundRectangle but also many other errors.

I am also using Border with a Binding to StrokeShape of the ContentView. And also an Image element with a TintColorBehavior.

I don't know if this helps in some way, but I hope it will.
I am not getting any exception from this log message though. It's just showing up.

@ksoftllc
Copy link

ksoftllc commented Dec 4, 2024

This happened to us also with 2 users today.

Image

Image

SBOM:

          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"
          "referenceLocator": "pkg:nuget/[email protected]"

@ksoftllc
Copy link

ksoftllc commented Dec 5, 2024

FYI - This crash has now happened 10 times in the last 48 hours as captured by sentry.io. Only on iOS so far.

@ksoftllc
Copy link

ksoftllc commented Dec 5, 2024

We were not seeing this crash until our most recent release. Should I open a new issue?

@ksoftllc
Copy link

ksoftllc commented Dec 6, 2024

I did notice that this crash is happening on a view with control templates.

<?xml version="1.0" encoding="utf-8" ?>
<ContentView
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"

    BackgroundColor="{AppThemeBinding Light=White, Dark=Black}"
    >

    <ContentView.Resources>
        <ControlTemplate x:Key="PortraitTemplate">
            <Grid
                RowDefinitions="auto,*"
                >
                <views:SensorHeaderView x:Name="PortraitHeaderView" Margin="5"/>
                <RefreshView
                    x:Name="PortraitRefreshView"
                    Grid.Row="1"
                    IsRefreshing="{Binding IsRefreshing}"
                    Command="{Binding RefreshQueryCommand}"
                    >
                    <ScrollView x:Name="PortraitExpanderScrollView">
                        <VerticalStackLayout>
                            <views:SensorByLocationView x:Name="PortraitLocationView" Margin="5"/>
                            <views:SensorExpanderView x:Name="PortraitExpanderView" Margin="5" Grid.Row="1"/>
                        </VerticalStackLayout>
                    </ScrollView>
                </RefreshView>
                <views:BorderedActivityIndicatorView x:Name="PortraitActivityIndicator" Grid.RowSpan="2" IsVisible="{Binding ShowActivityIndicator}"/>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="LandscapeTemplate">
            <Grid
                RowDefinitions="auto,*"
                ColumnDefinitions="*,*"
                >
                <views:SensorHeaderView x:Name="LandscapeHeaderView" Grid.ColumnSpan="2" Margin="5,0"/>
                <Grid Grid.Row="1">
                    <RefreshView
                        Grid.Row="1"
                            x:Name="LandscapeRefreshView"
                            IsRefreshing="{Binding IsRefreshing}"
                            Command="{Binding RefreshQueryCommand}"
                            >
                        <ScrollView x:Name="LandscapeExpanderScrollView" Grid.Row="1">
                            <views:SensorExpanderView x:Name="LandscapeExpanderView" Margin="5,0"/>
                        </ScrollView>
                    </RefreshView>
                </Grid>
                <Grid
                    x:Name="scrollLocationGrid"
                    Grid.Row="1"
                    Grid.Column="1"
                    >
                    <ScrollView>
                        <views:SensorByLocationView
                            x:Name="LandscapeLocationView"
                            WidthRequest="{Binding Source={x:Reference scrollLocationGrid}, Path=Width}"
                            Margin="5"
                            />
                    </ScrollView>
                </Grid>
                <views:BorderedActivityIndicatorView x:Name="LandscapeActivityIndicator" IsVisible="{Binding ShowActivityIndicator}" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
            </Grid>
        </ControlTemplate>
    </ContentView.Resources>

    <!--Content is set in code behind... selecting one of the above control templates.-->
</ContentView>

@david-maw
Copy link

Just happened to me on an Android release build, no sign of it on debug builds.

@mattleibow
Copy link
Member

mattleibow commented Jan 4, 2025

This issue says it happens on windows and they have a repro: #26872

Repro: https://github.com/King-Taz/NavBar

CSI says they can repro:

This issue has been verified using Visual Studio 17.13.0 Preview 2.1 (9.0.21 & 9.0.14 & 8.0.100). Can repro this issue on Windows platform.
Image

@FinnKr
Copy link

FinnKr commented Jan 17, 2025

I encountered a similar issue. When using an Image and setting the Source to an ImageSource which will be set from a static function.
The actual codebase is a bit more complicated but I created a repo which can be used to reproduce it:
https://github.com/FinnKr/RealParentGarbageCollectWarning

If you run this app on iOS and navigate a few times to the second page and back the following Warning will be logged twice:
Microsoft.Maui.Controls.Element: Warning: The RealParent on File: dotnet_bot.png has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui

In our actual application this will produce a massive log spam.

@softlion
Copy link
Contributor

@FinnKr that warning pops up when you use the .Parent property. Remove any code reading .Parent and all warnings are gone !

@FinnKr
Copy link

FinnKr commented Jan 17, 2025

@FinnKr that warning pops up when you use the .Parent property. Remove any code reading .Parent and all warnings are gone !

@softlion Thank you for your answer but unfortunately this warning occurs even when not using the .Parent property. As you can see in the linked repository, there is no usage of "Parent".

@PureWeen
Copy link
Member

There's probably a few things going on here.

One area that I'm thinking could lead to this is that if you use a strokeshape on a border as a static resource
#27194 (comment)

@PureWeen PureWeen modified the milestones: .NET 9 Servicing, .NET 9 SR5 Jan 17, 2025
@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 18, 2025
@mattlovell
Copy link

mattlovell commented Jan 20, 2025

getting this on IOS simulator in Debug
ios 17.2.8053/8.0.100 SDK 8.0.300-preview.24203, VS 17.10.34818.151, VS 17.9.34723.18

No references to parent in my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-architecture Issues with code structure, SDK structure, implementation details p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests