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

ERROR_OUT_OF_HOST_MEMORY with Qt on Linux/Wayland #504

Closed
almarklein opened this issue May 23, 2024 · 5 comments
Closed

ERROR_OUT_OF_HOST_MEMORY with Qt on Linux/Wayland #504

almarklein opened this issue May 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@almarklein
Copy link
Member

almarklein commented May 23, 2024

Relates to #470

Trying to use wgpu with PySide6 today, I get the following error:

thread '<unnamed>' panicked at /root/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/9f505e7/wgpu-hal/src/vulkan/instance.rs:395:18:
XlibSurface::create_xlib_surface() failed: ERROR_OUT_OF_HOST_MEMORY
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted (core dumped)

Things work as expected with glfw. The error seems to be related to obtaining a surface id. A process that indeed goes a little different with the qt backend, because we seem unable to get the actual surface id of a qt widget. I don't yet understand why this is suddenly a problem. It worked fine some weeks ago.

@almarklein almarklein added the bug Something isn't working label May 23, 2024
@almarklein almarklein changed the title ERROR_OUT_OF_HOST_MEMORY with Qt on Linux ERROR_OUT_OF_HOST_MEMORY with Qt on Linux/Wayland May 23, 2024
@almarklein
Copy link
Member Author

Seems specific to Wayland.

@hmaarrfk
Copy link
Contributor

I've been using wayland on Ubuntu 24.04 as my daily driving for the last few weeks at least. (Only integrated graphics, no Nvidia graphics card)

I tried it in on Ubuntu 23.10 and it was pretty bad and I would see errors like the one you described above. So my hunch is that likely the some version in the graphics stack is too old.

@hmaarrfk
Copy link
Contributor

And to speicfy, we use the following conda packages for our wgpu/pygfx stack:

 $ mamba list | grep -E "(wgpu|pyside|pygfx)"
pygfx                     0.2.0              pyhd8ed1ab_0    conda-forge
pyside6                   6.7.0           py310h7a3fa89_1    conda-forge
wgpu-native               0.19.3.1             h2b8f863_0    conda-forge
wgpu-py                   0.15.2             pyha804496_0    conda-forge

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Jun 1, 2024

ps. i noticed that conda-forge qt6-wayland is likely broken recently, so maybe i'm not using "qt wayland"

@almarklein
Copy link
Member Author

We track this in pygfx/rendercanvas#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants