Skip to content

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

Open
@fccoelho

Description

@fccoelho

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: regressionA feature that worked correctly doesn't anymoreplatform: linuxSpecific to one or more Linux distributionsplatform: macSpecific to macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions