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 [destroyed object]: error 7: failed to import supplied dmabufs #604

Open
psaavedra opened this issue Sep 28, 2023 · 3 comments
Open
Labels
bug Something isn't working needs investigation Needs some investigation to find the cause of the issue

Comments

@psaavedra
Copy link
Member

psaavedra commented Sep 28, 2023

  • Description: DMAbuf related error when I try to run Cog on gnome-shell in a Ubuntu Jammy Laptop. However the same built works if it is executed on a Weston compositor.

  • Distro: Ubuntu (Jammy)

  • Command: cog -P wl http://...

  • Hardware::

    • VGA: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
    • CPU: Version: AMD Ryzen 7 4800H with Radeon Graphics
  • Environment:

ii  gnome-shell                                      42.9-0ubuntu2                              amd64        graphical shell for the GNOME desktop
ii  libwayland-server0:amd64                         1.20.0-1ubuntu0.1                          amd64        wayland compositor infrastructure - server library
ii  libwayland-server0-dbgsym:amd64                  1.20.0-1ubuntu0.1                          amd64        debug symbols for libwayland-server0
ii  libwpewebkit-1.0-3:amd64                         2.36.0-2ubuntu3                            amd64        Web content engine for embedded devices
ii  wayland-protocols                                1.25-1                                     all          wayland compositor protocols

  • Built:

    • Cog: Built from master (1d27133)
    • mkdir build; cd build; meson setup --backend ninja --prefix=$(realpath ~/install) ..; ninja && ninja install
  • Error:

    • logerr:
     psaavedra@wkdev-20230925:~/install$ bin/cog -P wl  http://igalia.com
     EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
     Cog-Core-Message: 15:05:06.178: <http://igalia.com/> Load started.
     Cog-Core-Message: 15:05:06.180: <https://www.igalia.com/> Redirected.
>>>> [destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a 
     Cog-Core-Message: 15:05:06.231: <https://www.igalia.com/> Redirected.
     Cog-Core-Message: 15:05:06.465: <https://www.igalia.com/> Loading...
     Cog-Core-Message: 15:05:06.863: <https://www.igalia.com/> Loaded successfully.
  • journalctl:
sep 27 17:10:21 golpe gnome-shell[4775]: WL: error in client communication (pid 1452497)

(Ditto) The same built works if it is executed on a Weston compositor:

Cog-Core-Message: 17:07:11.270: <http://igalia.com/> Load started.
[2344118.896] wl_display@1.error(nil, 7, "failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a ")
@ernstp
Copy link

ernstp commented Nov 30, 2023

I'm also running into this.

@psaavedra
Copy link
Member Author

@ernstp Thanks for reporting this 2nd occurrence. I'd ask to you about to environment. is it also a Ubuntu Jammy, same driver? Could you compare against the information detailed in my first comment if there is something that could narrow down the issue?.

@aperezdc aperezdc added bug Something isn't working needs investigation Needs some investigation to find the cause of the issue labels Nov 30, 2023
@ernstp
Copy link

ernstp commented Nov 30, 2023

Yeah very similar setup. Ubuntu Jammy, amdgpu graphics, Gnome Shell wayland session, Cog wayland platform.

cog-0.18.1 or cog-git
libwpe-1.14.1
wpebackend-fdo-1.14.2
wpewebkit-2.42.2

gtk4 backend works well afaict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigation Needs some investigation to find the cause of the issue
Projects
None yet
Development

No branches or pull requests

3 participants