ardera / flutter-pi

A light-weight Flutter Engine Embedder for Raspberry Pi that runs without X.
MIT License
1.48k stars 153 forks source link

"could not commit frame request" #384

Open erikms61 opened 3 months ago

erikms61 commented 3 months ago

Hi Ardera, First of all, you have done an amazing job at making Flutter available on the Raspberry Pi. Platform is Raspberry Pi 2 Model B Rev 1.1, with 2 GB of RAM uname -a output is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux However... I run into the error messages modesetting.c: commit requested, bt drmdev is paused right now followed by window.c: Could not commit frame request

Building on debian PC, flutterpi_tool build --release produces the build/flutter_assets folder, no errors copy it over to the RPi try to run it with flutter-pi --release ./flutter_assets and run into the above-mentioned errors. Is the Pi2 simply not capable of running this, or am I missing something? BTW, this is using the Raspberry Pi 7" touchscreen, no HDMI

danielpayetdev commented 3 months ago

Hello, ~~same here 😢 with uname "Linux rpi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux"~~

Edit: After set to "boot to console with autologin", it's working

ardera commented 3 months ago

Hey, yes you need to boot into console: https://github.com/ardera/flutter-pi#configuring-your-raspberry-pi

Only one application can grab the display output at a time. So if a desktop environment is running, flutter-pi can't grab it.