danvd / wlroots-eglstreams

A modular Wayland compositor library with EGLStreams support
MIT License
105 stars 11 forks source link

Failed to allocate buffer #36

Open williamgoods opened 3 years ago

williamgoods commented 3 years ago

I use wayfire with wlroots-eglstreams-git in my archlinux with nvidia, but we I run wayfire in my terminal, I get some errors cyclically, the main error seems like the output of

[render/swapchain.c:111] Failed to allocate buffer

but I don't know why allocate process fialed!

the full error is

[render/swapchain.c:111] Failed to allocate buffer [render/egl.c:1035] Error getting egl output layer for plane 0 [render/eglstreams_allocator.c:167] EGLStream setup failed for plane 0

danvd commented 3 years ago

Hi @williamgoods, I'll try to run wayfire today (never did if before). Error looks strange - allocator is not directly exposed to wlroots consumers.

danvd commented 3 years ago

It starts but renders a black screen. Super key seems to do something, at least wayfire renders a grid, but its content is empty. No errors with allocator though. Did you turn on modeset option for nvidia_drm module?

williamgoods commented 3 years ago

I have turn on nvidia_drm module, this seems not the problem. This branch has some problems, but it solves the wayfire tearing problem on my nvidia gpu, although I do not know why this happen!