Skip to content

关于BreathLamp在.NET8环境下会导致wpf程序内存泄露的问题 #200

@DirectoWay

Description

@DirectoWay

我在xaml中简单的使用了BreathLamp, 代码具体如下:
<WPFDevelopers:BreathLamp Width="60" Height="60" HorizontalAlignment="Left" VerticalAlignment="Top" GradientStopColor1="#FF00cec9" GradientStopColor2="#2000cec9" IsLampStart="True" LampEffect="Streamer"> <Ellipse Width="53" Height="53"> <Ellipse.Fill> <ImageBrush ImageSource="Assets/logo.png" /> </Ellipse.Fill> </Ellipse> </WPFDevelopers:BreathLamp>
启动程序后, 会导致GC Heap Size不断地增大, 即便程序挂在前台什么也不做, 也会引发这个问题, 在Windows的任务管理器中, 也可以观测到程序正在以每秒零点几M的速度不断地吞噬内存, 我将程序静置了半个小时, 内存泄露的情况依然没有停止的现象, 注释掉上述代码后, 立马就修复了这个问题, 可能是BreathLamp的动画引发了内存泄露

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions