Skip to content

[BUG] using shm causes a mesa error #191

@Bqleine

Description

@Bqleine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions