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

0.18.4: DRM w/GLES: cog_drm_gles_renderer_handle_egl_image: Cannot create framebuffer (Bad file descriptor) #748

Open
deanmsands3 opened this issue Dec 11, 2024 · 3 comments

Comments

@deanmsands3
Copy link

deanmsands3 commented Dec 11, 2024

Distro: Debian Bullseye
OS: Linux 5.10.198
Arch: Arm64
GPU: Mali Midgard T-860
Driver: libmali-midgard-t86x-r18p0-wayland-gbm
WPE Webkit: 2.38.6
libWPE: 1.10.0
Cog: 0.18.4

  • Compiled from source
  • COG_ENABLE_WESTON_DIRECT_DISPLAY
  • COG_USE_SOUP2
  • Args: --platform=drm --platform-params='renderer=gles' github.com

User: root

Hello!
Trying with the DRM platform this time.
Since only the ES2 variants of GLMark2 work, I'm specifying the GLES renderer.
It works for a few seconds then freezes.
The strace shows that the software can't open anymore files.
I've included an lsof log that confirms this.
I tried increasing the number of FDs with ulimit and that gave it a little more running time but it ultimately froze.
It complains about not finding rules/evdev but I believe that's a symptom not a cause. The file is there.

How do I get this running?
Thanks in advance.

(The simple log is from a later run with the same outcome.)
Simple log: root-cog-drm-gles-0.18.4.log
strace log: root-strace-cog-drm-gles-0.18.4.log
lsof log: root-lsof-cog-drm-gles-0.18.4.txt
kmscube log: root-kmscube.log

@jrosa-digiwest
Copy link

I am facing the same issue on a raspberry pi 4. Do you have any updates? I have tested with cog 0.16.1 (from debian sources) and with cog 0.18.4 build from source.

Distro: Debian GNU/Linux 12 (bookworm)
OS: Linux 6.6.62+rpt-rpi-v8
Arch: aarch64
wpewebkit-driver: 2.38.6-1
libwpe-1.0-1: 1.14.0-1
libwpebackend-fdo-1.0-1: 1.14.2-1
cog: 0.16.1 and 0.18.4

@deanmsands3
Copy link
Author

I am facing the same issue on a raspberry pi 4. Do you have any updates? I have tested with cog 0.16.1 (from debian sources) and with cog 0.18.4 build from source.

Distro: Debian GNU/Linux 12 (bookworm) OS: Linux 6.6.62+rpt-rpi-v8 Arch: aarch64 wpewebkit-driver: 2.38.6-1 libwpe-1.0-1: 1.14.0-1 libwpebackend-fdo-1.0-1: 1.14.2-1 cog: 0.16.1 and 0.18.4

This fix won't work for me, but let me suggest you run it inside cage kiosk.
cage -- cog --platform=wl "https://www.github.com"
I also have an RPi4 and cog w/drm failed after a little while. But it's running ok with cage.
Unfortunately, our project calls for a TinkerBoard 2, and this doesn't work.

@jrosa-digiwest
Copy link

jrosa-digiwest commented Dec 17, 2024

I am facing the same issue on a raspberry pi 4. Do you have any updates? I have tested with cog 0.16.1 (from debian sources) and with cog 0.18.4 build from source.
Distro: Debian GNU/Linux 12 (bookworm) OS: Linux 6.6.62+rpt-rpi-v8 Arch: aarch64 wpewebkit-driver: 2.38.6-1 libwpe-1.0-1: 1.14.0-1 libwpebackend-fdo-1.0-1: 1.14.2-1 cog: 0.16.1 and 0.18.4

This fix won't work for me, but let me suggest you run it inside cage kiosk. cage -- cog --platform=wl "https://www.github.com" I also have an RPi4 and cog w/drm failed after a little while. But it's running ok with cage. Unfortunately, our project calls for a TinkerBoard 2, and this doesn't work.

Yes, it worked with cage and wayland (wl). However, I can't manage to get it to work with DRM even when using cage. I wanted to use DRM to avoid overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants