-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification daemon crashes when monitor is removed. #200
Comments
While using the control center's "popup notifications" applet and keeping a preview notification showing, neither turning off nor removing my secondary monitor affected the notification. Were you displaying the notification on the monitor that was being removed by any chance? I was not |
Yeah I had set the monitor to one that was disconnected. |
If I move the notification to the secondary monitor, it does indeed disappear rather than move to the primary monitor if I disconnect the secondary monitor, though a terminal running mate-notification-properties to invoke it does not catch any error messages. Not sure where you are seeing those. Anyway, removing a monitor should move the notification to the remaining monitor as everything else moves over |
Those messages are from mate-notification-daemon not mate-notification-properties. I was originally just seeing them in ~/.local/share/sddm/xorg-session.log but obviously that depends on what display manager you are using. |
I don't have sddm as window manager, didn't get t anything like that error in .xsession-errors so not sure if its the same. Different WMs might respond differently to a monitor being removed |
I can't exactly explain why it's changed now but I'm getting the error out of journalctl -f now. It seems like it's now run from dbus???.
Edit: Just to clarify sddm is a display manager afaik I'm just using whatever mate has by default as a wm. |
I didn't find any of this in journalctl on my system, in fact outputting it to a file, opening that in Pluma and searching for 'gdk_display_get_n_monitors' returned no matches at all |
Weird. Thanks heaps for looking into it anyway. Out of curiosity what are you running? |
Debian Unstable, rather hacked. Local builds all of MATE, compiz, the kernel, and some security stuff |
Thank you! I've been struggling for a few days with my broken notifications which worked when second monitor was connected but not when disconnected. Your comment was a great hint. I was using my second monitor as primary and "Use Active Monitor" checkbox unchecked because I wanted notifications to show up on this second screen. Notification manager probably remembered this even though I disconnected second monitor. However it should not because when no external monitors are plugged in then the laptop's screen should be a primary monitor. Thank you, I've just wanted to share my problem and solution in case somebody will have the same problem in the future. |
I know for certain I tested that, notifications just came back to my primary screen same as any icon dragged over would
On 12/26/2021 at 6:22 AM, "javaDeveloperKid" ***@***.***> wrote:
***@***.***
> While using the control center's "popup notifications" applet
and keeping a preview notification showing, neither turning off
nor removing my secondary monitor affected the notification. Were
you displaying the notification on the monitor that was being
removed by any chance? I was not
Thank you! I've been struggling for a few days with my broken
notifications which worked when second monitor was connected but
not when disconnected. Your comment was a great hint.
With second monitor disconnected I opened Ubuntu's Popup
Notifications and checked "Use Active Monitor" -> then "Preview" -
> it worked (a notification showed up). Without this options
checked I encountered the following error message:
`gdbus.error.freedesktop.dbus.error.noreply: message recipient
disconnected from message bus without replying`
I was using my second monitor as primary and "Use Active Monitor"
checkbox unchecked because I wanted notifications to show up on
this second screen. Notification manager probably remembered this
even though I disconnected second monitor. However it should not
because when no external monitors are plugged in then the laptop's
screen should be a primary monitor.
Thank you, I've just wanted to share my problem and solution in
case somebody will have the same problem in the future.
--
Reply to this email directly or view it on GitHub:
https://github.com/mate-desktop/mate-notification-
daemon/issues/200#issuecomment-1001159521
You are receiving this because you were mentioned.
Message ID: <mate-desktop/mate-notification-
***@***.***>
|
I'm slightly unclear as to whether this has been solved. I encountered this same problem when I disconnected an external monitor:
I prompted a notification by connecting or disconnecting a bluetooth device. I'll try the 'popup notification' |
I have tried a number of different sequences, but I cannot reliably cause the daemon to crash when I disconnect the external monitor. However it does crash when monitors are connected and disconnected, e.g. sometimes it crashes when:
The notification will disappear and the daemon will have crashed. I have also experienced a crash when after (5) I also try to close the notification - at which time the notification will freeze for a moment (not close) and then the daemon crashes. |
Expected behaviour
Not to crash
Actual behaviour
mate-notification-daemon crashes with version 1.24.2, with version 1.25.1 just this message is printed out
(mate-notification-daemon:182258): Gdk-CRITICAL **: 18:15:29.829: gdk_monitor_get_display: assertion 'GDK_IS_MONITOR (monitor)' failed
(mate-notification-daemon:182258): Gdk-CRITICAL **: 18:15:29.829: gdk_display_get_n_monitors: assertion 'GDK_IS_DISPLAY (display)' failed
Which I believe still indicates a bug
Steps to reproduce the behaviour
MATE general version
1.24.1
Package version
1.24.2
Also tried with 1.25.1
Linux Distribution
Arch Linux
Link to bugreport of your Distribution (requirement)
I can raise it if you like but it looks definitively like an upstream issue I suspect this line here should check also if monitor_id is NULL.
This is running with mate-notification-daemon-1.24.2.tar.xz
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: