Description
Hi,
A few of us have been developing some simple Flutter games for the Pi and have run into an odd issue. More often than not, the game will render an initial screen but not show any further updates. The game appears to have frozen, but through adding logging statements etc we've confirmed that keyboard inputs are being received and processed - just no further updates to the screen are being made. There's a randomness to it - sometimes the game will work fine, sometimes not. By adding sleep statements or setState calls in different places (we're clutching at straws!) we can change the odds of the game working, but we haven't found a hack that reliably fixes the problem. The main clue we have so far is that when the game fails to work we see this error:
[modesetting] Could not commit atomic request. drmModeAtomicCommit: Device or resource busy
Any ideas?
John
PS There are a couple of other warnings in the logs that are probably red herrings since they occur whether or not the game works:
WARNING: display has non-square pixels
and
WARNING: Kernel didn't return a valid vblank timestamp. (timestamp == 0) VSync with be disabled.