[nvidia][wayland] OpenGL applications that use textures don't work (hang) or report errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I apologize if this is in the wrong category. I reported this bug to NVidia, but thought I should report it with you guys too, as the Wayland version in Ubuntu 24.04.4 LTS has changed.
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04 LTS
Release: 24.04
I have been testing Wayland on Ubuntu 22.04.4 LTS successfully with NVidia drivers and this setup:
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
together with:
libnvidia-
Except for some minor issues with Google Chrome's title bar, it worked very well. My OpenGL application would work fine.
Now, with Ubuntu 24.04.4 LTS, and the latest NVidia drivers:
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
OpenGL applications that use textures don't work (hang) or report errors. Also, Google Chrome's window did not show up when reporting the bug (I had to log in as X11).
To test it quickly, you can use my open source OpenGL video player (compiled on Rocky Linux 8.10 for compatibility so you'll get some warnings), which can be downloaded from:
https:/
If you are afraid of binary releases, here are two tests (a quick FLTK only test):
sudo apt install make \
libpango1.0-dev \
libwayland-dev \
wayland-protocols \
libxkbcommon-dev \
libxinerama-dev \
libdbus-1-dev \
libglew-dev \
cmake \
libgtk-3-dev
git clone https:/
mkdir build
cd build
cmake .. -D FLTK_BUILD_
make
cd bin/test
export FLTK_BACKEND=x11
./cube # works fine
export FLTK_BACKEND=
./cube # hangs
cd -
cd bin/examples
./OpenGL3test # to verify driver version and OpenGL setup
and my own viewer (a longer test, in the quickest compile option -- takes about 8 mins to compile):
I can have you compile my program with minimal functionality so that you can test it too. Tested on Ubuntu 24.04.4 LTS under amd64.
$ git clone https:/
Install dependencies:
$ sudo apt update
$ sudo apt -y install curl build-essential perl git cmake ninja-build \
$ mkdir -p $HOME/bin
$ export PATH=$HOME/
$ cd mrv2
$ bin/runme_
(say y to the prompt)
Once it is done, it should create a symlink from BUILD-Linux-
Test it with:
$ mrv2 /path/to/
You will get all sort of texture warnings and no playback under Ubuntu 24.04.4 LTS but should work fine under Ubuntu 22.04.4 LTS.
What I expect to happen. OpenGL applications should not hang nor should they report errors under Wayland.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: wayland-protocols 1.34-1
ProcVersionSign
Uname: Linux 6.8.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 21 21:29:20 2024
Dependencies:
InstallationDate: Installed on 2024-06-12 (9 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
PackageArchitec
ProcEnviron:
LANG=es_ES.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
SourcePackage: wayland-protocols
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks for the bug report. Please:
1. Try a version of the Nvidia driver that is officially shipped with Ubuntu 24.04, such as 535.
2. Try running the affected apps in a terminal and then tell us what errors you receive.
3. Check for crashes by following: https:/ /wiki.ubuntu. com/Bugs/ Responses# Missing_ a_crash_ report_ or_having_ a_.crash_ attachment