Skip to content

RealParent on Syncfusion.Maui.Core.BadgeSettings has been Garbage Collected. #28990

Closed as not planned
@DBenS

Description

@DBenS

Description

While debugging my MAUI 9.xx app using the latest Syncfusion library (VS2022 v17.13.6), I see this message in the OUTPUT window:

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

The versions I have here, are:

  • Syncfusion: 29.1.38
  • Syncfusion Maui Toolkit: 1.0.4
  • Microsoft.Maui.Controls: 9.0.60

Steps to Reproduce

  1. Add a Syncfusion Badge into your XAML, like this:
<Grid Grid.Column="2">

    <badgeView:SfBadgeView IsVisible="{Binding IsTimingEnabled}" HorizontalOptions="Center" VerticalOptions="Center" BadgeText="{Binding RemainingTimeDisplay}">
        <badgeView:SfBadgeView.Content>
            <Button Text="🔒" FontSize="24" WidthRequest="100" HeightRequest="60" CornerRadius="15"/>
        </badgeView:SfBadgeView.Content>
        
        <badgeView:SfBadgeView.BadgeSettings>
            <badgeView:BadgeSettings Type="Error" Animation="Scale" Offset="-20,0" Position="TopRight" AnimationDuration="100" />
        </badgeView:SfBadgeView.BadgeSettings>
        
    </badgeView:SfBadgeView>
    
</Grid>

  1. Execute your app in DEBUG mode and after 5-10 seconds the message appears in OUTPUT window.

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

9.0.40 SR4

Affected platforms

Windows

Affected platform versions

Windows 11 SDK 10.0.19041.0

Did you find any workaround?

No.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    t/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions