Open deltragon opened 8 months ago
Since I know what the issue is, I am planning to file a PR fixing it. I just wanted to file this to make sure it doesn't get lost.
Oh, I've found a new reproducer:
Step 4 and 5 can also be using the "Reset" button, if there is no overlap between the names of the breaks in Step 1 and 2 and the default breaks.
Describe the bug Deleting the break that happened to be the next scheduled one will remove the break from the existing queue, but keep it as
last_break
in the BreakQueue. This leads to an infinite loop in this code: https://github.com/slgobinath/SafeEyes/blob/00c33908a3e861f19d0fcb2df54ecaf48b93e66a/safeeyes/model.py#L110-L113To Reproduce Steps to reproduce the behavior:
Since it is a coinflip each time, it is needed to repeat step 2-7 a few times to reproduce.
Expected behavior Deleting any break should not hang.
Desktop (please complete the following information):
Debug Log Run the Safe Eyes using
safeeyes --debug
command attach the ~/safeeyes.log` file.After
Initialize the core
, it will hang.