Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory usage increase indefinitely after window minimized on Linux #7254

Closed
chengguizi opened this issue Aug 23, 2024 · 3 comments
Closed

Memory usage increase indefinitely after window minimized on Linux #7254

chengguizi opened this issue Aug 23, 2024 · 3 comments
Labels
🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself

Comments

@chengguizi
Copy link

Describe the bug

When the desktop viewer window is minimised or on some machine bring to background of other windows, there are data seemingly being cached by the rerun process.

When the viewer window is bring to foreground again, i can see it being fast forward in replay, before it goes back to realtime again.

If i leave the window minimised for too long, eventually it dries up the memory on system and hangs the system

To Reproduce
Steps to reproduce the behavior:

  1. Run with rerun --drop-at-latency 500ms --server-memory-limit 200MB --memory-limit 200MB
  2. Stream image data over time
  3. Minimise the viewer window
  4. Observer using htop to prove that memory increases steadily

Expected behavior

Memory usage should be bounded by --server-memory-limit 200MB --memory-limit 200MB

Screenshots

Backtrace

Desktop (please complete the following information):

  • OS: Linux 20.04 / 22.04

Rerun version

0.15.1 or 0.18.0 tested

Additional context

@chengguizi chengguizi added 👀 needs triage This issue needs to be triaged by the Rerun team 🪳 bug Something isn't working labels Aug 23, 2024
@teh-cmc
Copy link
Member

teh-cmc commented Aug 23, 2024

The viewer currently ingest data on the UI thread -- when your window is in the background, it will either slow down the UI thread massively or stop it altogether depending on your OS / window manager.

This is a known issue, see:

@teh-cmc
Copy link
Member

teh-cmc commented Aug 23, 2024

Closing as duplicate

@teh-cmc teh-cmc closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
@teh-cmc teh-cmc added 📺 re_viewer affects re_viewer itself and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Aug 23, 2024
@chengguizi
Copy link
Author

@teh-cmc Thanks for quick response, understand it is due to UI thread processing the ingestion. Yes would really appreciate to have this solved. Otherwise, minimise / lock screen will basically makes the whole OS OOM eventually and hangs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

No branches or pull requests

2 participants