Bug 344119 - 100% CPU usage after closing konsole, after upgrading to 3.0.1/KF5.6.0 with nvidia driver
Summary: 100% CPU usage after closing konsole, after upgrading to 3.0.1/KF5.6.0 with n...
Status: RESOLVED DUPLICATE of bug 343803
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-13 14:56 UTC by Jonathan Ringstad
Modified: 2017-01-07 14:34 UTC (History)
36 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
konsole uses 100% CPU (xterm) (24.60 KB, image/png)
2015-04-06 14:59 UTC, Dmitry
Details
Screenshot of a System monitor after closing Konsole (277.55 KB, image/jpeg)
2015-10-31 17:51 UTC, Anton Belonovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Ringstad 2015-02-13 14:56:47 UTC
After upgrading to 3.0.1 and KF 5.6.0, konsole frequently eats 100% CPU usage after closing it. Even closing all konsole windows does not remedy this issue, but a `killall konsole` does.

I'm using the latest nvidia driver (346.35) on 64-bit arch with kwin and compositing enabled. VSync is enabled. I'm using a dual-monitor setup.

Attaching gdb to the process and randomly backtracing it shows that almost all the time is spent in _nv014tls () from /usr/lib/libnvidia-tls.so.346.35. I do not have konsole compiled with debug information, so I don't know where exactly this function is called from, but if that would help, I could recompile konsole with debuginfo.

Reproducible: Always

Steps to Reproduce:
1. Start konsole
2. Close konsole
3. Watch CPU usage spike to 100% (doesn't happen every time, but after 4-5 times it almost always happens)
Comment 1 Moritz Augustin 2015-03-16 10:25:06 UTC
I am also suffering from the same problem (also nvidia GPU and a dual-monitor setup). 
Quitting a konsole window leaves the process running with 100% cpu usage.
Arch Linux packages:
KDE Frameworks 5.7.0
Konsole: 3.0.1
Comment 2 Dmitry 2015-04-06 14:59:59 UTC
Created attachment 91908 [details]
konsole uses 100% CPU (xterm)

konsole uses 100% CPU (xterm) after closing konsole's window
Comment 3 Dmitry 2015-04-06 15:04:43 UTC
My PC|OS parameters:
Arch Linux 64 bit with latest updates
3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015 x86_64 GNU/Linux
Konsole 3.0.1
KDE Frameworks 5.8.0
NVidia 9800GT with proprietary drivers (nvidia-340xx 340.76-6)
AMD Phenom 810 X4 CPU
8 GB RAM
Comment 4 Andreas Blochberger 2015-04-19 16:15:19 UTC
I can confirm this. It seems to happen not so often, when the konsole is closed with "exit"
But sometimes, even then, zombie processes are there
Comment 5 Nicolas F. 2015-04-20 16:29:39 UTC
Appears to be a duplicate of this here: https://bugs.kde.org/show_bug.cgi?id=343803
Comment 6 Dmitry 2015-05-12 21:51:51 UTC
This bug still happens for Konsole 15.04.0
Comment 7 Christian González 2015-05-13 13:13:16 UTC
Same here on Kubuntu 15.04 with Konsole 3.0.1, KDE Frameworks 5.9.0 and NVIDIA Driver 340.76 (all from Kubuntu repos).

I've even tried upgrading to Plasma 5.3 beta (from Kubuntu PPA) and the problem persists.
Comment 8 Josef 2015-06-08 18:03:02 UTC
Same here on Kubuntu 15.04 with Konsole 4.14 with KDE Frameworks 5.9.0. But often, even then, zombie processes are there. CPU usage spike to 100% and pc worked slowly.
Comment 9 Larry Johnson 2015-06-13 00:22:03 UTC
Exactly same results as Jonathan Ringstad, Description above.
Comment 10 Lukas Jirkovsky 2015-07-10 16:58:14 UTC
I have the same problem, but it's not limited to konsole – sometimes ksmserver hangs, too. This happen especially when logging out. So I gues it's nVidias fault.
Comment 11 Aleksander Szczygieł 2015-08-08 13:40:21 UTC
I can confirm this bug:

Arch Linux x64
konsole 15.04.3
KDE Frameworks 5.12.0
plasma-desktop 5.3.2
nvidia-340xx 340.76 dual-monitor setup
Comment 12 Josef 2015-08-29 20:35:08 UTC
Sad. The same bug is in Kubuntu 15.10 beta1 and also persist in Kubuntu 15.04 with plasma 5.4 (Nvidia driver 346.72 with Nvidia GF - GT610)
Comment 13 Nicolas F. 2015-09-03 18:40:55 UTC
I switched away from the nvidia drivers more than a week ago, and the problem has been gone ever since. It looks like the issue is either in the nvidia driver itself, or the codepath which triggers it is only active when the system uses the nvidia driver, and not with other OpenGL implementations.
Comment 14 Jonathan Ringstad 2015-09-03 18:43:30 UTC
If a konsole developer can confirm that there is a high likelyhood of the issue being on nvidias (rather than konsoles) side, I'd be happy to do the legwork of bringing this to the attention of the nvidia developers.
Comment 15 Josef 2015-09-03 19:53:34 UTC
(In reply to Nicolas Frattaroli from comment #13)
> I switched away from the nvidia drivers more than a week ago, and the
> problem has been gone ever since. It looks like the issue is either in the
> nvidia driver itself, or the codepath which triggers it is only active when
> the system uses the nvidia driver, and not with other OpenGL implementations.

Nicolas please tell me why Ubuntu konsole with the same kernel and Nvidia driver worked without symptoms. I try to replace konsole from Ubuntu to Kubuntu and worked also ok-think the problem is in the console
Comment 16 Christian González 2015-09-03 20:12:11 UTC
(In reply to Nicolas Frattaroli from comment #13)
> I switched away from the nvidia drivers more than a week ago, and the
> problem has been gone ever since. It looks like the issue is either in the
> nvidia driver itself, or the codepath which triggers it is only active when
> the system uses the nvidia driver, and not with other OpenGL implementations.

I have the same symptoms. Using Kubuntu 15.10 + Plasma 5.4 + nvidia drivers. Switching to nouveau solves the problem.
Comment 17 Josef 2015-10-01 19:16:27 UTC
(In reply to Christian González from comment #16)
> (In reply to Nicolas Frattaroli from comment #13)
> > I switched away from the nvidia drivers more than a week ago, and the
> > problem has been gone ever since. It looks like the issue is either in the
> > nvidia driver itself, or the codepath which triggers it is only active when
> > the system uses the nvidia driver, and not with other OpenGL implementations.
> 
> I have the same symptoms. Using Kubuntu 15.10 + Plasma 5.4 + nvidia drivers.
> Switching to nouveau solves the problem.

But Ubuntu 15.10 + nvidia drivers konsole without problem. I think bug is in KDE konsole.
Comment 18 John Lund-Molfese 2015-10-09 20:45:09 UTC
I also have this problem with the proprietary Nvidia driver, version 352.41 on Kubuntu 15.10 with Plasma 5.4 and Konsole 15.08.0.
Comment 19 Raghavendra kamath 2015-10-14 14:25:46 UTC
I have the same issue with Konsole  15.08.0 , I am too on nvidia, My OS is arch
Comment 20 darktori 2015-10-25 23:01:02 UTC
I have the same issue and also use the nVidia proprietary drivers.
Comment 21 Anton Belonovich 2015-10-31 17:49:51 UTC
The same issue here on Kubuntu 15.10 and NVidia proprietary drivers. After closing Konsole it starts consuming all CPU.
Comment 22 Anton Belonovich 2015-10-31 17:51:29 UTC
Created attachment 95238 [details]
Screenshot of a System monitor after closing Konsole
Comment 23 Ali Hakki 2015-11-08 10:35:47 UTC
Arch Linux x64
plasma desktop 5.4.2
Konsole 15.08.0
nvidia 355.11

not fixed... pls confirm this bad thing.
Comment 24 mercury 2015-11-08 12:51:46 UTC
On Kubuntu 15.10 (Plasma 5.4.2, generic 4.2.0 -17) with Nvidia 352.41 on an 960M Chip I can also confirm this problem. Its a konsole process and it's consumes about 100 % CPU time.
Comment 25 Kirill 2015-11-09 10:17:23 UTC
*** This bug has been confirmed by popular vote. ***
Comment 26 szymon.pysz@gmail.com 2015-11-11 08:15:52 UTC
Confirm. :(
Comment 27 Dmitry 2015-11-11 10:24:23 UTC
I did not see this bug after migrating to Nouveau drivers and Plasma 5.
Comment 28 ogladif 2015-11-16 14:11:23 UTC
same here:
opensuse Leap 42.1 x86_64
kde plasma desktop 5.4.2 
Konsole 15.08.0 
CPU:
Intel(R) Core(TM) i7 CPU M 620  @ 2.67GHz
GPU:
NVIDIA Corporation GT216M [GeForce GT 330M] (rev a2)
nvidia Driver Version: 340.93

any help?

thank you.
Comment 29 Cor Blom 2015-11-23 15:31:31 UTC
(In reply to Lukas Jirkovsky from comment #10)
> I have the same problem, but it's not limited to konsole – sometimes
> ksmserver hangs, too. This happen especially when logging out. So I gues
> it's nVidias fault.

On openSUSE Leap 42.1 I also have this problem. Konsole has not given any problems until now. ksmserver hangs when I have been logged for a long time, as far as I can see always. It does not happen when I have been logged in for a short time. I have not been able to find what triggers this (is there a way to find this out?).

Question: is this the same bug, or should a new one been filed? Has anyone reported this to the nvidia devs?

this with the 352.55 drivers. Nouveau works without problems.
Comment 30 Rex Dieter 2015-12-01 14:39:06 UTC

*** This bug has been marked as a duplicate of bug 343803 ***
Comment 31 an999 2015-12-27 20:15:25 UTC
openSUSE leap 42.1 KDE Console closing 100% CPU usage using nvidia driver for nvidia gt 9600
Comment 32 thomi_ch 2016-01-31 17:49:31 UTC
can confirm problem here:

konsole 15.08.0
nvidia 352.63
Comment 33 Rex Dieter 2016-01-31 20:03:58 UTC
fyi, according to followups in bug #343803

This should be fixed in newer versions of nvidia driver, reportedly at least in 361.18
Comment 34 Fabrizio Ruggeri 2016-02-28 12:11:11 UTC
Considering that not all the video cards are supported by this driver, is there a chance to see this bug solved on konsole side?
Comment 35 Fabrizio Ruggeri 2016-02-28 12:11:30 UTC
Considering that not all the video cards are supported by this driver, is there a chance to see this bug solved on konsole side?
Comment 36 iraklis 2016-03-27 10:49:32 UTC
Kubuntu 16.04 beta, nvidia proprietary drivers and the problem persists.
Comment 37 James Cain 2016-03-27 15:23:03 UTC
Same issue here affecting me on latest KDE Neon image. One CPU core stays pegged at 100% after closing Konsole. Running 340.96 NVidia drivers.
Comment 38 Mike Goodwin 2016-03-27 20:01:10 UTC
As it turns out from my experience it has nothing to do with a certain driver version (per se) 

We first saw thing go away in 361.16 because libglvnd was use standard

I had issues with it again in the following driver 361.28, because that did not use libglvnd by default.

As I detailed in the parent thread (this is the dupe, the solution was for me to do the following:

NVIDIA-Linux-x86_64-361.28.run -s --dkms --install-libglvnd --glvnd-glx-client

Today I am also using 364.12 with libglvnd installed and still have no issues. (I am also testing out the new nvidia-modeset and nvidia-drm modules too and haven't had issues with this either)

It appears the issue resides in the use or non-use, rather, of GLVND.
Comment 39 Carlos 2016-05-11 11:16:52 UTC
Same here nvidia-settings:  version 352.21  (buildd@lgw01-37)  Thu Jul 23 11:50:49 UTC
Comment 40 fanisatt 2016-09-19 20:21:08 UTC
Resolved ????!!!!
I also use Nvidia 340 drivers.
All these days after I installed the new Mint KDE 18 OS , I used to run the konsole to make my system better , to take updates , to fix my fstab ,etc etc and closing this application, I actually had less than the 50% of my CPU available…
Finally I noticed that konsole was running to the backround. Lucky me !!!
This is the main reason (I guess), I found plasma desktop very heavy and I wanted to change my desktop !!!
Because of a konsole with psychological problems…….
Thanks a lot for your understanding …..!
Comment 41 antonio.guadagnin 2017-01-07 12:09:09 UTC
(In reply to fanisatt from comment #40)
> Resolved ????!!!!
> I also use Nvidia 340 drivers.
> All these days after I installed the new Mint KDE 18 OS , I used to run the
> konsole to make my system better , to take updates , to fix my fstab ,etc
> etc and closing this application, I actually had less than the 50% of my CPU
> available…
> Finally I noticed that konsole was running to the backround. Lucky me !!!
> This is the main reason (I guess), I found plasma desktop very heavy and I
> wanted to change my desktop !!!
> Because of a konsole with psychological problems…….
> Thanks a lot for your understanding …..!

It's not resolved !!!
Workaroud : start konsole under strace : "strace konsole" instead of "konsole".
Comment 42 Human Person 2017-01-07 14:34:54 UTC
This, among others, is the reason I switched to: www.trinitydesktop.org

It can coexist with current versions of KDE and applications such as kdevelop 5. It is not compatible with plasma, but for me it is an advantage.