maui icon indicating copy to clipboard operation
maui copied to clipboard

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

Open snufffgit opened this issue 1 year ago • 20 comments

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

No response

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 avatar Jun 14 '24 00:06 snufffgit

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.

github-actions[bot] avatar Jun 14 '24 00:06 github-actions[bot]

@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

PureWeen avatar Jun 14 '24 23:06 PureWeen

Hello,

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 don’t have any repro, but if you want I’m glad to show you on screen sharing.

I did not mention but the event occurs without an application crash.

Best regards,

João Eduardo Martins

On 15 Jun 2024, at 00:28, Shane Neuville @.***> wrote:

@snufffgit https://github.com/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

— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/23050#issuecomment-2168880024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4GL5TDQY4VNJLOWUBWV5LZHN4CRAVCNFSM6AAAAABJJMAZU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYHA4DAMBSGQ. You are receiving this because you were mentioned.

snufffgit avatar Jun 14 '24 23:06 snufffgit

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 avatar Jun 18 '24 08:06 softlion

image

softlion avatar Jun 18 '24 08:06 softlion

Related #23139

softlion avatar Jun 19 '24 14:06 softlion

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.

softlion avatar Jun 19 '24 14:06 softlion

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

PureWeen avatar Jun 20 '24 10:06 PureWeen

@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.

softlion avatar Jun 21 '24 05:06 softlion

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

tranb3r avatar Jun 25 '24 08:06 tranb3r

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"/>

JoeVoo avatar Jul 05 '24 21:07 JoeVoo

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.

mmiller-d8 avatar Jul 22 '24 16:07 mmiller-d8

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.

softlion avatar Jul 23 '24 06:07 softlion

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.

Thaldoras avatar Aug 23 '24 15:08 Thaldoras

https://gist.github.com/axa88/fe2c31ba1ec7fc12730bc4b826313e1b

PureWeen avatar Sep 07 '24 17:09 PureWeen

https://gist.github.com/axa88/fe2c31ba1ec7fc12730bc4b826313e1b

Valid/Tested on WinUI (10.0.19041.0) and Android (12), perhaps the sole iOS tag should be reconsidered.

axa88 avatar Sep 07 '24 18:09 axa88

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

IVSoftware avatar Sep 23 '24 17:09 IVSoftware

@PureWeen Is this PR the cause of the warnings? https://github.com/dotnet/maui/pull/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);
	}
}

Thaldoras avatar Sep 25 '24 09:09 Thaldoras

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

arahmancsd avatar Oct 03 '24 08:10 arahmancsd

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

kdotdk avatar Oct 22 '24 07:10 kdotdk

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.

TargetReacher avatar Nov 06 '24 18:11 TargetReacher

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 avatar Dec 04 '24 22:12 ksoftllc

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

ksoftllc avatar Dec 05 '24 15:12 ksoftllc

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

ksoftllc avatar Dec 05 '24 18:12 ksoftllc

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>

ksoftllc avatar Dec 06 '24 00:12 ksoftllc

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

david-maw avatar Dec 23 '24 17:12 david-maw

This issue says it happens on windows and they have a repro: https://github.com/dotnet/maui/issues/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

mattleibow avatar Jan 04 '25 11:01 mattleibow

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.

FinnKr avatar Jan 17 '25 10:01 FinnKr

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

softlion avatar Jan 17 '25 12:01 softlion

@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".

FinnKr avatar Jan 17 '25 12:01 FinnKr