Bug 357609

Summary: Plasma 5 desktop hangs after exiting libreoffice writer
Product: [Plasma] plasmashell Reporter: Vadym Krevs <vkrevs>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aspotashev, bshah, plasma-bugs-null, regboxemg
Priority: NOR    
Version First Reported In: 5.5.2   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Contents of .xsession-errors
Output of ps -e f before writer startup
Output of ps -e f after writer startup and before plasma hang
Output of ps -e f after exiting writer and ensuing plasma hang
Requested output of "info threads" and "thread apply all bt"

Description Vadym Krevs 2016-01-06 09:36:35 UTC
I've recently upgraded from openSUSE 13.2 to Leap 42.1 and installed the latest KDE Frameworks/Applications from openSUSE OBS:
http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_42.1/
http://download.opensuse.org/repositories/KDE:/Applications/openSUSE_Leap_42.1/

My PC has an Nvidia card with proprietary drivers, and dual full HD monitors.

It appears that starting any LibreOffice application, maximizing it, then restoring it, then exiting causes the plasma desktop to hang. The mouse cursor is still visible, and responds to mouse movement, however plasma widgets, panel, desktop no longer react to any mouse events. Ctrl-Esc and Alt-F2 don't seem to do anything.

This behaviour is only observed when libreoffice is using the KDE integration (libreoffice-kde4-5.0.2.2-1.2.x86_64). If it is uninstalled, then libreoffice with GTK3 ui works just fine. 

I've tried all the workarounds listed in https://forums.opensuse.org/showthread.php/511086-LibreOffice-5-freezes-system/ (like clearing libreoffice config directory, etc) to no avail. 









$ rpm -qa | egrep "framework|plasma|libreoffice" | sort
frameworkintegration-plugin-5.17.0-85.2.x86_64
libreoffice-5.0.2.2-1.2.x86_64
libreoffice-base-5.0.2.2-1.2.x86_64
libreoffice-base-drivers-mysql-5.0.2.2-1.2.x86_64
libreoffice-branding-upstream-5.0.2.2-1.2.noarch
libreoffice-calc-5.0.2.2-1.2.x86_64
libreoffice-calc-extensions-5.0.2.2-1.2.x86_64
libreoffice-draw-5.0.2.2-1.2.x86_64
libreoffice-filters-optional-5.0.2.2-1.2.x86_64
libreoffice-gnome-5.0.2.2-1.2.x86_64
libreoffice-gtk3-5.0.2.2-1.2.x86_64
libreoffice-icon-theme-breeze-5.0.2.2-1.2.noarch
libreoffice-icon-theme-galaxy-5.0.2.2-1.2.noarch
libreoffice-icon-theme-hicontrast-5.0.2.2-1.2.noarch
libreoffice-icon-theme-mint-5.0.2-1.3.noarch
libreoffice-icon-theme-oxygen-5.0.2.2-1.2.noarch
libreoffice-icon-theme-sifr-5.0.2.2-1.2.noarch
libreoffice-icon-theme-tango-5.0.2.2-1.2.noarch
libreoffice-impress-5.0.2.2-1.2.x86_64
libreoffice-kde4-5.0.2.2-1.2.x86_64
libreoffice-l10n-en-5.0.2.2-1.2.noarch
libreoffice-mailmerge-5.0.2.2-1.2.x86_64
libreoffice-math-5.0.2.2-1.2.x86_64
libreoffice-pyuno-5.0.2.2-1.2.x86_64
libreoffice-share-linker-1-2.2.noarch
libreoffice-templates-en-3.3-15.6.noarch
libreoffice-templates-labels-a4-1.0.1-12.1.noarch
libreoffice-templates-labels-letter-1.0.1-12.1.noarch
libreoffice-templates-presentation-layouts-3.3-12.4.noarch
libreoffice-writer-5.0.2.2-1.2.x86_64
libreoffice-writer-extensions-5.0.2.2-1.2.x86_64
patterns-openSUSE-kde_plasma-20150918-12.1.x86_64
plasma5-addons-5.5.2-74.2.x86_64
plasma5-addons-kimpanel-5.5.2-74.2.x86_64
plasma5-addons-lang-5.5.2-74.2.noarch
plasma5-desktop-5.5.2-128.1.x86_64
plasma5-desktop-branding-openSUSE-13.3-105.2.x86_64
plasma5-desktop-lang-5.5.2-128.1.noarch
plasma5-pa-5.5.2-23.2.x86_64
plasma5-pa-lang-5.5.2-23.2.noarch
plasma5-pk-updates-0.2-6.2.x86_64
plasma5-session-5.5.2-54.1.noarch
plasma5-workspace-5.5.2-158.1.x86_64
plasma5-workspace-branding-openSUSE-13.3-105.2.x86_64
plasma5-workspace-lang-5.5.2-158.1.noarch
plasma5-workspace-libs-5.5.2-158.1.x86_64
plasma5-workspace-wallpapers-5.5.2-50.1.noarch
plasma-framework-5.17.0-92.2.x86_64
plasma-framework-components-5.17.0-92.2.x86_64
plasma-framework-lang-5.17.0-92.2.noarch
plasma-framework-private-5.17.0-92.2.x86_64
plasma-nm5-5.5.2-89.1.x86_64
plasma-nm5-lang-5.5.2-89.1.noarch
plasma-nm5-openconnect-5.5.2-89.1.x86_64
plasma-nm5-openvpn-5.5.2-89.1.x86_64
plasma-nm5-pptp-5.5.2-89.1.x86_64
plasma-nm5-vpnc-5.5.2-89.1.x86_64
python-kde4-plasma-4.14.3-2.11.x86_64


Reproducible: Always

Steps to Reproduce:
1. Start libreoffice writer, double click on the title bar to maximize, click on the File menu
2. Double click on the title bar to un-maximize, click on the File menu again
3. Click on the Exit menu to quit.


Actual Results:  
Plasma hangs and stops reacting to any mouse events.

Expected Results:  
Plasma does not hang after exiting libreoffice writer.

Outputs of "ps -e f" after KDE startup, after libreoffice writer startup (before the hang) and after libreoffice writer exit (after the hang) along with contents of .xsession-errors are attached.
Comment 1 Vadym Krevs 2016-01-06 09:37:20 UTC
Created attachment 96480 [details]
Contents of .xsession-errors
Comment 2 Vadym Krevs 2016-01-06 09:38:00 UTC
Created attachment 96481 [details]
Output of ps -e f before writer startup
Comment 3 Vadym Krevs 2016-01-06 09:38:29 UTC
Created attachment 96482 [details]
Output of ps -e f after writer startup and before plasma hang
Comment 4 Vadym Krevs 2016-01-06 09:39:06 UTC
Created attachment 96483 [details]
Output of ps -e f after exiting writer and ensuing plasma hang
Comment 5 David Edmundson 2016-01-08 13:16:02 UTC
Thanks, but I need to know where in plasma it's stuck

The easiest way to do that is to wait for it to be frozen, then from a terminal

sudo gdb `pidof plasmashell`

then type "bt" to get a backtrace which you can include here.

Till then I have nothing to go on.
Comment 6 Vadym Krevs 2016-01-08 14:09:33 UTC
Created attachment 96526 [details]
Requested output of "info threads" and "thread apply all bt"
Comment 7 Vadym Krevs 2016-01-08 14:11:54 UTC
Requested output of "info threads" and "thread apply all bt".
Comment 8 David Edmundson 2016-01-19 12:33:23 UTC
Thread 1 (the main thread) doesn't seem frozen from the backtrace, it's busy doing something..
Comment 9 David Edmundson 2021-02-22 23:37:19 UTC
There's no actionable information in this, and the report is super old. 
No point keeping this open. If this issue hasn't gone away I'm sure there's a new report by now.
Comment 10 emg81 2023-05-18 14:12:19 UTC
(In reply to David Edmundson from comment #9)
> There's no actionable information in this, and the report is super old. 
> No point keeping this open. If this issue hasn't gone away I'm sure there's
> a new report by now.

The issue is still there. 
When I exit LibreOffice Writer, Plasma is unresponsible for a few seconds.
I have it for quite some time (maybe about a year or more). Should I file another bug?