aristocratos / btop

A monitor of resources
Apache License 2.0
21.38k stars 656 forks source link

[BUG] Btop crashes when trying to reload config #760

Open MartinPit opened 9 months ago

MartinPit commented 9 months ago

Describe the bug

Btop crashes when one tries to reload config from disk right after program start, using either the SIGUSR2 signal or ctrl+r keybind.

Error message: ERROR: Exception in runner thread -> Net:: -> deque::_M_range_check: __n (which is 55)>= this->size() (which is 14)

This error does not occur after btop has been running for around 8 seconds. After this time period, btop behaves as it should and successfully reloads the config.

This error also does not occur when running with --debug flag.

To Reproduce

Expected behavior

Btop correctly reloads the config from the disk

Screenshots

image

Info (please complete the following information):

Additional context

Contents of ~/.config/btop/btop.log image