IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.78k stars 353 forks source link

Missing permission to access /dev/dri/renderD128 #559

Open dscp46 opened 4 months ago

dscp46 commented 4 months ago

Describe the bug When installed with flatpak and launched on a wayland session, YUView warns of being unable to access /dev/dri/renderD128. Significant performance impact is noticeable.

user@testrig ~ % flatpak run de.rwth_aachen.ient.YUView 
QSocketNotifier: Can only be used with threads started with QThread
libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (Aucun fichier ou dossier de ce type)
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

Quick fix The end user can run the following command:

sudo flatpak override de.rwth_aachen.ient.YUView --device=dri

Longer term fix As suggested by that thread, add the following in de.rwth_aachen.ient.YUView.yaml.

finish-args:
  - --device=dri

To Reproduce Steps to reproduce the behavior:

  1. Install flatpak and set up flathub repository.
  2. Run the following command flatpak install de.rwth_aachen.ient.YUView
  3. Run the following command flatpak run de.rwth_aachen.ient.YUView
  4. See error

Expected behavior YUView runs without any EGL warning. Console output shows the following:

user@testrig ~ % flatpak run de.rwth_aachen.ient.YUView 
QSocketNotifier: Can only be used with threads started with QThread

Screenshots Not applicable

Version (please complete the following information):