ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Hi there. I'm using mpdris2 on fedora swaywm with home manager. I configured the module with these args: https://github.com/mt190502/dotfiles.nix/blob/unstable/hosts/fedora/mpd/default.nix#L16-L23 But when i open the notification support, mpdris2 freezes and gives this log:
Feb 21 12:36:41 systemd[1604]: Started mpdris2.service - MPRIS 2 support for MPD.
Feb 21 12:36:41 mpDris2[3836713]: 2025-02-21 12:36:41,322 ..mpDris2-wrapped-wrapped INFO: Using file:///home/fedora/Music as music library path.
Feb 21 12:36:41 mpDris2[3836713]: 2025-02-21 12:36:41,323 ..mpDris2-wrapped-wrapped INFO: Using Mutagen to read covers from music files.
Feb 21 12:37:06 mpDris2[3836713]: 2025-02-21 12:37:06,354 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:37:31 mpDris2[3836713]: 2025-02-21 12:37:31,381 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:40:55 mpDris2[3836713]: 2025-02-21 12:40:55,335 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:44:44 mpDris2[3836713]: 2025-02-21 12:44:44,957 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:48:36 mpDris2[3836713]: 2025-02-21 12:48:36,977 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:56:20 mpDris2[3836713]: 2025-02-21 12:56:20,177 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 12:59:46 mpDris2[3836713]: 2025-02-21 12:59:46,747 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Feb 21 13:00:28 mpDris2[3836713]: 2025-02-21 13:00:28,681 ..mpDris2-wrapped-wrapped ERROR: Failed to show notification: g-io-error-quark: Timeout was reached (24)
Edit: I'm using swaync for notifications.
Edit2: This error does not occur every time. Sometimes i get the notification successfully.
When I tried the module right after restarting my computer, I didn't have any problems. But I happened to get a notification from kdeconnect, and after receiving the notification I saw that the mpdris2 module was getting a timeout error again. Then, I closed kdeconnect completely and the mpdris2 module worked fine again. If I open kdeconnect and disable Multimedia control receiver, the mpdris2 module works fine. Kdeconnect seems to conflict with mpdris2 in some cases.
Additional note: This issue does not occur in other media processes (e.g firefox, amberol, vlc etc.)
Do notifications work with other clients (e.g. notify-send)? Does busctl --user status org.freedesktop.Notifications report the same process?
Do notifications work with other clients (e.g.
notify-send)? Doesbusctl --user status org.freedesktop.Notificationsreport the same process?
Once this problem occurs, the notification system does not work
Before:
On issue is occured:
This is more likely to be an issue of your notification daemon, as non of notify-send (C), mpDris2 (python-dbus) and mpdris2-rs (zbus, rust) is working. Maybe do some verbose logging on swaync?
This is more likely to be an issue of your notification daemon, as non of notify-send (C), mpDris2 (python-dbus) and mpdris2-rs (zbus, rust) is working. Maybe do some verbose logging on swaync?
When this problem occurs, the following logs are received from swaync:
❯ G_MESSAGES_DEBUG=all swaync
...
more logs
...
** (swaync:183684): DEBUG: 10:15:34.313: notiDaemon.vala:171: Notification:
category: (null)
image_data: false
expire_timeout: -1
replaces_id: 0
desktop_entry: (null)
body: testing
app_icon:
action_icons: false
time: 1740208534
hints:
sender-pid: int64 186078
urgency: byte 0x01
applied_id: 5
image_path: (null)
inline-reply: (null)
app_name: notify-send
summary: testing
icon_data: false
resident: false
default_action: (null)
actions:
urgency: Normal
** (swaync:183684): DEBUG: 10:17:10.683: mpris_player.vala:211: Changed: Metadata
** (swaync:183684): DEBUG: 10:17:10.683: mpris_player.vala:211: Changed: PlaybackStatus
** (swaync:183684): DEBUG: 10:17:10.683: mpris_player.vala:211: Changed: CanGoNext
** (swaync:183684): DEBUG: 10:17:10.683: notiDaemon.vala:171: Notification:
category: (null)
image_data: false
expire_timeout: 5000
replaces_id: 0
desktop_entry: (null)
body: <b>Cheri Cheri Lady</b>
Modern Talking
30
app_icon: file:///run/user/1000/mpd/album_art/504
action_icons: false
time: 1740208630
hints:
urgency: 0
applied_id: 6
image_path: (null)
inline-reply: (null)
app_name: Music Player Daemon
summary: Playing
icon_data: false
resident: false
default_action: (null)
actions:
urgency: Low