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

🐛 throwing DRM and GBM errors w/ latest kernel #404

Open
lukas-runge opened this issue Apr 13, 2024 · 5 comments
Open

🐛 throwing DRM and GBM errors w/ latest kernel #404

lukas-runge opened this issue Apr 13, 2024 · 5 comments

Comments

@lukas-runge
Copy link

lukas-runge commented Apr 13, 2024

Hi folks,

I just updated my Pi 5 to the latest kernel version with sudo apt update && sudo apt upgrade.
I am now running on: 6.6.26-v8-16k+

Sadly flutter-pi just crashes now - every time I try to start it in release mode.

> flutter-pi --release build/flutter_assets

modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported
flutter-pi.c: Could not create drmdev from device at "/dev/dri/card1". Continuing.
egl_gbm_render_surface.c: Couldn't create GBM surface for rendering. gbm_surface_create_with_modifiers: Invalid argument
egl_gbm_render_surface.c: Will retry without modifiers
flutter: {}
modesetting.c: Couldn't add buffer as DRM fb. drmModeAddFB2WithModifiers: Invalid argument
egl_gbm_render_surface.c: Couldn't add GBM buffer as DRM framebuffer.
window.c: Couldn't present flutter layer on screen. surface_present_kms: Input/output error

Any ideas on how to solve that? 🙌

Kind regards,
@lukas-runge

@lukas-runge lukas-runge changed the title 🐛 throwing DRM and GBM errors with newest kernel 🐛 throwing DRM and GBM errors with latest kernel Apr 13, 2024
@lukas-runge lukas-runge changed the title 🐛 throwing DRM and GBM errors with latest kernel 🐛 throwing DRM and GBM errors w/ latest kernel Apr 13, 2024
@lukas-runge
Copy link
Author

lukas-runge commented Apr 13, 2024

Just rolled back my Raspberry Pi 5 to Kernel v6.1.77 via sudo rpi-update 5fc4f643d2e9c5aa972828705a902d184527ae3f. 🚧

After a reboot flutter-pi works perfectly again. 🎉
Non the less a fix would be great to support newer kernel versions in the future. 🙌

Best regards,
@lukas-runge

@DonatelloX
Copy link

I have the same problem.
Please, can you fix it?

@ardera
Copy link
Owner

ardera commented May 1, 2024

@lukas-runge @DonatelloX What display are you using and how is it connected? If you have a DSI display, can you try with latest master? I just merged a fix for a Pi 5 DSI problem yesterday: #416 .

@DonatelloX
Copy link

The problem seems solved now.

@DonatelloX
Copy link

It does not always appear but sometimes immediately after launching the application:

modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported
flutter-pi.c: Could not create drmdev from device at "/dev/dri/card0". Continuing.

Last kernel 6.6.28

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

3 participants