Comments (7)
I do realize this is an old version, before this project existed, but reporting on old repository will not result in any fixes and since the code base for the most part is the same, I thought this might be relevant.
from nheko.
Are you noticing this when switching back and forth from the same two chats, or when switching between various other chats? nheko has some built-in caching of messages to prevent the need to re-request them from the server all the time. I just want to verify what you mean by the 'Switch between two chats for a while' portion of the issue.
from nheko.
I tested with same two chats as that way it's easier to replicate the behavior and can't be attributed to just loading new history into memory.
Example before test, with both top chats loaded once:
After switching between the top two chats 10+ times:
from nheko.
Please note that here difference is not as drastic as in some previous cases I ran into this issues. This might be something to do with the fact I restarted application before testing so that other chats don't affect the outcome.
If the application has longer uptime, I think results should be more drastic. However I don't have images of this, but I can test for that if you wish.
from nheko.
Is there any chance you can run valgrind on nheko while you're doing this, and share the output file with me? I did this on my end, but wasn't able to see any memory leaks after a few minutes of switching back and forth.
This command should be sufficient:
valgrind --leak-check=full --show-leak-kinds=all /path/to/nheko
Nheko does run much slower under valgrind, just as an fyi.
If you can't run valgrind, let me know.
from nheko.
Here it is.
from nheko.
I think this shouldn't be an issue anymore, since before we used widgets for the timeline, that were never freed. Now we use qml to dynamically generate the timeline view, which uses a bit of memory for caches, but should have an upper limit (apart from all the messages still being kept in memory, as we don't drop them from the in memory cache. That overhead should be reasonably minimal and should go away, once we actually use a proper disk cache for all messages in the future.)
from nheko.
Related Issues (20)
- Nightly signal 11 on exit
- Crash on Refresh Device List icon click
- [Flatpak] Settings not persisted on restart (e.g. disable "Decrypt Notifications")
- nightly crash on right-click room
- Editing a message while the message is being sent causes the edit to be lost HOT 1
- Open a chat in a separate window HOT 1
- Hitting return does not send the message HOT 3
- Rooms and private chats HOT 5
- Add setting to only share message keys to verified devices (of verified/TOFU users)
- @room warning shows even for rooms where you can't ping room HOT 1
- High CPU usage when internet disconnects
- Cannot connect from UDP-blocking networks due to forced QUIC usage HOT 2
- Confirm password when exporting keystore
- When sending spoilers nheko should obfuscate the plain text HOT 1
- If a message has only few emojies as content, show those emojies large HOT 1
- New release? HOT 7
- add more themes
- Sending matrix.to link results in unexpected formatting. HOT 1
- Support self-signed certificate HOT 3
- Space's context menu settings 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 nheko.