glib logging from unity-panel-service is never seen in ~/.xsession-errors

Bug #815715 reported by Daniel van Vugt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Low
Unassigned
unity (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I realized a while ago that g_debug, g_warning etc had no effect if called from unity-panel-service. unity-panel-service has always contained such calls, but the output mysteriously never appears in ~/.xsession-errors

The problem seems obvious -- it's stdout (1) and stderr (2) descriptors are closed:

ls -l /proc/`pidof unity-panel-service`/fd
total 0
lrwx------ 1 dan dan 64 2011-07-25 15:10 0 -> /dev/null
lrwx------ 1 dan dan 64 2011-07-25 15:10 1 -> /dev/null
...
lrwx------ 1 dan dan 64 2011-07-25 15:10 2 -> /dev/null
...

WORKAROUND:
Open a Terminal and run this:
  env PANEL_USE_LOCAL_SERVICE=1 unity --replace
Then you will see all the missing messages in the terminal.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.16-0ubuntu1~natty1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,vpswitch,place,imgpng,regex,unitymtgrabhandles,grid,session,snap,mousepoll,resize,move,animation,expo,ezoom,workarounds,resizeinfo,wall,staticswitcher,fade,scale,unityshell]
Date: Mon Jul 25 15:03:20 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in unity:
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → In Progress
Changed in unity (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm, no quick fix I can see. Closing stdout/stderr appears to be a "feature" of g_dbus_proxy_new_for_bus etc.

Changed in unity:
assignee: Daniel van Vugt (vanvugt) → nobody
status: In Progress → New
Changed in unity (Ubuntu):
assignee: Daniel van Vugt (vanvugt) → nobody
status: In Progress → New
description: updated
Omer Akram (om26er)
Changed in unity:
importance: Undecided → Low
Changed in unity (Ubuntu):
importance: Undecided → Low
Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Stephen M. Webb (bregma)
tags: added: unity-panel-service
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.