You are not logged in.

#1 2016-10-06 21:36:33

falsum
Member
From: Calgary - Canada
Registered: 2010-03-04
Posts: 38

Okular crashing because session bus not found

Okular has been crashing with the following message:

okular(3923)/kdeui (kdelibs): Session bus not found

I thought that dbus was no running properly, but according to the output of "systemctl status dbus.service" and "systemctl status dbus.socket," dbus is active. Based on other forum posts, I deleted the "$HOME/.kde4/" folder and ran "export $(dbus-launch)" but that didn't prevent Okular from crashing. Okular's crash handler generated the following output:

Application: Okular (okular), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f64b8ef204f in raise () from /usr/lib/libc.so.6
#7  0x00007f64b8ef347a in abort () from /usr/lib/libc.so.6
#8  0x00007f64b98ec44d in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007f64bb19579c in ?? () from /usr/lib/libkdeui.so.5
#10 0x00007f64bb1ee41a in ?? () from /usr/lib/libkdeui.so.5
#11 0x00007f64bb1eedf2 in KApplication::KApplication(bool) () from /usr/lib/libkdeui.so.5
#12 0x0000000000409a00 in ?? ()
#13 0x00007f64b8edf291 in __libc_start_main () from /usr/lib/libc.so.6
#14 0x000000000040b65a in _start ()

Does anyone have any suggestions of what I could do to figure out what is causing Okular to crash?

Offline

#2 2016-10-07 00:04:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,567

Re: Okular crashing because session bus not found

1. Don't use dbus-launch anywhere, it will screw everything up.
2. Make sure all .pacnew files are properly merged
3. Make sure nothing is unsetting or changing the DBUS_SESSION_BUS_ADDRESS variable.

Offline

#3 2016-10-07 20:35:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Okular crashing because session bus not found

Scimmia,  I have been fighting this as well -- thank you for the suggestion on DBUS_SESSION_BUS_ADDRESS.  On my system it was not getting set.  Nothing was changing it, and all relevant pacnew files had been merged.
In my case, a polkit file was missing according to pacman -Qk 2>/dev/null | grep -v '0 missing'
I'm not exactly sure which file was missing or why.  I suggest checking for missing files and reinstalling any packages so afflicted.

Last edited by ewaller (2016-10-07 20:36:52)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#4 2016-10-07 20:55:24

falsum
Member
From: Calgary - Canada
Registered: 2010-03-04
Posts: 38

Re: Okular crashing because session bus not found

ewaller, pacman tells me that polkit is missing one file. How can I figure out which file that is? I tried to reinstall polkit but that didn't install the missing file.

Offline

#5 2016-10-07 21:12:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Okular crashing because session bus not found

Ah, did you run that as root?  I think it misses /etc/polkit-1/rules.d/50-default.rules otherwise.
Did reinstalling polkit fix it?

I ask because I had been having trouble in Openbox reinstalled that package and rebooted, but restarted into i3.  Maybe I have not fixed it yet?
But, I checked before running startx and DBUS_SESSION_BUS_ADDRESS was set. In Openbox (before the restart) it had not been.

Edit:  No, it now works with Openbox as well.

Last edited by ewaller (2016-10-07 21:34:17)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#6 2016-10-07 23:09:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,567

Re: Okular crashing because session bus not found

I'm glad you found the problem, ewaller. My list wasn't exhaustive, just what I've seen causing dbus issues so far. I'll add this to the list big_smile

Offline

#7 2016-10-07 23:28:26

falsum
Member
From: Calgary - Canada
Registered: 2010-03-04
Posts: 38

Re: Okular crashing because session bus not found

ewaller, I didn't realize that running pacman -Qk as root makes a difference. When I run as root, there are no files missing according to pacman -Qk. At any rate, reinstalling polkit did not fix it.

I rebooted my machine and I checked that before and after running startx DBUS_SESSION_BUS_ADDRESS is set (its value is "unix:path=/run/user/1000/bus").

Offline

#8 2016-10-08 19:11:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,567

Re: Okular crashing because session bus not found

falsum wrote:

I rebooted my machine and I checked that before and after running startx DBUS_SESSION_BUS_ADDRESS is set (its value is "unix:path=/run/user/1000/bus").

This is correct. it's possible my idea was wrong here.

Offline

#9 2016-10-08 21:04:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Okular crashing because session bus not found

Yeah, we are fighting different problems.  In my case, it was not set in the first place.  After you run startx,  the variable become unassigned?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

Board footer

Powered by FluxBB