You are not logged in.

#1 2023-04-22 23:59:09

Noorquacker
Member
Registered: 2017-08-16
Posts: 15

Kate doesn't start, Okular gets undefined symbol when starting

Hi,
It's me again with Kate messing up!!

I'm on Sway (with nvidia, but also integrated GPU for more monitors, primarily integrated Intel GPU instead of dedicated GPU) and yes, have done pacman -Syu

When I start Kate, nothing pops up, and in terminal, it just immediately exits. No window pops up or anything.
When using Okular, I get an undefined symbol error. Specifically this:

Unable to find the Okular component: Cannot load library /usr/lib/qt/plugins/okularpart.so: (/usr/lib/libOkular5Core.so.10: undefined symbol: _ZN8KArchive4openE6QFlagsIN9QIODevice12OpenModeFlagEE)

Kate doesn't show this, it just exits with return code 0, no output to stdout or stderr, Okular exits with code 255

Learning from my previous mistake, kactivitymanagerd and kglobalaccel are both running this time

I have strace outputs for kate but exceeded 512KB for Okular: https://pastebin.com/E2gW5JMT for kate. If it's really useful to have the strace for okular just post something here

Does anyone have any suggestions for even trying to solve this??? I'm at a bit of a loss here

Offline

#2 2023-04-23 00:15:30

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: Kate doesn't start, Okular gets undefined symbol when starting

Perhaps your mirror is out of date. Try switching to a different mirror and -Syu again

Offline

#3 2023-04-23 00:41:50

Noorquacker
Member
Registered: 2017-08-16
Posts: 15

Re: Kate doesn't start, Okular gets undefined symbol when starting

skunktrader wrote:

Perhaps your mirror is out of date. Try switching to a different mirror and -Syu again

Switching from gigenet to osuosl and doing pacman -Syyu didn't give anything new. I do know that my installed Okular version is 2304, so that made me less suspicious of out-of-date packages

Offline

#4 2023-04-23 02:25:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Kate doesn't start, Okular gets undefined symbol when starting

What does `pacman -Qi karchive` give?

Offline

#5 2023-04-23 17:31:29

Noorquacker
Member
Registered: 2017-08-16
Posts: 15

Re: Kate doesn't start, Okular gets undefined symbol when starting

Scimmia wrote:

What does `pacman -Qi karchive` give?

Well, that certainly revealed something

Name            : karchive-git
Version         : 5.105.0_r637.g38ba048-1
Description     : Qt 5 addon providing access to numerous types of archives
Architecture    : x86_64
URL             : https://community.kde.org/Frameworks
Licenses        : LGPL
Groups          : None
Provides        : karchive
Depends On      : qt6-base
Optional Deps   : None
Required By     : kdoctools  kemoticons  kfilemetadata  kiconthemes  kpackage  nextcloud-client
Optional For    : None
Conflicts With  : karchive
Replaces        : None
Installed Size  : 1049.76 KiB
Packager        : Nico Jensch <dr460nf1r3@chaotic.cx>
Build Date      : Wed 15 Mar 2023 01:39:28 PM CDT
Install Date    : Wed 22 Mar 2023 08:57:28 PM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

A long time ago, I installed the git versions of my KDE packages because they were broken in the normal ones for some reason. Later, I reinstalled the normal ones, but this is the only one I forgot to reinstall the normal one of.
Installing the normal karchive gets okular working. Thank you!

However, I'm still having issues with kate starting. Debugging with gdb (aka the only thing I know what to do right now), I see that it starts, stops at a temporary breakpoint, then after continuing, it forks and exits normally. The gdb output looks like this:

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffd778) at /usr/src/debug/kate/kate-23.04.0/apps/kate/main.cpp:58
58	{
(gdb) continue
Continuing.
[Detaching after fork from child process 753538]
[Inferior 1 (process 753418) exited normally]
(gdb)

Thank you for helping with Okular though! It's been my most reliable PDF viewer and I'm glad to see it back again

Offline

#6 2023-04-23 21:16:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Kate doesn't start, Okular gets undefined symbol when starting

ps aux | grep kate
# edit
killall kate
killall -9 kate
# /edit
kate -n
find ~ \! -user Noorquacker -print # replace "Noorquacker" w/ your username

Last edited by seth (2023-04-23 21:17:31)

Offline

#7 2023-04-23 23:45:26

Noorquacker
Member
Registered: 2017-08-16
Posts: 15

Re: Kate doesn't start, Okular gets undefined symbol when starting

seth wrote:
ps aux | grep kate
# edit
killall kate
killall -9 kate
# /edit
kate -n
find ~ \! -user Noorquacker -print # replace "Noorquacker" w/ your username

Kate was not running, even after kate -n. No output from ps aux except for the very same grep command, killall said nothing is running, and a ps aux after kate -n yielded nothing as well.

I trimmed the output to remove duplicates and some personal info:

/home/noorquacker/.config-old/gedit
/home/noorquacker/.config-old/gedit/accels
/home/noorquacker/.config-old/enchant
[stuff in my desktop folder, mostly just stuff that I don't have permission to access because I copied them as root and didn't bother setting permissions, all are owned by root:root and have permission 700. they are backups i don't access don't worry guys i swear it's ok]
/home/noorquacker/.cache/dconf
[stuff in my videos folder, all videos just located in ~/Videos, nothing in subfolders]
[a lot of stuff in my conda environments]
/home/noorquacker/.dbus

~/.config-old is a backup of my .config folder that doesn't get used by anything

I assume this command shows files in my home folder I don't own, I took back ownership of ~/.cache/dconf and I'm still getting the same result sad

Offline

#8 2023-04-24 06:07:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Kate doesn't start, Okular gets undefined symbol when starting

/home/noorquacker/.dbus

echo $DBUS_SESSION_BUS_ADDRESS

[a lot of stuff in my conda environments]

… generally perhaps

printenv

Try whether you can start kate w/ a fresh user account and just ftr, you can protect your porn collection against accidental deletion w/ "chattr +i"

Offline

#9 2023-04-25 02:09:38

Noorquacker
Member
Registered: 2017-08-16
Posts: 15

Re: Kate doesn't start, Okular gets undefined symbol when starting

seth wrote:

/home/noorquacker/.dbus

echo $DBUS_SESSION_BUS_ADDRESS

[a lot of stuff in my conda environments]

… generally perhaps

printenv

Try whether you can start kate w/ a fresh user account and just ftr, you can protect your porn collection against accidental deletion w/ "chattr +i"

Here's DBUS_SESSION_BUS_ADDRESS:

unix:path=/run/user/1000/bus

And here's printenv: https://pastebin.com/7VNynbL9. Forgive my mess

Also, I didn't mean to protect my collection with root ownership, it was literally just me temporarily copying something as a backup over nfs as root and not touching it unless I needed it. A little silly of me to forget, but honestly it's not bothering me to have files I can't write on my desktop. It was just a little too personally identifying.

Starting with a fresh user account did no change to this either, unfortunately.

Offline

#10 2023-04-25 05:41:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,337

Re: Kate doesn't start, Okular gets undefined symbol when starting

Pastebin is 404,

printenv | curl -F 'file=@-' 0x0.st

But

Starting with a fresh user account did no change to this either, unfortunately.

doesn't sound good.

Since kate in the strace exits cleanly

type kate
killall kate
strace -f -o /tmp/kate.strace kate
cat /tmp/kate.strace | curl -F 'file=@-' 0x0.st

Offline

Board footer

Powered by FluxBB