libindicate-ERROR **: Unable to get session bus: Operation was cancelled

Bug #1021032 reported by Greg A
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libindicate
New
Low
Unassigned
pygobject (Ubuntu)
Invalid
Undecided
Unassigned
python-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

greg@greg-precise:~/Desktop/fbuntu-gtk3$ python test-indicate.py

(test-indicate.py:3825): libindicate-ERROR **: Unable to get session bus: Operation was cancelled
Trace/breakpoint trap (core dumped)

When running the following python (both in python2 and python3):

from gi.repository import Indicate
from gi.repository import Gtk
from gi.repository import GLib

mm = Indicate.Server()
mm.set_type("message.im")
#mm.set_desktop_file("/home/greg/.fbuntu/bin/FBuntu.desktop")
mm.show()

indicator = Indicate.Indicator.new_with_server(mm)
indicator.set_property("subtype", "im")
indicator.set_property("draw-attention", "true")
indicator.set_property("sender", "Joe sent you a message")

timeval = GLib.TimeVal()
timeval.tv_sec = int('1340830988768'[:-3])
indicator.set_property_time("time", timeval)

indicator.show()

Gtk.main()

Revision history for this message
Greg A (etulfetulf) wrote :

Also occurs with simplified python code:

from gi.repository import Gtk
from gi.repository import Indicate

mm = Indicate.Server()
indicator = Indicate.Indicator.new_with_server(mm)
Gtk.main()

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Python seems to be segfaulting here, weird.

Revision history for this message
Scott Kitterman (kitterman) wrote :

No evidence it's python.

Changed in python-defaults (Ubuntu):
status: New → Invalid
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

@Scott Running the piece of source code Greg supplied, it's Python that crashes with a dump, not the script. So it's either a bug in the Python core or in one of the modules (pygobject)?

Revision history for this message
WallaceM (wallace-maxted) wrote :

$ thunderbird

** (thunderbird:16755): WARNING **: Could not connect: Connection refused

(thunderbird:16755): libunity-CRITICAL **: unity-launcher.vala:154: Unable to connect to session bus: Could not connect: Connection refused

(thunderbird:16755): libindicate-ERROR **: Unable to get session bus: Could not connect: Connection refused
Trace/breakpoint trap (core dumped)

Charles Kerr (charlesk)
Changed in libindicate:
importance: Undecided → Low
Martin Pitt (pitti)
Changed in pygobject (Ubuntu):
status: New → Invalid
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.