Bug 8485

Summary: Kwrite terminal edit crash
Product: Mageia Reporter: Arnaud Vacquier <arnaud>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal CC: balcaen.john, bittwister2, jeffrobinsSAE, mageia
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: kwrite CVE:
Status comment:
Attachments: error

Description Arnaud Vacquier 2012-12-24 00:42:50 CET
Description of problem:
i try edit a file by konsole with kwrite and he crash

Version-Release number of selected component (if applicable):
Mageia 3 KDE 4.9.90

How reproducible:
[root@localhost aranud]# kwrite /etc/urpmi/skip.list
kwrite(364)/kdeui (kdelibs): Session bus not found 
To circumvent this problem try the following command (with Linux and bash) 
export $(dbus-launch) 
KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
Warning: connect() failed: : Aucun fichier ou dossier de ce type
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly
drkonqi(369)/kdeui (kdelibs): Session bus not found 
To circumvent this problem try the following command (with Linux and bash) 
export $(dbus-launch)


thank you
Arnaud Vacquier 2012-12-24 00:43:02 CET

Source RPM: (none) => kwrite

Comment 1 Arnaud Vacquier 2012-12-24 02:22:35 CET
In root only

su -
password

he run but with error :


[root@localhost Devel-3-x86_64]# kwrite url
KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") KUrl("") 
QSqlQuery::exec: database not open
KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") KUrl("") 
KUrl("") KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") 
[root@localhost Devel-3-x86_64]# QSqlQuery::exec: database not open
^C
[root@localhost Devel-3-x86_64]# QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
Comment 2 Bit Twister 2012-12-24 14:28:21 CET
(In reply to comment #0)
> Description of problem:
> i try edit a file by konsole with kwrite and he crash

> [root@localhost aranud]# kwrite /etc/urpmi/skip.list
> kwrite(364)/kdeui (kdelibs): Session bus not found 
> To circumvent this problem try the following command (with Linux and bash) 
> export $(dbus-launch) 

See if this works for you, https://bugs.mageia.org/show_bug.cgi?id=5194#c8

If so, this bug report can be marked as duplicate of 5194.

CC: (none) => junk_no_spam

Thierry Vignaud 2012-12-24 16:33:29 CET

CC: (none) => nicolas.lecureuil, thierry.vignaud

Comment 3 Thierry Vignaud 2012-12-24 16:35:58 CET
please:
1) enable the core release debug medium
2) install the following packages: gdb kate-debug qt4-debug kdebase4-debug
3) run the "gdb -q kwrite"
4) type "run" in order to start kwrite from gdb
5) when it crashes, type "bt"

then paste the backtrace you got in some text file you'll attach to this bug report (please do NOT paste it directly as a comment as it would be mangled)

CC: (none) => balcaen.john
Keywords: (none) => NEEDINFO

Comment 4 John Balcaen 2012-12-25 03:34:30 CET
kwrite is looking for a dbus session.
If you're switching to a root session you should use su - & then you'll be able to use kwrite as root.
Regarding the error noticed with the use of "su -", nothing happens here.

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 5 Arnaud Vacquier 2013-01-08 21:44:51 CET
Created attachment 3343 [details]
error

in (su -)it is very long, terminal cut :(
Thierry Vignaud 2013-01-08 22:06:14 CET

CC: thierry.vignaud => (none)

Comment 6 Arnaud Vacquier 2013-01-12 12:12:17 CET
same bug in gnome :


[root@localhost aranud87]# gedit /usr/share/gnome-shell/theme/gnome-shell.css

(gedit:22342): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


** (gedit:22342): WARNING **: Could not connect to session bus
[root@localhost aranud87]#
Comment 7 Arnaud Vacquier 2013-01-12 16:46:09 CET
but it is work fine with "su -" on gnome
Comment 8 Nicolas Lécureuil 2013-02-02 23:57:46 CET
does it work with su - on kde ?
Comment 9 Jeff Robins 2013-02-03 06:25:33 CET
I get the same errors, but I follow the instructions in the error, which are also in the bug report:

To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)

It works just fine after I e=do the export.

--Jeff

Status: UNCONFIRMED => NEW
CC: (none) => jeffrobinsSAE
Ever confirmed: 0 => 1

Comment 10 Arnaud Vacquier 2013-02-11 02:11:55 CET
with su - it is run but there are error :

[root@Aranud aranud]# su -
[root@Aranud ~]# kwrite /etc/dracut.conf.d/80-my_dm.conf
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. 
kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "k3bsetup.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "plasma-applet-lockout.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "plasma-applet-batterymonitor.desktop" is not compliant with XDG standard (missing trailing semicolon). 
Module  "resources" is registered 
Module  "activities" is registered 
Module  "features" is registered 
This is the current thread id for Activities 2966420288 QThread(0x91c7530) 
These are the disabled plugins: ("activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") 
Initializing plugin: "activitymanager_plugin_slc" 
Initializing plugin: "activitymanager_plugin_globalshortcuts" 
This is the current thread id for Activities 3019745088 QThread(0x90a6dc8) 
Initializing plugin: "activitymanager_plugin_virtualdesktopswitch" 
VirtualDesktopSwitch::init 
Module  "org.kde.ActivityManager.VirtualDesktopSwitch" is registered 
Initializing plugin: "activitymanager_plugin_sqlite" 
Module  "org.kde.ActivityManager.Resources.Scoring" is registered 
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
Failed to open the database "/root/.kde4/share/apps/activitymanager/resources/database" QSqlError(-1, "Driver not loaded", "Driver not loaded") 
QSqlQuery::exec: database not open
The database doesn't exist, it is being created 
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
Upgrading the database version to 1.01 
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
Initializing plugin: "activitymanager_plugin_activityranking" 
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
Can't open sqlite database QSqlError(-1, "Driver not loaded", "Driver not loaded") "/root/.kde4/share/apps/activitymanager/activityranking/database" 
running in thread ActivityRanking 
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.7'
KUrl("file:///etc/dracut.conf.d/80-my_dm.conf") KUrl("") 
KUrl("") KUrl("file:///etc/dracut.conf.d/80-my_dm.conf") 
[root@Aranud ~]# QSqlQuery::exec: database not open
^C
[root@Aranud ~]# QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
Comment 11 Nicolas Lécureuil 2013-02-11 02:50:14 CET
so this is not a bug.

you must use su - to start kde apps as root.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 12 Bit Twister 2013-02-11 03:08:31 CET
(In reply to comment #10)
> with su - it is run but there are error :
> 
> [root@Aranud aranud]# su -
> [root@Aranud ~]# kwrite /etc/dracut.conf.d/80-my_dm.conf
> Connecting to deprecated signal
> QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)


Yup, you need another tweak/fix which I provided as a link in Comment 2.