Several XFCE applications appear unresponsive after communicating with a daemon
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| One Hundred Papercuts |
High
|
Unassigned | |||
| thunar |
Invalid
|
High
|
|||
| xfce4-appfinder |
Fix Released
|
High
|
|||
| xfce4-power-manager |
Fix Released
|
High
|
|||
| xfce4-settings |
Fix Released
|
High
|
|||
| xfce4-volumed-pulse |
Fix Released
|
Undecided
|
Unassigned | ||
| thunar (Ubuntu) |
High
|
Unassigned | |||
| xfce4-appfinder (Ubuntu) |
High
|
Unassigned | |||
| xfce4-power-manager (Ubuntu) |
High
|
Unassigned | |||
| xfce4-settings (Ubuntu) |
High
|
Unassigned | |||
| xfce4-volumed (Ubuntu) |
High
|
Unassigned | |||
Bug Description
Several programs in Xfce have a daemon mode call gtk_init() before fork()ing.
This is unsafe, and when it goes wrong this will typically manifest as the daemon hanging shortly after forking, and appearing to simply do nothing at all.
Related branches
| Martin Spacek (mspacek) wrote : | #1 |
| Steve Dodier-Lazaro (sidi) wrote : | #2 |
@ Xubuntu Developers:
Please, could you give your thoughts on this?
It severely affects packages beyond the one that causes the flaw.
| Changed in dbus (Ubuntu): | |
| importance: | Undecided → Critical |
| Changed in dbus (Ubuntu): | |
| status: | New → Confirmed |
Related Xfce4-dev mailing list entry:
https:/
| summary: |
- DBus communication problems affecting multiple packages + Applications appear to do nothing after communicating with the DBus + fork() function |
| summary: |
- Applications appear to do nothing after communicating with the DBus - fork() function + Applications appear to do nothing after communicating with DBus |
| summary: |
- Applications appear to do nothing after communicating with DBus + Several applications appear irresponsible after communicating with DBus |
| description: | updated |
| Changed in xfce4-volumed (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → High |
| importance: | High → Critical |
| Changed in xfce4-settings (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Critical |
| status: | Triaged → Confirmed |
| Changed in xfce4-volumed (Ubuntu): | |
| status: | Triaged → Confirmed |
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → Critical |
| Changed in dbus (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in xfce4-appfinder (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → Critical |
| Changed in policykit-1 (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → Critical |
| importance: | Critical → High |
| Changed in xfce4-appfinder (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-settings (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-volumed (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-power-manager (Ubuntu): | |
| importance: | Critical → High |
| Changed in thunar (Ubuntu): | |
| importance: | Undecided → High |
| status: | New → Confirmed |
| Changed in xfce4-volumed-pulse (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| summary: |
- Several applications appear irresponsible after communicating with DBus + Several applications appear irresponsible after using the gtk_init() + daemon mode |
| Changed in gdk-pixbuf (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| importance: | High → Critical |
| Changed in policykit-1 (Ubuntu): | |
| importance: | High → Critical |
| Changed in xfce4-appfinder (Ubuntu): | |
| importance: | High → Critical |
| Changed in xfce4-volumed-pulse (Ubuntu): | |
| importance: | High → Critical |
| Changed in xfce4-power-manager (Ubuntu): | |
| importance: | High → Critical |
| Changed in thunar (Ubuntu): | |
| importance: | High → Critical |
| Changed in xfce4-settings (Ubuntu): | |
| importance: | High → Critical |
| Changed in xfce4-volumed (Ubuntu): | |
| importance: | High → Critical |
| Changed in gdk-pixbuf (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-volumed-pulse (Ubuntu): | |
| importance: | Critical → High |
| Changed in policykit-1 (Ubuntu): | |
| importance: | Critical → High |
| Changed in thunar (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-appfinder (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-power-manager (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-settings (Ubuntu): | |
| importance: | Critical → High |
| Changed in xfce4-volumed (Ubuntu): | |
| importance: | Critical → High |
| summary: |
- Several applications appear irresponsible after using the gtk_init() - daemon mode + Several applications appear irresponsible after communicating with a + daemon |
| summary: |
- Several applications appear irresponsible after communicating with a - daemon + XFCE applications appear irresponsible after communicating with a daemon |
| no longer affects: | dbus (Ubuntu) |
| description: | updated |
| tags: |
added: i386 utopic removed: apport-bug |
| summary: |
- XFCE applications appear irresponsible after communicating with a daemon + Several XFCE applications appear irresponsible after communicating with + a daemon |
Several programs have a daemon mode call gtk_init() before fork()ing.
This is unsafe, and when it goes wrong this will typically manifest as the daemon hanging shortly after forking, and appearing to simply do nothing at all.
Please check this bug is not affecting PolicyKit.
| Changed in policykit-1 (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in gdk-pixbuf (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in thunar (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in xfce4-appfinder (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in xfce4-settings (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in xfce4-volumed (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in xfce4-volumed: | |
| status: | New → Confirmed |
| Changed in xfce4-volumed-pulse: | |
| status: | New → Confirmed |
| no longer affects: | xfce4-volumed-pulse (Ubuntu) |
| Changed in hundredpapercuts: | |
| importance: | Undecided → High |
| status: | New → Triaged |
| Steve Dodier-Lazaro (sidi) wrote : Re: Several XFCE applications appear irresponsible after communicating with a daemon | #6 |
Thanks for the triaging effort! As far as I know xfce4-volumed-pulse has a fix committed already though I'll let mrpouit confirm. The ALSA xfce4-volumed never had the issue.
| Changed in xfce4-volumed: | |
| status: | Confirmed → Invalid |
| Changed in policykit-1: | |
| importance: | Unknown → High |
| status: | Unknown → Confirmed |
| Changed in gdk-pixbuf: | |
| importance: | Unknown → High |
| status: | Unknown → New |
| Changed in thunar: | |
| importance: | Unknown → High |
| status: | Unknown → Confirmed |
| Changed in xfce4-appfinder: | |
| importance: | Unknown → High |
| status: | Unknown → Confirmed |
| Changed in xfce4-power-manager: | |
| importance: | Unknown → High |
| status: | Unknown → Confirmed |
| Changed in xfce4-settings: | |
| importance: | Unknown → High |
| status: | Unknown → Confirmed |
|
|
#15 |
commit 216a5b750ccbe9f
Author: Eric Koegel <email address hidden>
Date: Thu Jun 26 19:46:46 2014 +0300
Fork before gtk/dbus init
https:/
has the rational for the change.
http://
So it shouldn't have that issue anymore. Do you still have startup issues with xfpm using the code from git/master? We haven't done a dev release with the commit in yet.
|
|
#18 |
Created attachment 5567
Fork before gtk/dbus init
Hey, found another fork bug report. This should fix it in xfsettingsd.
| Changed in xfce4-settings: | |
| status: | Confirmed → Fix Released |
| awol (awol99) wrote : Re: [Bug 1347272] Re: Several XFCE applications appear irresponsible after communicating with a daemon | #21 |
A Thousand Thanks.
in English we would say "unresponsive" rather than "irresponsible".
On Tue, Jul 29, 2014 at 8:15 AM, Bug Watch Updater <
<email address hidden>> wrote:
> ** Changed in: xfce4-settings
> Status: Confirmed => Fix Released
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (973778).
> https:/
>
> Title:
> Several XFCE applications appear irresponsible after communicating
> with a daemon
>
> Status in pixbuf library for gtk+:
> New
> Status in One Hundred Papercuts:
> Triaged
> Status in System policy:
> Confirmed
> Status in Thunar file manager:
> Confirmed
> Status in xfce4-appfinder:
> Confirmed
> Status in Xfce4 Power Manager:
> Confirmed
> Status in xfce4-settings:
> Fix Released
> Status in Volume management daemon for XFCE 4:
> Invalid
> Status in Volume management daemon for Xfce:
> Confirmed
> Status in “gdk-pixbuf” package in Ubuntu:
> Triaged
> Status in “policykit-1” package in Ubuntu:
> Triaged
> Status in “thunar” package in Ubuntu:
> Triaged
> Status in “xfce4-appfinder” package in Ubuntu:
> Triaged
> Status in “xfce4-
> Triaged
> Status in “xfce4-settings” package in Ubuntu:
> Triaged
> Status in “xfce4-volumed” package in Ubuntu:
> Triaged
>
> Bug description:
> Several programs in Xfce have a daemon mode call gtk_init() before
> fork()ing.
>
> This is unsafe, and when it goes wrong this will typically manifest as
> the daemon hanging shortly after forking, and appearing to simply do
> nothing at all.
>
> To manage notifications about this bug go to:
> https:/
>
--
Sent from my recycled old computer.
[:C≡N:]− , I ≤ 2πrEħc ln 2
| Alistair Buxton (a-j-buxton) wrote : Re: Several XFCE applications appear irresponsible after communicating with a daemon | #22 |
Hi Alberto,
Thanks for compiling all this information. There's a couple of pieces missing though.
This bug doesn't happen as far as I know with vanilla Gtk. It happens when the Unity Gtk extensions (dbusmenu and overlay scrollbar) are loaded. They are Gtk plugins and one or both of them open dbus connections as soon as they are loaded. They are loaded at Gtk init and that dbus connection becomes invalid after the fork, but Gtk tries to reuse it anyway. That causes it to hang.
As a result of the above, this bug only happens if you have Unity installed alongside the affected software eg Xfce. So a good way to spot duplicates is to ask if the user also has Unity installed if they are not using it.
Another thing is that those Gtk extensions should not be loaded at all outside of Unity. There is a bug about that: https:/
Finally, we don't have a metabug like this upstream at Xfce because bugzilla is not good at handling those types of bugs, but we are aware of the issue and there is a thread on the mailing list about it. https:/
The conclusion we reached is that even though this is ultimately caused by Unity extensions, each application should be fixed to fork *before* it calls Gtk init, because you never know what extra plugins might get loaded and subsequently break.
| summary: |
- Several XFCE applications appear irresponsible after communicating with - a daemon + Several XFCE applications appear unresponsive after communicating with a + daemon |
| no longer affects: | xfce4-volumed-pulse (Ubuntu) |
| no longer affects: | xfce4-volumed |
| Martin Spacek (mspacek) wrote : | #23 |
@ Alistair,
I don't explicitly have Unity installed (I'm on Xubuntu 14.04), but a search via synaptic shows that I do have these Unity-related packages installed, possibly as dependencies for some piece of software I was compiling:
gir1.2-unity-5.0 7.1.4+14.
libunity-
libunity-
libunity9 7.1.4+14.
unity-gtk-
unity-gtk2-module 0.0.0+14.
unity-gtk3-module 0.0.0+14.
Also, I don't have any overlay-scrollbar packages installed, but I do have these dbusmenu packages installed:
gir1.2-
libdbusmenu-qt-dev 0.9.3+14.
libdbusmenu-qt2 0.9.3+14.
| Changed in gdk-pixbuf (Ubuntu): | |
| status: | Triaged → Invalid |
| no longer affects: | gdk-pixbuf (Ubuntu) |
| no longer affects: | gdk-pixbuf |
| Alistair Buxton (a-j-buxton) wrote : | #24 |
@mspacek
The unity-gtk-module packages are the trouble makers in this particular case, per the "UBUNTU_MENUPROXY should not be set in Xfce" bug. But that's only half the problem and having those loaded in Xfce causes other problems. The late fork() problems can potentially be triggered by other bugs also, so both these bugs need to be independently fixed. As such, I've unset the duplicate.
| Martin Spacek (mspacek) wrote : | #25 |
Should bug #1222356 (** (apport-gtk:3020): WARNING **: Couldn't register with accessibility bus: Did not receive a reply.) perhaps be marked as a duplicate?
|
|
#26 |
Thanks for confirming it Jani, making resolved.
| Changed in xfce4-power-manager: | |
| status: | Confirmed → Fix Released |
The string gtk_init does not appear in polkit codebase.
| no longer affects: | policykit-1 (Ubuntu) |
| no longer affects: | policykit-1 |
Alberto, the reports which are related to polkit/pkexec and have been marked as duplicate should be unlinked then, right?
| Georg Altmann (george-george-net) wrote : | #29 |
Any chance to get the bugfix into trusty?
xfce-bugs #11045 is fixed, see
https:/
commit 791f02416560f5a
Author: Eric Koegel <email address hidden>
Date: Mon Jul 28 09:03:30 2014 +0300
http://
| Robin McCorkell (xenopathic) wrote : | #30 |
Seconded for getting this into Trusty. This bug has caused me so much grief over the past few months...
|
|
#31 |
*** Bug 11036 has been marked as a duplicate of this bug. ***
|
|
#34 |
Appfinder was ported to GDbus, so this problem should be solved: 4a065a10945c72c
Released in 4.11.0
| Simon Steinbeiß (ochosi) wrote : | #32 |
All this has been fixed via this SRU for trusty: https:/
Furthermore this has all been taken care of upstream, so this should not cause any further troubles for anyone.
| Changed in xfce4-appfinder (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in xfce4-settings (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in xfce4-volumed (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in xfce4-volumed-pulse: | |
| status: | Confirmed → Fix Released |
|
|
#33 |
Where did you see that in the code? As far as I can see, thunar daemonizes only after init.
| Changed in thunar (Ubuntu): | |
| status: | Triaged → Fix Released |
| Changed in hundredpapercuts: | |
| status: | Triaged → Fix Released |
| Changed in thunar: | |
| status: | Confirmed → Invalid |
| Changed in xfce4-appfinder: | |
| status: | Confirmed → Fix Released |
|
|
#35 |
Uhm, are you asking me? This was super-long ago, and I never really got all
the dbus stuff... Anyways, I don't remember. :)
//Snild
On Feb 22, 2015 9:45 PM, "Simon Steinbeiß" <email address hidden>
wrote:
> Appfinder was ported to GDbus, so this problem should be solved:
> 4a065a10945c72c
>
> Released in 4.11.0
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1048805).
> https:/
>
> Title:
> Several XFCE applications appear unresponsive after communicating with
> a daemon
>
> Status in One Hundred Papercuts:
> Fix Released
> Status in Thunar file manager:
> Invalid
> Status in xfce4-appfinder:
> Fix Released
> Status in Xfce4 Power Manager:
> Fix Released
> Status in xfce4-settings:
> Fix Released
> Status in Volume management daemon for Xfce:
> Fix Released
> Status in thunar package in Ubuntu:
> Fix Released
> Status in xfce4-appfinder package in Ubuntu:
> Fix Released
> Status in xfce4-power-manager package in Ubuntu:
> Fix Released
> Status in xfce4-settings package in Ubuntu:
> Fix Released
> Status in xfce4-volumed package in Ubuntu:
> Fix Released
>
> Bug description:
> Several programs in Xfce have a daemon mode call gtk_init() before
> fork()ing.
>
> This is unsafe, and when it goes wrong this will typically manifest as
> the daemon hanging shortly after forking, and appearing to simply do
> nothing at all.
>
> To manage notifications about this bug go to:
> https:/
>
*** Bug 11037 has been marked as a duplicate of this bug. ***
| Martin Spacek (mspacek) wrote : | #37 |
Just thought I'd mention that this problem does seem to have gone away for me in trusty. Not sure when that happened, but I'm glad it's (apparently) fixed. Thanks!
| Luke Schlather (luke2760) wrote : | #38 |
Just upgraded to trusty and the problem is still here. I mostly notice it opening the xfrun4 prompt. I have noticed if I reboot it will sometimes be fine.
Apparently fixed in 4.11- https:/
Will 4.12 be coming to Trusty?
| Lastique (andysem) wrote : | #39 |
I'm having the problem in wily with xfce4-volumed - it doesn't react to multimedia volume keys.


If this turns out to have anything to do with Bug #1314782, then the issue lies not in D-Bus but in Ubuntu patches to GTK+ conflicting with Xubuntu patches to XFCE apps (or possibly with the apps originally). I don't remember the exact details but whoever triages/ investigates this should get in touch with the Xubuntu team.