Synaptic segfault on GNOME on Wayland

Bug #1632770 reported by Fred
64
This bug affects 15 people
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Segmentation fault (core dumped)
No protocol specified
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

(synaptic:4245): Gtk-WARNING **: cannot open display: :1

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: synaptic 0.83+nmu1ubuntu1
ProcVersionSignature: Ubuntu 4.8.0-22.24-generic 4.8.0
Uname: Linux 4.8.0-22-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
Date: Wed Oct 12 17:59:53 2016
InstallationDate: Installed on 2013-12-26 (1020 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: synaptic
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Fred (eldmannen+launchpad) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in synaptic (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas Brauchli (blk) wrote :
Revision history for this message
Andreas Brauchli (blk) wrote :

..having said that, the redhat bug has a few proposed workarounds. One shell script that may or may not work for your specific issue (tested only for synaptic, Qt apps may not work without change) would be the following one that, since I like Italian tomato sauce, I call it sugo:

#!/bin/sh
[ -n "$@" ] || exit 0
xhost si:localuser:root
sudo $@
xhost -si:localuser:root

Revision history for this message
Jesse (jessedubord) wrote :

I can confirm this bug is happening on Ubuntu GNOME 17.04 under Wayland session. Running from terminal produces the following:

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Segmentation fault (core dumped)

Revision history for this message
Gerhard (gerhard-rauniak-gmail) wrote :

Same problem on Ubuntu 17.10 Beta.

Revision history for this message
Fadi Racy (mo-mashi) wrote :

Still there Ubuntu 17.10
sugo is an excellent name.

Revision history for this message
Fadi Racy (mo-mashi) wrote :

I only get this if I try to run synaptic without root access:
bash -c 'xhost +local:$(whoami);synaptic && xhost -' or bash -c 'xhost +local:$(whoami);synaptic'

this works fine: bash -c "xhost +SI:localuser:root;pkexec synaptic" but it's insecure and leaves my sudo password up for sniffing.

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.