Subject: Fix a segfault when the connection is dropped From: Giuseppe Scrivano gscrivano@gnu.org Mon Mar 11 09:21:48 2013 +0100 Date: Wed Apr 3 18:14:01 2013 -0400: Git: 823c3b20b598c6c718be381139cfc16f93443686 The error dialog window was created on the "tick" thread, causing a crash in GTK. Fix it by moving its invocation to the main thread. Index: virt-manager-0.9.5/src/virtManager/engine.py =================================================================== --- virt-manager-0.9.5.orig/src/virtManager/engine.py +++ virt-manager-0.9.5/src/virtManager/engine.py @@ -310,8 +310,9 @@ class vmmEngine(vmmGObject): logging.debug("Closing connection since libvirtd " "appears to have stopped") else: - self.err.show_err(_("Error polling connection '%s': %s") % - (conn.get_uri(), e)) + error_msg = _("Error polling connection '%s': %s") \ + % (conn.get_uri(), e) + self.idle_add(lambda: self.err.show_err(error_msg)) self.idle_add(conn.close)