Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create an allocator #122

Open
xi opened this issue May 22, 2023 · 4 comments
Open

Unable to create an allocator #122

xi opened this issue May 22, 2023 · 4 comments
Labels
question Q+A request

Comments

@xi
Copy link

xi commented May 22, 2023

When I try to run tiny I get the following error:

DEBUG:wlroots:[render/allocator/allocator.c:98] Trying to create gbm allocator
MESA-LOADER: failed to open iris: /usr/lib64/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
failed to load swrast driver
ERROR:wlroots:[render/allocator/gbm.c:198] gbm_create_device failed

When I start a different wlroots-based compositor I get this output:

00:00:00.385 [render/allocator/allocator.c:98] Trying to create gbm allocator
00:00:00.391 [render/allocator/gbm.c:203] Created GBM allocator with backend drm
00:00:00.391 [render/allocator/gbm.c:206] Using DRM node /dev/dri/renderD128

I tired to look through the code to find what pywlroots does differently than the other compositor, but it all looks very similar. Any idea what I am doing wrong? Do I have to re-build the .so files for my system or something? Any help would be appreciated!

  • wlroots: 0.15.1
  • pywlroots: 0.15.24 (installed from pypi)
@cr1ogen
Copy link

cr1ogen commented Sep 25, 2023

qtile/qtile#4325

@flacjacket flacjacket added the question Q+A request label Oct 3, 2023
@m-col
Copy link
Collaborator

m-col commented Oct 15, 2023

Are there any differences in the environment of the tiny compositor vs other wlroots compositors? Anything like GBM_BACKEND=nvidia-drm set, or LD_LIBRARY_PATH?

@xi
Copy link
Author

xi commented Oct 16, 2023

No, same environment. env | grep GDM and env | grep LD are both empty.

@heuer
Copy link
Contributor

heuer commented Feb 28, 2024

You can try to set the renderer to pixman:

export WLR_RENDERER=pixman

This isn't a solution but only a workaround, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Q+A request
Projects
None yet
Development

No branches or pull requests

5 participants