JoseExposito / touche

The desktop application to configure Touchégg
GNU General Public License v3.0
543 stars 26 forks source link

OpenGL error when opening the app #49

Closed fsevenm closed 2 years ago

fsevenm commented 2 years ago

Describe the bug

Just installed the app normally using flatpak. Then when tried to open in Terminal got OpenGL error.

Expected behaviour

The app should open.

Actual behaviour

The don't open.

Logs

$ flatpak run com.github.joseexposito.touche
...
...
No provider of glGetShaderiv found.  Requires one of:
    Desktop OpenGL 2.0
    OpenGL ES 2.0

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.0.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.0.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

I use default configuration. Didn't change anything in the config.

Your environment

deltalejo commented 2 years ago

I run into the same problem. I managed to run the app by giving the option --device=dri: flatpak run --device=dri com.github.joseexposito.touche I don't know what is going on and also the dark theme does not work for me.

JoseExposito commented 2 years ago

It looks similar to this issue: https://bbs.archlinux.org/viewtopic.php?id=266658

I think that @deltalejo's solution should fix it as well, and it doesn't require to change any system config, so I'd with his solution.

deltalejo commented 2 years ago

@JoseExposito I think the issue her is not because an old graphics card/driver but because a missing permission. What do you think about adding the option --device=dri to the finish-args section on the app .yml file?

JoseExposito commented 2 years ago

Sorry @deltalejo , you are right, I misunderstood your first comment, the permission is missing.

Just added it, I'll tag a new version tomorrow with the fix included.

fsevenm commented 2 years ago

What about this ... and also the dark theme does not work for me. Totally different issue, right? Since I am also experiencing that, my other GTK flatpak apps use the correct theming.

JoseExposito commented 2 years ago

Just pushed a release with the fix, you should receive an update in a few hours.

@fsevenm it looks like a different issue, probably related to the recent migration of Touché to GTK 4 and libadwaita. As far as I know Ubuntu is not fully migrated yet, but I'll need to do some testing. What Ubuntu version are you using?

fsevenm commented 2 years ago

Just pushed a release with the fix, you should receive an update in a few hours.

@fsevenm it looks like a different issue, probably related to the recent migration of Touché to GTK 4 and libadwaita. As far as I know Ubuntu is not fully migrated yet, but I'll need to do some testing. What Ubuntu version are you using?

I am using Ubuntu 21.04, Gnome 3.38.x

JoseExposito commented 2 years ago

Just installed Ubuntu in a VM and it looks like other GTK 4 + libadwaita apps, like TextEditor, do not follow the dark theme preferences.

This feature will ship with GNOME 42, so we will have to wait a bit...