Bug 344080 - Spotify hangs/prevents mouse clicks.
Summary: Spotify hangs/prevents mouse clicks.
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.2.0.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 13:48 UTC by petrk
Modified: 2015-02-13 15:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2015-02-12 13:48:41 UTC
Everytime I launch Spotify desktop hangs in a way that prevents mouse clicks, window movement, keyboard works per program, can still alt+tab. It happens after few songs, when I click anywhere inside Spotify window and then try to switch to other program.
kwin_x11 --replace fixes issue but if I click anywhere in Spotify it hangs windows again.

Reproducible: Always

Steps to Reproduce:
1. Run spotify on Arch, haven't tried other distros. AUR btw.
2. Play few songs. Switch to other windows just be sure.
3. Click anywhere in spotify window, watch magic... I mean kwin hang.
4. "kwin_x11 --replace" to recover
5. Repeat from step 3.

Actual Results:  
Kwin seems to be frozen.

Expected Results:  
I shouln't have to know that kwin is now kwin_x11.

Acer Aspire 5720g
ATI radeon HD2300 M71
Xorg 1.16.3
Mesa

Log from kwin being run from console:

[stefan@stefan667 ~]$ kwin_x11 --replace
kwin_core: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  randr: 0x "14"  sync: 0x "31"  damage: 0x  "11" 

Constructing a KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake code.
Constructing a KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake code.
Trying to load decoration plugin:  "/usr/lib/qt/plugins/org.kde.kdecoration2/breezedecoration.so"
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3036451
kwin_core: User timestamp, final: 'ID: 41943057 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Pulpit — Plazma" ' : 3036451
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3034457
kwin_core: User timestamp, final: 'ID: 62914588 ;WMCLASS: "spotify" : "spotify" ;Caption: "Spotify Premium - Linux Preview" ' : 3034457
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3032420
kwin_core: User timestamp, final: 'ID: 71303352 ;WMCLASS: "firefox" : "navigator" ;Caption: "Enter A Bug - Mozilla Firefox" ' : 3032420
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 1284929                                                                                                                         
kwin_core: User timestamp, final: 'ID: 41943060 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 1284929
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3043928
kwin_core: User timestamp, final: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3043928
kwin_core: Activation, compared: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3043928 : 3044174 : false 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1c52240) true false false
kwin_core: PERMITTED 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' true
kwin_core: KWin::Client(0x1c52240) true false false
kwin_core: PERMITTED 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: Initializing XRender compositing
kwin_core: Vertical Refresh rate  60 Hz
kf5.kservice.sycoca: Trying to open ksycoca from "/home/stefan/.cache/ksycoca5"
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1993, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2003, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kf5.kservice.sycoca: Trying to open ksycoca from "/home/stefan/.cache/ksycoca5"
kwin_core: Effect is not supported:  "blur"
kwin_core: Effect is not supported:  "contrast"
kwin_core: Session path: "/org/freedesktop/login1/session/c2"
kwin_core: Successfully loaded built-in effect:  "dashboard"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_maximize"
kwin_core: Successfully loaded built-in effect:  "desktopgrid"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_fade"
kwin_core: Successfully loaded built-in effect:  "highlightwindow"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_dialogparent"
kwin_core: Successfully loaded built-in effect:  "kscreen"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_translucency"
kwin_core: Successfully loaded built-in effect:  "logout"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_login"
kwin_core: Successfully loaded built-in effect:  "minimizeanimation"
kwin_core: Successfully loaded built-in effect:  "presentwindows"
kwin_core: Successfully loaded built-in effect:  "screenedge"
kwin_core: Successfully loaded built-in effect:  "screenshot"
kwin_core: Successfully loaded built-in effect:  "slide"
kwin_core: Successfully loaded built-in effect:  "slidingpopups"
kwin_core: Effect is not supported:  "startupfeedback"
kwin_core: Successfully loaded built-in effect:  "zoom"
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3129612
kwin_core: User timestamp, final: 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3129612
kwin_core: Activation, compared: 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3129612 : 3129873 : false 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1c8f5e0) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3157799
kwin_core: User timestamp, final: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3157799
kwin_core: Activation, compared: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3157799 : 3150838 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
^Torg.kde.kactivities.lib.core: Killing the consumer

more:

[stefan@stefan667 ~]$ kwin_x11 --replace
kwin_core: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  randr: 0x "14"  sync: 0x "31"  damage: 0x  "11" 

Constructing a KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake code.
Constructing a KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake code.
Trying to load decoration plugin:  "/usr/lib/qt/plugins/org.kde.kdecoration2/breezedecoration.so"
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3151280
kwin_core: User timestamp, final: 'ID: 41943057 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Pulpit — Plazma" ' : 3151280
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3156029
kwin_core: User timestamp, final: 'ID: 71303352 ;WMCLASS: "firefox" : "navigator" ;Caption: "Enter A Bug - Mozilla Firefox" ' : 3156029
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3150838
kwin_core: User timestamp, final: 'ID: 62914588 ;WMCLASS: "spotify" : "spotify" ;Caption: "Spotify Premium - Linux Preview" ' : 3150838
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 1284929
kwin_core: User timestamp, final: 'ID: 41943060 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 1284929                                          
kwin_core: Activation: No client active, allowing
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3164752
kwin_core: User timestamp, final: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3164752
kwin_core: Activation, compared: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3164752 : 3164720 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1a2cd00) true false false
kwin_core: PERMITTED 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: Initializing XRender compositing
kwin_core: Vertical Refresh rate  60 Hz
kf5.kservice.sycoca: Trying to open ksycoca from "/home/stefan/.cache/ksycoca5"
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2007, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2008, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2009, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2010, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2011, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2012, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2013, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2014, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2017, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2018, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2019, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2020, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2021, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2022, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2023, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2024, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kf5.kservice.sycoca: Trying to open ksycoca from "/home/stefan/.cache/ksycoca5"
kwin_core: Effect is not supported:  "blur"
kwin_core: Session path: "/org/freedesktop/login1/session/c2"
kwin_core: Effect is not supported:  "contrast"
kwin_core: Successfully loaded built-in effect:  "dashboard"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_maximize"
kwin_core: Successfully loaded built-in effect:  "desktopgrid"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_fade"
kwin_core: Successfully loaded built-in effect:  "highlightwindow"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_dialogparent"
kwin_core: Successfully loaded built-in effect:  "kscreen"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_translucency"
kwin_core: Successfully loaded built-in effect:  "logout"
kwin_core: Successfully loaded scripted effect:  "kwin4_effect_login"
kwin_core: Successfully loaded built-in effect:  "minimizeanimation"
kwin_core: Successfully loaded built-in effect:  "presentwindows"
kwin_core: Successfully loaded built-in effect:  "screenedge"
kwin_core: Successfully loaded built-in effect:  "screenshot"
kwin_core: Successfully loaded built-in effect:  "slide"
kwin_core: Successfully loaded built-in effect:  "slidingpopups"
kwin_core: Effect is not supported:  "startupfeedback"
kwin_core: Successfully loaded built-in effect:  "zoom"
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3165943
kwin_core: User timestamp, final: 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3165943
kwin_core: Activation, compared: 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3165943 : 3164720 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3240841
kwin_core: User timestamp, final: 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3240841
kwin_core: Activation, compared: 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3240841 : 3240233 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943085 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3494525
kwin_core: User timestamp, final: 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3494525
kwin_core: Activation, compared: 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' : 3494525 : 3493430 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: KWin::Client(0x1a24390) true false false
kwin_core: PERMITTED 'ID: 41943082 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plazma" ' true
kwin_core: screens:  1 desktops:  1
kwin_core: Done.
kwin_core: User timestamp, ASN: 3529231
kwin_core: User timestamp, final: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3529231
kwin_core: Activation, compared: 'ID: 48234519 ;WMCLASS: "yakuake" : "yakuake" ;Caption: "Yakuake" ' : 3529231 : 3521957 : true 

kwin_core: screens:  1 desktops:  1
kwin_core: Done.
^Torg.kde.kactivities.lib.core: Killing the consumer
Comment 1 Thomas Lübking 2015-02-12 15:03:08 UTC
Sounds as if spotify grabs the mouse.

Please
a) install xdotool
b) cause the "hang"
c) alt+tab to a konsole window and run:

    xdotool key "XF86LogGrabInfo"
    sleep 1 # you can spare this when typing by hand ;-)
    sed -n 'H; /Printing all currently active device grabs/h; ${g;p;}' /var/log/Xorg.0.log
Comment 2 petrk 2015-02-12 20:10:47 UTC
It seems you are right, I was forced to write by hand ;) Suggest sleep -1 next time.

[   638.321] (II) Printing all currently active device grabs:
[   638.322] Active grab 0x44000012 (core) on device 'Virtual core pointer' (2):
[   638.322]       client pid 2695 /usr/share/spotify/spotify-client/spotify 
[   638.322]       at 350985 (from passive grab) (device frozen, state 6)
[   638.322]         core event mask 0x4
[   638.322]       passive grab type 4, detail 0x0, activating key 0
[   638.322]       owner-events true, kb 1 ptr 0, confine 0, cursor 0x0
[   638.322] (II) End list of active device grabs
[   923.603] (II) RADEON(0): EDID vendor "LPL", prod id 57600
[   923.603] (II) RADEON(0): Printing DDC gathered Modelines:
[   923.603] (II) RADEON(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 -hsync -vsync (49.3 kHz eP)
[   923.690] (II) RADEON(0): EDID vendor "LPL", prod id 57600
[   923.690] (II) RADEON(0): Printing DDC gathered Modelines:
[   923.690] (II) RADEON(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 -hsync -vsync (49.3 kHz eP)
[   924.023] (II) RADEON(0): EDID vendor "LPL", prod id 57600
[   924.023] (II) RADEON(0): Printing DDC gathered Modelines:
[   924.023] (II) RADEON(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 -hsync -vsync (49.3 kHz eP)
[   924.577] (II) RADEON(0): EDID vendor "LPL", prod id 57600
[   924.577] (II) RADEON(0): Printing DDC gathered Modelines:
[   924.577] (II) RADEON(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 -hsync -vsync (49.3 kHz eP)
Comment 3 Thomas Lübking 2015-02-12 20:35:08 UTC
spotify depends on qtwebkit and gtk+??
=)

That's basically a spotify bug (we can *unfortunately* not prevent clients from doing stupid things with the mouse) but given the trigger (do you btw. have to click into an inactive spotify window to do this?) and that restarting kwin "fixes" the condition, I could assume relation to bug #343430 (fixed in 5.2.1 by https://git.reviewboard.kde.org/r/122298/)

5.2.1 is released on Tue 2015-02-24 but it would oc. good to check this before.

=> Does one need a spotify account to trigger this?
Can you alternatively try kwin-git (from aur?)
Comment 4 petrk 2015-02-13 09:40:16 UTC
Better than xlib, right ?

Today I clicked button on active window and it happened, funny thing is that now once I did it there's near 100% chance to trigger it, by clicking inactive or by alt+tabbing and clicking on active.

I am unable to trigger it on login screen, or it's harder.

I will 'install' kwin-git from AUR. it will take a while on C2D though.  Can i remove other git deps from it ? It will compile whole plasma otherwise.
I need to finally setup local repo on stronger box I guess.
Comment 5 Thomas Lübking 2015-02-13 11:51:32 UTC
(In reply to Piotr Kloc from comment #4)

> Today I clicked button on active window and it happened, funny thing is that
> now once I did it there's near 100% chance to trigger it, by clicking
> inactive or by alt+tabbing and clicking on active.
???
once a client "accidentally" grabs the pointer, it's unlikely gonna release it.

> I am unable to trigger it on login screen, or it's harder.
???
what does the login screen have to do with spotify? (leaving aside that it's not managed, by kwin in this case)

> I will 'install' kwin-git from AUR. it will take a while on C2D though.  Can
> i remove other git deps from it ?
afaics the only thing you'll require as git variant should be kwindowsystem. plasma-workspace etc. is not even a real dependecy of kwin.
Comment 6 petrk 2015-02-13 12:19:28 UTC
About grabs, I meant that I was recovering with kwin restart but it was still grabing input.
By login screen I meant Spotify login screen. Sorry for misunderstandings. KDE login screen is good. (SDDM)

Thanks for specifying proper deps, it would take ages.
Comment 7 petrk 2015-02-13 14:29:46 UTC
After installing kwin-git and kwindowsystem-git problem still persists.
I doubt Spotify devs will fix it though. Last linux client was released around July 2014.
Thanks for help.
Comment 8 Thomas Lübking 2015-02-13 15:07:02 UTC
Seems a known issue, see eg.
https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Spotify-Linux-Preview-hijacks-mouse-clicks/td-p/140174

https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/BUG-Spotify-catches-all-mouse-clicks/td-p/161020/page/2

Latter suggests relation to pulseaudio (whatasurprise) and a workaround:
----------------
* Close Spotify
* Add this line to ~/.pulse/client.conf (create it if it doesn't exist):
autospawn = no
* Run this:
pulseaudio -k
----------------

Alternatively, you could allow to release grabs by a magic shortcut:

/etc/X11/xorg.conf.d/10-server.conf
Section "ServerFlags"
    Option         "DontZap" "false"
    Option         "DontVTSwitch" "false"
#       Option             "AllowDeactivateGrabs" "true" # also run setxkbmap -option grab:break_actions
#       Option             "AllowClosedownGrabs" "true"
EndSection

AllowClosedownGrabs will kill the grabber - both are considered MAJOR SECURITY RISKS - the screenlocker will be no longer a protection afterwards.

Ctrl+Alt+Keypad-Divide will trigger the release, Ctrl+Alt+Keypad-Multiply will trigger the kill - if you do that while your screen is locked THE SESSION WILL DIE and you return to the login screen.
Comment 9 Thomas Lübking 2015-02-13 15:07:23 UTC
not a KWin bug, not even inducing.