flathub / org.kde.okular

https://flathub.org/apps/details/org.kde.okular
6 stars 12 forks source link

Okular does not opens (flatpak) #84

Open aquaspy opened 4 years ago

aquaspy commented 4 years ago

Well, not sure if there is some incompatibility in void linux, but there is something making it impossible to use okular flatpak here.

Every time I try to open it I get an error: image

Any ideas about this? Thanks!

tsdgeos commented 4 years ago

Interesting, can you please give us details of your system?

i.e. which distribution, etc.

Erick555 commented 4 years ago

I see void linux in description (this one)

tsdgeos commented 4 years ago

Ah right, missed that.

Can you please past the contents of flatpak list ?

aquaspy commented 4 years ago

Ah right, missed that.

Can you please past the contents of flatpak list ?

Of course! image

I think KDE dependencies are ok

tsdgeos commented 4 years ago

Looks reasonable.

Can you do this? flatpak run --command=sh --devel org.kde.okular gdb -ex run /app/bin/okular-bin

it will hopefully crash, then type bt and paste the output of bt

aquaspy commented 4 years ago

Looks reasonable.

Can you do this? flatpak run --command=sh --devel org.kde.okular gdb -ex run /app/bin/okular-bin

it will hopefully crash, then type bt and paste the output of bt

image

I won't even crash I guess. I think I need to install kde sdk?

aquaspy commented 4 years ago

image Ok Im installing

aquaspy commented 4 years ago

Sadly, even after the install, the error still the same image

Erick555 commented 4 years ago

Could you show flatpak run -vvv org.kde .okular?

Do you use musl?

aquaspy commented 4 years ago

image

I use glibc version of void, so no musl fault I guess.

Erick555 commented 4 years ago

Do you have pulseaudio and xdg-desktop-portal-{kde/gtk} installed? https://docs.voidlinux.org/config/external-applications.html#flatpak

aquaspy commented 4 years ago

Do you have pulseaudio and xdg-desktop-portal-{kde/gtk} installed? https://docs.voidlinux.org/config/external-applications.html#flatpak

Yes, xdg-desktop-portal for both gtk and kde are installed. Pulseaudio is too. I still not sure on what is causing this.

Does this flatpak depends on opnssl?

Erick555 commented 4 years ago

You shouldn't need both gtk and kde portal unless you use multiple DE interchangeably. Flatpak apps have own openssl and everything else they need however I'm not sure if the crash doesn't happen in flatpak itself before real app was started.

tsdgeos commented 4 years ago

Which flatpak version are you running?

aquaspy commented 4 years ago

Flatpak 1.6.3

Which flatpak version are you running?

aquaspy commented 4 years ago

You shouldn't need both gtk and kde portal unless you use multiple DE interchangeably. Flatpak apps have own openssl and everything else they need however I'm not sure if the crash doesn't happen in flatpak itself before real app was started.

oh, got it. Sadly, I don't know what is the issue then.

tsdgeos commented 4 years ago

Ok, invoking @alexlarsson now.

Any idea why if would crash when doing flatpak run --command=sh --devel org.kde.okular

Seems like it's flatpak itself crashing? See https://user-images.githubusercontent.com/49214136/86306824-92a1b000-bbeb-11ea-93aa-f22f0e315d60.png

aquaspy commented 4 years ago

@tsdgeos I am not on void linux anymore, just switched to artix with runit. I installed okular from here to test and seems to work perfectly. Maybe a void issue?

tsdgeos commented 4 years ago

Yes, Void was always the suspect either because they do something wrong or because their weirdness makes flatpak crash

AmamosV commented 2 years ago

I'm having a similar problem. I'm on a chromebook, using the linux on chromeos. I installed okular with flatpak and it doesn't launch. When I click on the icon it starts like if it was going to load, but then never finishes, not erros given. I uninstalled and installed with apt-get and then it worked perfectly.

AmamosV commented 2 years ago

Update: reinstalled okular with flatpak and tried to use the run command instead of the chromebook's icon to see what it would turn out. That's what i got:

$ flatpak run org.kde.okular qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

I also use several other apps on linux in my chromebook and they are all working fine with flatpak, just getting this on okular.

Thanks