flet
flet copied to clipboard
Flet app fails to render gui after upgrade to 0.23.*
Duplicate Check
- [X] I have searched the opened issues and there are no duplicates
Describe the bug
Flet worked fine in version 0.22.1
After the upgrade it fail to render the GUI, and spits out the following error:
** (flet:1531338): CRITICAL **: 10:23:21.142: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed
** (flet:1531338): CRITICAL **: 10:23:21.143: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed
** (flet:1531338): CRITICAL **: 10:23:21.144: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed
It also shows a blank window with a single message saying it cannot create the GL context.
Code
import flet as ft
def main_test(page):
t = ft.Text(value="Hello, world!", color="green")
page.controls.append(t)
page.update()
ft.app(target=main_test)
To reproduce
Just run this simple app
Expected behavior
No response
Screenshots
No response
Operating System
Linux
Operating system details
ubuntu 24.04
Flet version
0.23.1
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
No response
Additional details
No response