nymea / nymea-app

A nymea frontend app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nymea-app & snap & Wayland - aborted (core dumped)

ernesst opened this issue · comments

Hello,

Currently on my ubuntu laptops running Hirsute the application doesn't launch.

the error msg :

$ nymea-app 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Failed to create wl_display (Permission denied)
Using Wayland-EGL
failed to initialize EGL display
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" 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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)
# nymea-app 
mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

hmm... right... I've seen this before... I switched my ubuntu installation back to X11 (for other reasons) so I had forgotten about this.

Thanks for bringing it up again. Needs to be fixed.

In the meantime you have 2 options:

  • Use nymea:app from the dpkg repository instead of the snap
  • Select X11 when logging in on your computer.

Unfortunatly the solution doesn't work for ubuntu hirsute : http://repository.nymea.io/pool/main/n/nymea-app/

hmm... fair enough. I've enabled building for hirsute packages for the app now too.
Should be in the experimental repository shortly (deb http://ci-repo.nymea.io/experimental-silo hirsute main) and be promoted to the stable repository once nymea 0.30 is released.

Maybe it's a bit late, but a quick fix could be to run the app like this:
WAYLAND_DISPLAY=wayland-99 nymea-app
Then add it to the app environment in snapcraft.yaml
(I had the same problem in my app too)

Source: https://discourse.ubuntu.com/t/packaging-a-qt5-application-bomber-as-an-iot-gui/29059