Comments (7)
Thank you, again, for letting us know about this issue and providing the sample to reproduce. We were able to track down some theme logic that was holding references to elements and were able to refactor it to avoid keeping the elements alive. This fix will be in the next maintenance release.
from avalonia-controls.
We're glad to hear you like the theme library! Sorry you're having trouble with a memory leak on a listbox. Since our native control templates just define custom styles/templates for the listbox, any memory leak would be in the native control itself and you'd need to reach out to the Avalonia UI team for assistance with that.
https://github.com/AvaloniaUI/Avalonia/issues
from avalonia-controls.
The memory leak only occurs when using your theme. It's not available with "FluentTheme".
from avalonia-controls.
Well, that's certainly a different situation. Can you provide steps to reproduce with the sample you previously attached?
from avalonia-controls.
Each click of the "Next" button creates a new UserControlView. The previous ones are not released, although there should no longer be a reference to them.
from avalonia-controls.
Thank you for the steps. Had to click the button several times to hit the finalizer breakpoint on the view model, but never hit the finalizer breakpoint on the view. Investigating...
from avalonia-controls.
New release is out.
from avalonia-controls.
Related Issues (11)
- Missing borders on MessageBox and UserPrompt in SampleBrowser HOT 6
- How to change the theme from code behind? HOT 2
- String Resource Browser not showing Fundamentals strings HOT 1
- Thank you ❤ HOT 1
- Material Icons Support? HOT 5
- Virtual Keyboard Control HOT 1
- How to use AOT with NativeDataGrid HOT 4
- MenuItem keeps popping up and closing HOT 1
- Version description / "list of changes" is missing HOT 1
- Corner Radius for Listbox HOT 2
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 avalonia-controls.