You are not logged in.

#1 2017-06-26 21:45:35

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

KDE 5 sometimes hanging for a while, especially before showing dialogs

Hi, since last update I did, KDE 5 sometimes hangs for a while, like 20 seconds, usually before showing a dialog like "are you sure you want to delete this file" in dolphin or "save file before closing kwrite?" and stuff like that. But also sometimes when using bash in konsole.

Version info:
KDE Frameworks 5.35.0
Qt 5.9.0 (built against 5.9.0)

Any idea what this is?

Thanks!

Last edited by aardwolf (2017-06-26 21:46:16)

Offline

#2 2017-06-26 22:42:45

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,153

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Are they all actions that require a sound to play, by chance? I've seen a slight delay sometimes the first time when the prompt happens when (I assume) KDE is initializing the Pulse sound library. Maybe there's something wrong with sound integration with your KDE?

I cannot reproduce your specific problem, by the way.

Offline

#3 2017-06-26 22:51:21

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Not all involve sound. Another is locking the screen. It takes 10-20 seconds before the light blue overlay appears. The only thing in common is it's KDE related things, e.g. no problems at all with warning dialogs of geany or other non-KDE programs.

It started doing this since last pacman -Syu around a week ago.

EDIT: under "Phonon Audio and Video", under "Backend", there is only one backend: "Phonon VLC". Is that normal? Is my video player the main audio backend of KDE? What is the relationship between Phonon and Pulseaudio?

EDIT2: testing out audio notifications in the "Nofications" settings of KDE always works immediately, with the little play button in there. But consistently whenever opening kwrite, typing something in it, not saving, and closing kwrite, then it freezes while it takes 10 seconds for the "want to save?" dialog to appear.

Last edited by aardwolf (2017-06-26 23:12:51)

Offline

#4 2017-06-26 23:24:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,416

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Do any of the things mentioned here[1] apply? Post the outputs of the commands I requested there, if it isn't something obvious like the network drive.

[1] https://bbs.archlinux.org/viewtopic.php?id=227577

Additionaly throw in a

hostnamectl status

Although likely to be slightly OT: Yes that VLC appears there is normal (vlc isn't just a video player it's also a media library to be used by other applications) Phonon is the common interface all KDE applications use to produce sound, Phonon and Pulseaudio only have cursory relation in that phonon will allow you to set the default output devices for KDE applications, actual playback still happens via the library (vlc in this case) there'd also be a gstreamer backend for phonon available. There are some historical and API stability reasons why Phonon exists and is capable of interfacing with different backends

Last edited by V1del (2017-06-26 23:34:28)

Online

#5 2017-06-26 23:59:36

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

No network drive, and both Plasma Search and Gwenview work fine without delay for me

Which part of the printenv output is the interesting part for this?

"ls -l ~/.config/systemd/user": this file doesn't exist for me. Even the directory "~/.config/systemd" doesn't exist. systemd is indeed in use in my system though (unfortunately ;p).

hostnamectl status:
   Static hostname: [redacted]                                                                                                                                   
         Icon name: computer-desktop                                                                                                                       
           Chassis: desktop                                                                                                                                 
        Machine ID: [hex digits, redacted]                                                                                                       
           Boot ID: [hex digits, redacted]                                                                                                       
  Operating System: Arch Linux                                                                                                                             
            Kernel: Linux 4.11.5-1-ARCH                                                                                                                     
      Architecture: x86-64

Thanks!

Offline

#6 2017-06-27 07:55:24

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Static hostname: [redacted]

That is as worthless as it gets in this context.
V1del asked for specific information and you only provide the generic part of the output.

Smells like a nofitication issue, still.
How does

notify-send test

behave? Instant notification?

Online

#7 2017-06-27 08:06:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,416

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

The DBUS_SESSION_BUS_ADDRESS is the important bit. And what i wanted to find out with the hostnamectl is what you hostname is, since you redacted it I hope it is something different than localhost. Also we've been on 4.11.6 for a while, have you simply not updated yet or did you update and haven't rebooted into the new kernel? Do that if that is the case. You might want to post your pacman.log, and try to use [ code ]  tags when posting command output or log files

Last edited by V1del (2017-06-27 08:10:39)

Online

#8 2017-06-27 14:42:14

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,153

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

aardwolf wrote:

It started doing this since last pacman -Syu around a week ago.

aardwolf wrote:

Kernel: Linux 4.11.5-1-ARCH

That's odd. Are you ignoring packages? This should be kernel 4.11.6.

Offline

#9 2017-06-27 15:06:09

kicka
Member
From: Sicily / Italy
Registered: 2012-10-18
Posts: 26

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

I also have the same problem, I'm on openbox but i use dolphin as file manager and every time i delete something it  hangs out around 20 second before giving me the "are you sure you want to delete this file". This happens always the first time i delete a file in a specific dolphin session. I mean, if i close dolphin, and reopen a new one, the first time i delete somethin, the delay is there again.

my DBUS is

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

notify-send test doesn't give any sound at all.

PS: the sound per se, is working great, just it doesn't play any sound with notify-send.

At the moment I have disabled the confirmation dialog for deleting files under dolphin, but it's not a solution...

Last edited by kicka (2017-06-28 10:16:42)

Offline

#10 2017-06-27 15:14:23

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

There isn't supposed to be a sound, but some dialog would be great.
Openbox however doesn't provide a notification server at all, you'd install sth. linke dunst for that (the idea is that KDE tries to send a notification and times out on such failing attempt)

Online

#11 2017-06-27 16:18:01

kicka
Member
From: Sicily / Italy
Registered: 2012-10-18
Posts: 26

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

No dialog appears during notify-send either.

I looked at "dunst", seems to me like "tint2" (which i use).

The reason you came out with, seems reasonable, but i have this configuration (openbox/kde) since around 6 years now, openbox never managed notification, but KDE never bothered... Maybe with the last major upgrade (one month ago ...) it became more ... strictly... i don't know..


EDITED: My fault, "dunst" is not somethin like "tint2", but their screenshot is not clear enough in my opinion...

Last edited by kicka (2017-06-27 16:21:20)

Offline

#12 2017-06-27 16:26:16

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,154

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Offline

#13 2017-06-27 16:31:24

kicka
Member
From: Sicily / Italy
Registered: 2012-10-18
Posts: 26

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

OK, i installed dunst, loaded at startup, rebooted,...

[drums rolling music...]

Now dolphin doesn't hang up anymore!!!

PS:

In my quest for this problem solution I allready readed the post suggested by arojas, but nothin have worked,... till "dunst"!!

Thank you.

Last edited by kicka (2017-06-27 16:33:41)

Offline

#14 2017-06-27 19:39:13

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

seth wrote:

Static hostname: [redacted]

That is as worthless as it gets in this context.
V1del asked for specific information and you only provide the generic part of the output.

Oops, nothing personal. It's not localhost but the name I gave this PC.

seth wrote:

That's odd. Are you ignoring packages? This should be kernel 4.11.6.

Maybe it was 2 weeks ago smile Kernel is 4.11.6 now when running pacman -Syu again today.

Last edited by aardwolf (2017-06-27 19:43:03)

Offline

#15 2017-06-27 19:58:25

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Did you try the behavior of notify-send?

Online

#16 2017-06-27 22:03:03

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

seth wrote:

Did you try the behavior of notify-send?

Oops, I intended to reply it but accidently removed that part while editing the post.

I wanted to say:

Bingo! That's it! notify-send test hangs for 10-20 seconds, then returns the prompt, with no message visible anywyere.

I don't actually care about the message smile But I care a lot about the hanging, especially as indeed it also happens on any tab autocompletion in konsole hmm

Last edited by aardwolf (2017-06-27 22:04:07)

Offline

#17 2017-06-27 22:06:39

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Online

#18 2017-06-27 22:09:30

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

A post from 2002? smile

I did see the links to bugs above. I tried installing notify-osd as suggested in one, but so far notice no difference. Maybe after reboot it'll work...

Offline

#19 2017-06-27 22:12:05

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Ok, bbq fucked me - i meant post #12 here ;-)
Afair you'll have to re-login at least.

Online

#20 2017-06-27 22:17:42

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

no luck with notify-osd sad

how does such notification tool connect with KDE? Can I program a dummy tool that makes KDE happy?

Thanks.

Offline

#21 2017-06-27 22:20:30

seth
Member
Registered: 2012-09-03
Posts: 59,646

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

First check your session bus:

echo $DBUS_SESSION_BUS_ADDRESS

Online

#22 2017-06-27 22:23:44

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 304

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Well, I found how to fix it now:

In "System Tray Settings", I had under "Entries" set notifications to "hidden".

If I enable them again, then everything is fast! But it does show those huge distracting annoying notifications boxes I don't want to see there, which I set to hidden for a reason!

edit: the output:

$echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus

Last edited by aardwolf (2017-06-27 22:26:17)

Offline

#23 2017-06-29 03:46:22

Schala
Member
Registered: 2012-02-14
Posts: 72
Website

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

aardwolf wrote:

Hi, since last update I did, KDE 5 sometimes hangs for a while, like 20 seconds, usually before showing a dialog like "are you sure you want to delete this file" in dolphin or "save file before closing kwrite?" and stuff like that. But also sometimes when using bash in konsole.

Version info:
KDE Frameworks 5.35.0
Qt 5.9.0 (built against 5.9.0)

Any idea what this is?

Thanks!

I've been waiting forever for help with this! I'm glad to see that, at least, someone else has the same issue. And yes, disabling popup notifications fixes the problem. Thing is I don't want popups though.

Last edited by Schala (2017-06-29 05:09:52)


Hardware: Gigabyte X570 AORUS Pro, AMD Ryzen 5900X, Nvidia GTX 1080, 32 GB DDR4 RAM
Choice software: Arch Linux 64-bit with KDE desktop / Windows 11 Home 64-bit

Offline

#24 2017-06-29 12:29:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,027

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Since the issue seems to be related to having a notifcation-daemon installed, please verify if you have kdebase-runtime installed.

(like notify-osd kdebase-runtime provides noticiation-daemon )

If not, install it and check if that helps.

Last edited by Lone_Wolf (2017-06-29 12:29:51)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#25 2017-07-03 00:11:40

Technicus
Member
Registered: 2016-10-15
Posts: 31

Re: KDE 5 sometimes hanging for a while, especially before showing dialogs

Very similar problem here also.  I have Arch installed on two machines, and I keep them updated.  They both exhibit the same behavior with KDE applications: Kate, Dolphin, Konsole, KDevelop, . . .  The problem began nearly a month or so ago.  I have LXDE as the desktop environment.  Every time after starting any of these applications, the program will hang for some time, and it works ok after the hang.  I have been updating everyday hoping there will be a fix, but not yet, so this is my first time actively trying to find a solution.

I also had problems with the nm-applet.

After reading through the posts and following links to similar problems I entered the following into konsole:

sudo pacman -S dunst notify-osd kdebase-runtime noticiation-daemon

Then I rebooted, so far the problem seems to have been resolved.

Last edited by Technicus (2017-07-03 00:31:21)

Offline

Board footer

Powered by FluxBB