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

[BUG] using shm causes a mesa error #191

Open
Bqleine opened this issue Jul 29, 2024 · 2 comments
Open

[BUG] using shm causes a mesa error #191

Bqleine opened this issue Jul 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Bqleine
Copy link

Bqleine commented Jul 29, 2024

Bug description
When using the shm export, mesa will make an error and no buffers are exported. This has happened to me when writing my own code, but can be reproduced with cog's headless platform:

noe@navi:~/src/cog/build> COG_MODULEDIR=$PWD/platform ./launcher/cog https://www.igalia.com -P headless
MESA: error: zink: could not create swapchain
Cog-Core-Message: 23:21:53.075: <https://www.igalia.com/> Load started.
Cog-Core-Message: 23:21:53.122: <https://www.igalia.com/> Loading...
Cog-Core-Message: 23:21:53.482: <https://www.igalia.com/> Loaded successfully.

How To Reproduce

  1. Start cog with the headless platform
  2. Mesa should make an error

I've been able to reproduce this on openSUSE Tumbleweed with an NVIDIA card and Pop OS with an AMD card.

Expected behavior
No errors happen and buffers are exported through the export_shm_buffer callback.

Actual behavior
A mesa error is printed and the export_shm_buffer is never called.

@Bqleine Bqleine added the bug Something isn't working label Jul 29, 2024
@Bqleine
Copy link
Author

Bqleine commented Jul 29, 2024

I would be ready to try and make a patch if you could provide me with some pointers to what might cause the issue and how to debug it.

@Bqleine
Copy link
Author

Bqleine commented Aug 9, 2024

A workaround is to set the GALLIUM_DRIVER environment variable to use something else like softpipe

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

1 participant