Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Applications blocking in inactive session
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 218

PostPosted: Thu Oct 05, 2023 8:14 pm    Post subject: Applications blocking in inactive session Reply with quote

I, for many years now, routinely log into two separate KDE sessions, under two different users and use CTR+ALT+Fx to switch between. Some years ago, I have noticed that some applications in "inactive" session started to block, which was not the case before. I have noticed it first when, after switching back to inactive session, gmail in firefox started to display:

Quote:
Oops… the system encountered a problem (#001) - Retrying in 89s…
Retry now Learn more


and today, after switching back, I have found this in emerge log:
Quote:
>>> Source configured.
ebuild-ipc timed out during read after 15.012575387954712 seconds, retrying...
ebuild-ipc timed out during read after 30.022472858428955 seconds, retrying...
...
ebuild-ipc timed out during read after 2071.4833793640137 seconds, retrying...
ebuild-ipc timed out during read after 2086.492421388626 seconds, retrying...
>>> Compiling source in /var/tmp/portage/sys-libs/glibc-2.37-r7/work/glibc-2.37 ...


Has anybody else noticed this, and/or knows what is causing it? Thanks.
Back to top
View user's profile Send private message
jonys
n00b
n00b


Joined: 13 Dec 2016
Posts: 9

PostPosted: Sun Mar 17, 2024 4:41 pm    Post subject: Reply with quote

This is probably caused by systemd-logind or elogind. I don't know how to configure or disable it, though.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Mon Mar 18, 2024 8:53 am    Post subject: Reply with quote

I've had an issue with emerge hanging at the end of the install phase, usually on long emerges such as libreoffice, qtwebengine. Several emerges in parallel, ("jobs=16 ..."). The hang is a hard I/O wait; if I Ctl+Alt+Fn to a different session and issue "sync" (or "reboot", which I suspect has something equivalent to sync), that session also hangs. "htop" shows the hanging process is executing emerge python code, not any ebuild-specific work such as compilation. I've not noticed messages about "ebuild-ipc" in the emerge.log, but maybe I've different settings or just not looked in the right place.

I've not managed to even work out a strategy as to how to diagnose it.
_________________
Greybeard
Back to top
View user's profile Send private message
e8root
n00b
n00b


Joined: 09 Feb 2024
Posts: 71

PostPosted: Mon Mar 18, 2024 9:30 am    Post subject: Reply with quote

Sounds very similar to issue I had recently https://forums.gentoo.org/viewtopic-t-1167704.html
Does it happen in X11 or Wayland (KWin)?

In X11 there is a code to suspend all processes in AIGLX module. If said module is used or not might (as reported by users) have something to do with used GPU. Also from information I gathered few years ago AIGLX was still a module you could disable (or not enable) but this changed and now its the core part of the Xorg server. This issue happens because in 2006 there was a bug noticed with Xorg hanging when compositors were used and people responsible for development of Xorg didn't want to resolve this properly and opted for terrible workaround.

Thankfully for this specific issue as long as you do not use compositors Xorg server can be patched (patch provided in the linked topic). So far I didn't observe any issues with X11 after applying this patch other than enabling compositor and switching to other TTY and back does indeed cause X11 session to freeze.

At the same time Wayland (in this case KWin) should not have this issue. Or at least I didn't notice anything like that happening under Wayland compositors I tried so far and this include KWin.

That said the issue at hand might be caused by other things. Generally unfortunately switching TTYs and especially running multiple graphical sessions on different TTY is considered rare and unimportant use case by majority of Linux users and therefore such things like background processes hanging can happen. That said I am totally against concluding "it is how it is designed to work" because even if then this is a terrible design and completely against idea of having multiple TTYs. There should be no issues like that and we cannot allow issues like that go unresolved.

Please provide more details about your use case and if you use X11 or Wayland, which GPU you use, etc.
_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
jonys
n00b
n00b


Joined: 13 Dec 2016
Posts: 9

PostPosted: Mon Mar 18, 2024 12:31 pm    Post subject: Reply with quote

e8root wrote:
In X11 there is a code to suspend all processes in AIGLX module.

That's unexpected, thank you for finding this out!

I encountered a seemingly unrelated issue with similar symptoms, but it happened on a system using the Radeon r200 driver through AIGLX, so now I'm not so sure it's really unrelated: In my case I got the “ebuild-ipc timed out during read” messages without switching sessions or doing any similar actions. I'll try to investigate more if it ever happens again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum