Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Okular does not opens (flatpak) #84

Open
aquaspy opened this issue Jun 30, 2020 · 21 comments
Open

Okular does not opens (flatpak) #84

aquaspy opened this issue Jun 30, 2020 · 21 comments

Comments

@aquaspy
Copy link

aquaspy commented Jun 30, 2020

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
Copy link
Collaborator

tsdgeos commented Jun 30, 2020

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

i.e. which distribution, etc.

@Erick555
Copy link
Contributor

I see void linux in description (this one)

@tsdgeos
Copy link
Collaborator

tsdgeos commented Jun 30, 2020

Ah right, missed that.

Can you please past the contents of flatpak list ?

@aquaspy
Copy link
Author

aquaspy commented Jul 1, 2020

Ah right, missed that.

Can you please past the contents of flatpak list ?

Of course!
image

I think KDE dependencies are ok

@tsdgeos
Copy link
Collaborator

tsdgeos commented Jul 1, 2020

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
Copy link
Author

aquaspy commented Jul 2, 2020

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
Copy link
Author

aquaspy commented Jul 2, 2020

image
Ok Im installing

@aquaspy
Copy link
Author

aquaspy commented Jul 2, 2020

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

@Erick555
Copy link
Contributor

Erick555 commented Jul 2, 2020

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

Do you use musl?

@aquaspy
Copy link
Author

aquaspy commented Jul 3, 2020

image

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

@Erick555
Copy link
Contributor

Erick555 commented Jul 3, 2020

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

@aquaspy
Copy link
Author

aquaspy commented Jul 7, 2020

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
Copy link
Contributor

Erick555 commented Jul 7, 2020

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
Copy link
Collaborator

tsdgeos commented Jul 7, 2020

Which flatpak version are you running?

@aquaspy
Copy link
Author

aquaspy commented Jul 8, 2020

Flatpak 1.6.3

Which flatpak version are you running?

@aquaspy
Copy link
Author

aquaspy commented Jul 8, 2020

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
Copy link
Collaborator

tsdgeos commented Jul 8, 2020

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
Copy link
Author

aquaspy commented Jul 30, 2020

@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
Copy link
Collaborator

tsdgeos commented Jul 30, 2020

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

@AmamosV
Copy link

AmamosV commented Sep 2, 2022

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
Copy link

AmamosV commented Sep 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants