flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
9.87k stars 389 forks source link

Flet app fails to render gui after upgrade to 0.23.* #3502

Open fccoelho opened 1 week ago

fccoelho commented 1 week ago

Duplicate Check

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

AduchiMergen commented 1 week ago

some issue with macos