stats: Index out of range when clicking Battery menu item rapidly
Describe the bug
Open Instruments, collect memory usage of stats, open one detached Network panel.
Then, rapidly click battery menu item multiple times.
The crash will happened when Instruments collecting memory data.
Details:
- Device: MacBook Pro 16" 2019
- MacOS 11.1 Big Sur
- Application version 2.4.13 (190)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (19 by maintainers)
Commits related to this issue
- fix: reverted some change from last commit (Battery reader). Fixed the bug with wrong number of top processes in the Battery module (#299). — committed to exelban/stats by exelban 3 years ago
- fix: reverted some change from last commit (Battery reader). Fixed the bug with wrong number of top processes in the Battery module (#299). — committed to gmcinalli/stats by exelban 3 years ago
Thank you for your quick response and I appreciate the attention you are giving to this issue. I also learned a lot 😉
Let’s make progress together!
Thanks. I spend some time on the nice diagram which you post previously and understand how it was possible)
Nope, detached popup it’s not a problem) I like this feature too. I just say that you spend a lot of time debugging this bug (and explaining it). When I already remove this code(
I also fix the problem when this function calling a few times( Code is not pushed, because I must clean up it.