hovancik / stretchly

The break time reminder app
https://hovancik.net/stretchly
BSD 2-Clause "Simplified" License
4.51k stars 436 forks source link

[Bug]: Sometimes no notification after a period of time #1451

Closed xingwangyong closed 4 months ago

xingwangyong commented 4 months ago

Version

Known issues

Existing issues

Advanced Preferences

What operating system are you using?

Windows

Operating System Version

Windows 2202

Reproduction steps

  1. The bug is random.
  2. I set Mini break to 30min. For example, I manually start break at 11:00. It is supposed to show break around 11:30
  3. However, sometimes it just skips. ... Reproduces how often: [What percentage of the time does it reproduce?] Almost every single day

Expected Behavior

Show break every 30 minutes

Actual Behavior

Sometimes no break notification.

Relevant log output

        breakPlanner: {reference: resumeBreaks,
        timeleft: 3 minutes 22 seconds remaining,
        breakNumber: 0,
        postponesNumber: 0,
        Do Not Disturb: false}

        settingsFile: C:\Users\lenovo\AppData\Roaming\Stretchly\config.json

        logsFile:  C:\Users\lenovo\AppData\Roaming\Stretchly\logs\main.log
        Node.js: 18.17.1
        Chromium: 118.0.5993.144,
        Electron: 27.1.0

[2024-04-16 08:59:54.671] [info] System: resume or unlock [2024-04-16 08:59:54.673] [info] Stretchly: resuming breaks [2024-04-16 09:29:44.695] [info] Stretchly: showing Mini Break notification [2024-04-16 09:29:52.653] [info] Stretchly: skipping to Mini Break [2024-04-16 09:29:53.259] [info] Stretchly: showing window 2 of 2 [2024-04-16 09:29:54.116] [info] Stretchly: showing window 1 of 2 [2024-04-16 09:29:54.117] [info] Stretchly: starting Mini Break [2024-04-16 09:30:14.132] [info] Stretchly: finishing Mini Break (shouldPlanNext: true) [2024-04-16 09:30:14.166] [info] Stretchly: playing audio/crystal-glass.wav (volume: 1) [2024-04-16 09:47:26.163] [info] Stretchly: pausing breaks for Do Not Distrub [2024-04-16 09:47:43.174] [info] Stretchly: resuming breaks for Do Not Distrub [2024-04-16 10:17:33.176] [info] Stretchly: showing Mini Break notification [2024-04-16 10:17:38.996] [info] Stretchly: pausing breaks for 1800000ms [2024-04-16 10:47:38.997] [info] Stretchly: resuming breaks [2024-04-16 10:47:44.888] [info] Stretchly: pausing breaks for 1800000ms [2024-04-16 11:01:40.803] [info] Stretchly: resuming breaks

Preferences

image

Additional information

No response

Code of Conduct

hovancik commented 4 months ago

Please fill the parts "Relevant log output" and "Preferences". I am not able to help without that information.

xingwangyong commented 4 months ago

Thanks! I attached the logs. The two highlighted lines are probably the cause. That's strange, I did not set doNotDisturb myself. Actually, I did not know where to set it.

hovancik commented 4 months ago

@xingwangyong Thanks! By default, Stretchly pauses breaks when your OS is in Do not disturb mode (or Focus mode, there are different names) - usually set for example by Skype, Teams when you are in a call, or by some Browsers when they are in Fullscreen or by Video players.

You can disable this behaviour if you click "Show breaks even in Do Not Disturb mode"

xingwangyong commented 4 months ago

I see. The doNotDisturb mode makes sense and is useful. In my case, it seems that it can not properly detect whether I am in this mode or not. Most of time, I am just editing MS word files and treated as in doNotDisturb mode. Anyway, I will use "Show breaks even in Do Not Disturb mode" to overwrite. Thanks!