mrjackwills / oxker

A simple tui to view & control docker containers
MIT License
727 stars 24 forks source link

[BUG] - Crash when sorting #42

Open mrjackwills opened 4 months ago

mrjackwills commented 4 months ago

Describe the bug When (rapidly) re-sorting containers, the application can freeze crash

To Reproduce Steps to reproduce the behavior:

  1. repeatedly change the sort pattern, either with 1-9 or clicking on a header

Expected behavior It shouldn't crash

Screenshots n/a

Desktop (please complete the following information): Ubuntu 24.04 arm64, with 15+ containers

Additional context I think in the end the docker data needs to be in it's own tokio thread, using a messaging system to update and retrieve data, rather than using the current Arc<Mutex> system, would be a sizable change to implement correctly - although should probably be done.