Bug 2320821 - GNOME Clocks hangs when an alarm is triggered
Summary: GNOME Clocks hangs when an alarm is triggered
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk4
Version: 41
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: openqa https://discussion.fedoraproje...
Depends On:
Blocks: F41FinalFreezeException
TreeView+ depends on / blocked
 
Reported: 2024-10-21 23:09 UTC by Adam Williamson
Modified: 2024-11-09 01:45 UTC (History)
14 users (show)

Fixed In Version: gtk4-4.16.5-1.fc41
Clone Of:
Environment:
Last Closed: 2024-11-09 01:45:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-clocks issues 373 0 None opened Alarms page sometimes does not show Stop and Snooze buttons when an alarm happens 2024-10-21 23:13:45 UTC
GNOME Gitlab GNOME gtk issues 7091 0 None opened gtk_gst_paintable_video_renderer_create_video_sink GL context change breaks GNOME Clocks 2024-10-21 23:13:45 UTC
GNOME Gitlab GNOME gtk merge_requests 7859 0 None opened wayland: Don't block the event queue 2024-10-22 22:39:40 UTC
GNOME Gitlab GNOME gtk merge_requests 7865 0 None merged Rework the Wayland source again 2024-11-06 16:46:21 UTC

Description Adam Williamson 2024-10-21 23:09:09 UTC
In recent Fedora 41 and Rawhide, Clocks seems to consistently lock up when an alarm is triggered.

This is being tracked upstream at https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/373 and https://gitlab.gnome.org/GNOME/gtk/-/issues/7091 , and it seems to maybe be a gstreamer issue:

"It looks like GStreamer's GL initialization goes wrong.
With those commits [https://gitlab.gnome.org/GNOME/gtk/-/commit/7d5157e99bbc28fb8f97d96e557ff878f3b99b52 and https://gitlab.gnome.org/GNOME/gtk/-/commit/a7f342d202cf62d90eb24cf8fc485ab72ba8f526] reverted, I suspect the code isn't using GL at all and now it does and something goes wrong."

Comment 1 Adam Williamson 2024-10-21 23:14:13 UTC
Proposing as an F41 Final FE in case the compose we're running now is no-go, and a fix for this shows up before we do another.

Comment 2 Kamil Páral 2024-10-22 12:44:05 UTC
There's so little functionality in gnome-clocks, that broken alarms feel like a basic functionality violation. Proposing as a final blocker.

In my testing, the popup notification shows up (but you might not see it, e.g. if you have some fullscreen content), and the audio doesn't play. You have to kill gnome-clocks and start it again, and the alarm starts finally playing as audio.

Comment 3 Gwyn Ciesla 2024-10-22 16:55:03 UTC
Any objection to me shipping your patch for Fedora rawhide and 41, or wait until merged?

Comment 4 Adam Williamson 2024-10-22 17:25:58 UTC
mclasen thinks it's wrong, so hold your horses, I guess. See https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7858#note_2255201 and replies.

Comment 5 Gwyn Ciesla 2024-10-22 18:02:36 UTC
Equine progress restricted.

Comment 6 Adam Williamson 2024-10-22 19:03:41 UTC
Dropping POST as mclasen says my fix isn't right.

Comment 7 Adam Williamson 2024-10-22 22:39:40 UTC
There's an updated proposed fix now. However, Benjamin says "This is quite an invasive commit and I did minimal testing on it, just confirming that gnome-clocks works.
While this is fine to go into main because it should be the right thing, it'd probably warrant some more testing before putting it into a stable branch.", so I'm not sure we'd want to rush this into a late RC. It might make rather more sense to just ship with the known bug which we can document, and fix this with a post-release update that can have more testing.

I will do a scratch build and link it here, though.

Comment 8 Adam Williamson 2024-10-22 23:14:36 UTC
Scratch build with the patch: https://koji.fedoraproject.org/koji/taskinfo?taskID=125092333

Comment 9 Adam Williamson 2024-10-22 23:16:00 UTC
+4 FE in https://pagure.io/fedora-qa/blocker-review/issue/1730 , marking accepted.

Comment 10 Kamil Páral 2024-10-23 09:07:00 UTC
(In reply to Adam Williamson from comment #8)
> Scratch build with the patch:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=125092333

This fixes gnome-clocks for me. I'll be on watch for potential gtk issues in other apps.

Comment 11 Lukas Ruzicka 2024-10-23 16:05:45 UTC
Yes, I can confirm. The scratch build fixes the bug.

Comment 12 František Zatloukal 2024-10-24 21:01:09 UTC
Discussed during the 2024-10-24 Go/No-Go blocker review meeting: [1]

The decision to classify this bug as a RejectedBlocker (Final) was made:

"Consensus could not be reached that this violates the proposed criterion "https://fedoraproject.org/wiki/QA:Testcase_desktop_app_basic" as discussed by the stakeholders. While alarm is an important function of a Clocks application, it wasn't deemed that it fits the basic functionality criterion."

[1] https://meetbot.fedoraproject.org/meeting_matrix_fedoraproject-org/2024-10-24/f41-final-go-no-go-meeting.2024-10-24-17.02.log.html

Comment 13 Adam Williamson 2024-11-06 16:46:21 UTC
Following this through upstream, it looks like the initial fix for this - https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7859 - was merged but then reverted and replaced in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7865 . It was then backported to the 4.16 branch and landed in 4.16.4.

4.16.5 is now stable in Rawhide so this should be fixed there (the last compose still included 4.16.3, though, so can't tell until the next compose is done). It's not yet built for F41. I'm asking if we can get it built for F41 so this will be fixed.

Comment 14 Fedora Update System 2024-11-07 19:10:09 UTC
FEDORA-2024-ef2a265dd9 (gtk4-4.16.5-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ef2a265dd9

Comment 15 Fedora Update System 2024-11-08 02:11:57 UTC
FEDORA-2024-ef2a265dd9 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ef2a265dd9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ef2a265dd9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Lukas Ruzicka 2024-11-08 08:26:51 UTC
The mentioned update fixes the issue for me. Thanks.

Comment 17 Fedora Update System 2024-11-09 01:45:46 UTC
FEDORA-2024-ef2a265dd9 (gtk4-4.16.5-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.