Hi,
Since I got Bluefin installed into my Framework 13 AMD Ryzen 7040Series I started developing using devcontainers (little experience with them) and I’m having issues with a project which libraries are not prepared to make use of Wayland.
At the moment I have my application opening a black screen (see note bellow) and the following message in the terminal:
amdgpu: unknown (family_id, chip_external_rev): (148, 10)
libGL error: failed to create dri screen
libGL error: failed to load driver: radeonsi
Do you know how would I solve those libGL
errors?
My devcontainer.json file
Note: I’m aware that the black screen is an issue with the libraries I’m using during development. If I downgrade these libraries, the GUI of my application works as expected, but the libGL
errors on the command line are the same.
Hey there.
Ran into a similar issue and in my case (a Java devcontainer requiring access to xwayland), I was able to get it running by including the desktop-xserver feature in the devcontainer.json:
...
"features": {
...
"ghcr.io/sebst/devcontainer-features/desktop-xserver:0": {}
},
...
Another approach I found in some GitHub issue (can’t recall where atm) was just installing a list of libraries related to graphics directly in the Dockerfile:
RUN apt-get update && apt-get install -y \
libfontconfig1 libice6 libsm6 \
pkg-config \
libasound2-dev \
libudev-dev \
mesa-utils \
vulkan-tools \
libwayland-dev \
libxkbcommon-dev \
libvulkan1 \
libvulkan-dev \
libegl1-mesa-dev \
libgles2-mesa-dev \
libx11-dev \
libxcursor-dev \
libxrandr-dev \
libxi-dev \
libxrandr-dev \
libxcb1-dev \
libxcb-icccm4-dev \
libxcb-image0-dev \
libxcb-keysyms1-dev \
libxcb-randr0-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev \
libxcb-xkb-dev \
libegl1-mesa \
libgl1-mesa-glx \
libgl1-mesa-dri \
libglu1-mesa-dev \
libglu1-mesa \
libgles2-mesa \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Really wish this were better supported out of the box or at least documented somewhere.
Good luck!
1 Like
Hey, thanks for the tip.
The “black screen” issue was in the code. The newest version of the library required to be used differently.
I still get the libGL issue, even installing the extra dependencies you pointed out. My guess is that the GPU is not recognised by the docker container. I’m not sure if this is a real issue or just an “annoying warning”, since I can keep developing the application itself.
1 Like