Comments (5)
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. Thank you!
Open similar issues:
- Memory leak when updating checkbox with x:Bind(Binding). (#8634), similarity score: 0.72
- WinUI3 unpackaged application memory consumption. (#8736), similarity score: 0.71
- Memory leak in WinUI3 multiple window applications (#9063), similarity score: 0.70
Closed similar issues:
- Memory leak in Multi-window scenario (#7617), similarity score: 0.70
- Memory leaks on navigation (#9044), similarity score: 0.70
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from microsoft-ui-xaml.
The mentioned concerns do not pertain to the problem I've reported here.
from microsoft-ui-xaml.
Hi, thanks for posting. If you call GC.Collect() in this loop, do you still see this leak? Thanks!
from microsoft-ui-xaml.
@JesseCol, Thank you for the update. We attempted your suggestion, and it did indeed resolve the memory leak. However, it introduced a performance issue. Without invoking GC.Collect(), the loop took 10 seconds to complete. Upon calling GC.Collect(), it took over 2 minutes to finish the loop. For your reference I attached the video demonstration with this update.
DataGrid_PerformanceIssue_with_GC.Collect().zip
from microsoft-ui-xaml.
Thanks! My suggestion of running GC.Collect() isn't that this would be a good way to fix the problem, it was just to see if there's a true memory leak here or if it's just that not all of the managed objects have been collected yet.
It sounds like what you're seeing here is normal CLR behavior. Your loop is allocating a lot of new objects, and they won't get cleaned up until the garbage collector runs. In a real-world app, you usually wouldn't call GC.Collect() yourself, you'd just let the CLR manage the memory itself.
from microsoft-ui-xaml.
Related Issues (20)
- Erratic Item Repositioning in ItemsRepeater with UniformGridLayout when Dragging Scroll Thumb (Introduced in 1.6-preview1)
- New WinUI project asks for non-existant .NET SDK HOT 1
- Migrating from BackRequested UWP to WinUI-3
- Error name with UWP Modern .NET templates HOT 3
- Non resizable window withouth title bar has border when updating to 1.6
- Regression: mouse wheel unusable in scrollviewer containing stackpanel in v1.6
- AnimatedIcon break AoT when used in a style in a class library HOT 3
- Exception Processing Message 0xc0000005 - Unexpected parameters HOT 1
- InputNonClientPointerSource::GetForWindowId crashes app
- Obscure error message when modifying property accessed by UI on timer thread
- Multiple finger touch on Navigation View multiple items become selected HOT 1
- WinUI 3 app started via debugger will always have unicolor (black) title bar HOT 1
- Getting ExtendsContentIntoTitleBar value will cause unicolor title bar since WASDK 1.6
- When a WinUI3 Desktop window that is not-packaged and self-contained is started, it will cause any window with the TOPMOST style of any other process to lose the TOPMOST effect
- Microsoft To Do Not Working
- The style of the ListViewItem regressed to default style when using 2.7.3 version of Microsoft.UI.Xaml
- Text block with italic and justified text seems to be cut off
- WinUI 3 blank app packaged with WAP project does not start when published HOT 2
- TreeView Lost animation during expansion
- Can not publish WinUI 3 app for ARM64 architecture with WAP project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.