You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the code, then wait for some time while observing the terminal.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
15.0
Flet version
0.26.0
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/playground/test-b.py", line 15, in on_message File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 732, in update r = self.__update(self) ^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 798, in __update commands, added_controls, removed_controls = self.__prepare_update(*controls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 814, in __prepare_update control.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 502, in build_update_commands assert self.__uid is not None ^^^^^^^^^^^^^^^^^^^^^^AssertionErrorFuture exception was never retrievedfuture: <Future finished exception=AssertionError()>Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/playground/test-b.py", line 15, in on_message File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 732, in update r = self.__update(self) ^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 798, in __update commands, added_controls, removed_controls = self.__prepare_update(*controls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/page.py", line 814, in __prepare_update control.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 483, in build_update_commands ctrl.build_update_commands( File "/Users/ndonkohenri/PycharmProjects/flet-dev/flet/sdk/python/packages/flet/src/flet/core/control.py", line 502, in build_update_commands assert self.__uid is not None
Additional details
Issue happens occasionally but very often.
The text was updated successfully, but these errors were encountered:
I used to get this error and as am talking right now, I still run into it but the only temporary fix I discovered for it is to decrease on the consistent rates where your app's ui is updated or reduce on calling page.update consistently.
Try increasing the sleep value to something like 0.6. U'll not run into that error. The only reason why ure getting assertion is because you're trying to update the app's ui At the fastest rate in the way that the app is requesting a ui update even before completing the previous ui update request.
Duplicate Check
Describe the bug
An assertion error is raised when running the attached code.
Code sample
Code
To reproduce
Run the code, then wait for some time while observing the terminal.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
15.0
Flet version
0.26.0
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
Additional details
Issue happens occasionally but very often.
The text was updated successfully, but these errors were encountered: