Bug 341951 - Popup notification freeze plasmashell when in standby mode/lock screen
Summary: Popup notification freeze plasmashell when in standby mode/lock screen
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR major
Target Milestone: 1.0
Assignee: Martin Klapetek
URL:
Keywords:
: 341988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-16 19:54 UTC by Helio Chissini de Castro
Modified: 2016-03-05 05:03 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Effect with plasma locked (150.63 KB, image/png)
2014-12-17 11:36 UTC, Helio Chissini de Castro
Details
plasma freeze after resuming from lock (104.60 KB, image/png)
2016-03-02 09:33 UTC, Sudhir Khanger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helio Chissini de Castro 2014-12-16 19:54:29 UTC
If system goes to standby, screen off, not hibernate or suspend, during lock screen process, and some notification happens in background, popup freezes, with no message, making all area of plasma shell unresponsive.
The only way to recover is explicitly kill plasmashell and restart it.
100% reproducible, but the screen need go to standby.

Reproducible: Always

Steps to Reproduce:
- Assure that some notification popups often ( i use kmail inbox notifications )
- Lock screen
- Waits to standby ( i use to close laptop lid )
- Unlock the screen.
- If notification happened, the popup bubble will appears in a blank mode blocking any action on the interface


Expected Results:  
No block
Comment 1 Kai Uwe Broulik 2014-12-16 20:49:11 UTC
That sounds very strange, and I cannot reproduce this here. I ran knotificationdbustest (which yields a couple of notifications), turned off my screen, locked the screen and shut the lid. After resuming and unlocking it continued normal.
Comment 2 Martin Klapetek 2014-12-17 10:51:10 UTC
Never seen that either.

What versions are plasma-workspace and knotifications framework? Also kwin? 

Also have you tried to stop compositing and restart it?
Comment 3 Helio Chissini de Castro 2014-12-17 11:36:23 UTC
Created attachment 90010 [details]
Effect with plasma locked
Comment 4 Helio Chissini de Castro 2014-12-17 11:38:30 UTC
Already did the compositing stop/start
Even changed the compositors. still stucked.
I'm looking for relevant entries on xsession-errors

$ kwin_x11 --version
kwin 5.1.90

plasmashell --version
plasmashell 5.1.90
Comment 5 Martin Klapetek 2015-01-08 17:10:20 UTC
Are you by any chance using Oxygen plasma theme?
Comment 6 Helio Chissini de Castro 2015-01-08 17:54:29 UTC
Nope

Using breeze for everything, including kwin theme.
Yesterday happened twice with new build, one int eh regular night-> sleep lock machine  and other 
during he day when i locked.

I noted one thing, my vpn that was usually connected on plasma-nm always disconnect when this plasma bugs happens, meaning can be something related to nm notifications not playing nice when screen is off.
Comment 7 Lukáš Tinkl 2015-01-08 17:56:00 UTC
Confirmed, just happened here as well, plasma froze and I couldn't unlock
Comment 8 Martin Klapetek 2015-01-08 17:59:17 UTC
I'm wondering if the plasma freeze is network manager's fault. There's another report linking that freeze to NM and the notification popup is just an ordinary Dialog, the same as all applets.

Can you guys try gdb into plasmashell and see if you can get a trace of where it is frozen?

I can't reproduce even if I create 100 notifications while being in lockscreen.
Comment 9 Sudhir Khanger 2015-01-30 21:40:51 UTC
I am also affected by this issue. I am running 5.2 on Fedora 21. It did come to my notice after I unlocked my system. I tried to replicate it by setting up "sleep 5 && notify-send "hello"" then lock and then suspend but I can't replicated. Toggling desktop effects has no result. I can continue to use apps and switch among them but panel gets frozen. kquitapp5 plasmashell didn't kill the shell but killall did. After I "killall plasmashell" kmix crashed with segmentation fault. Unfortunately I didn't save the crash report.
Comment 10 Martin Klapetek 2015-01-30 23:00:15 UTC
Somehow all these reports seem to come from Fedora and Fedora only...I'm starting to suspect there's something astray in the Fedora system, somewhere. Many people also mentioned network manager (connection notification after resuming from suspend etc), so could you guys just remove the network manager applet and try using the desktop for a while and see if it still happens?
Comment 11 Marcelo Ricardo Leitner 2015-03-26 13:13:35 UTC
+1 hitting this on F22 Alpha1. I'm using NetworkManager applet and I can't easily disable it. I may try it this weekend.
Comment 12 Rex Dieter 2015-04-02 12:35:04 UTC
Suspicions are an intel video driver issue,
https://bugs.freedesktop.org/show_bug.cgi?id=84252
Comment 13 Rex Dieter 2015-05-20 15:29:03 UTC
For posterity, seems one reason many fedora users are hitting this, is due to intel video driver being built to enable DRI3 support, which upstream currently recommends against, see:
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=b6eeb7a1f7efa591504070b606be655e27e6e9c2

Fedora may issue driver updates to disable this too soon, see downstream bug,
https://bugzilla.redhat.com/show_bug.cgi?id=1223477
for tracking purposes.
Comment 14 Rex Dieter 2015-10-08 13:28:23 UTC
This should be fixed now in fedora in general (in other components like drivers, xorg-x11-server, libxcb)
Comment 15 rndbit 2015-11-20 12:55:49 UTC
For what its worth im also experiencing these freezes. Since i do not lock my system i do not know how to make them happen at will because everything is fine after reboot. But some hours into the day problem appears, and it is not only notifications. Changing sound for example also makes it freeze, i believe due to displaying sound level indicator overlay thing. This never hits without notification being popped, be it network manager, spotify, firefox or anything. Its always notification (and well adjusting sound). Also using intel graphics here and archlinux. According to PKGBUILD of xf86-video-intel package dri3 is not explicitly enabled.
Comment 16 rndbit 2015-11-20 17:00:55 UTC
Forgot to mention that restarting plazma makes freezes go away. Probably important detail.
Comment 17 Martin Klapetek 2016-02-03 20:47:14 UTC
*** Bug 341988 has been marked as a duplicate of this bug. ***
Comment 18 Sudhir Khanger 2016-03-02 09:33:35 UTC
Created attachment 97639 [details]
plasma freeze after resuming from lock

The freezes are back for me. I am on Plasma 5.5.4 on Fedora 23.
Comment 19 Rex Dieter 2016-03-02 12:52:51 UTC
fyi, a recent fedora update (re)enabled dri3 by default,
https://bodhi.fedoraproject.org/updates/FEDORA-2016-606ca05253

you can try forcing dri2 mode, and see if that helps, doing something like creating a snippet: /etc/X11/xorg.conf.d/20-intel.conf containing:
Section "Device"
Identifier     "Intel_Graphics"
Driver          "intel"
Option   "DRI" "2"
EndSection
Comment 20 Sudhir Khanger 2016-03-05 05:03:48 UTC
Thanks Rex, that did help.