Bug 354300

Summary: QXcbConnection: Could not connect to display :0 after kaunching
Product: [Applications] kdesu Reporter: fademind
Component: generalAssignee: kdesu bugs tracker <kdesu-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: fademind, pat.dealt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugs.archlinux.org/task/46855
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kdesu crash report

Description fademind 2015-10-24 12:45:21 UTC
Konsole window not showing anywhere after launch command
kdesu konsole

Reproducible: Always

Steps to Reproduce:
1. Run command 

kdesu konsole


Actual Results:  
Konsole window not showing anywhere 

Expected Results:  
Konsole window with root.

After launching via 

sudo konsole

konsole window showing but without honor KDE GUI settings: http://i.imgur.com/RrFo0i2.png
and in konsole window I see:

[tomasz@arch ~]$ export LANG=C
[tomasz@arch ~]$ export $(dbus-launch)
[tomasz@arch ~]$ sudo konsole
QCoreApplication::arguments: Please instantiate the QApplication object first
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
[tomasz@arch ~]$ QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Other apps like kate dolphin etc working fine with kdesu command.

I have many similar errors:

kwin_x11[2383]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 25280, resource id: 30043036, major code: 3 (GetWindowAttributes), minor code: 0

in journal too.

Full journal available here: https://pastebin.com/raw.php?i=2YCwjCbe
Comment 1 fademind 2015-10-24 14:02:53 UTC
4 coredump files from systemd: https://dl.dropboxusercontent.com/u/7244180/core.konsole.0.00000.lz4.zip
Comment 2 fademind 2015-10-26 14:05:15 UTC
NOTE: konsole-kde4 from AUR is NOT affected this issue and kdesu konsole open window fine. 
Other previous konsole releases based on KF5 are affected, IMO this is something with kf5 packages directly instead of konsole itself.
Comment 3 patdealt 2015-10-28 18:13:53 UTC
Created attachment 95185 [details]
kdesu crash report
Comment 4 fademind 2015-12-12 18:34:40 UTC
FIXED in kdesu 5.17.0