Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown error #4596

Open
1 task done
3mora2 opened this issue Dec 18, 2024 · 0 comments
Open
1 task done

unknown error #4596

3mora2 opened this issue Dec 18, 2024 · 0 comments

Comments

@3mora2
Copy link

3mora2 commented Dec 18, 2024

Duplicate Check

Describe the bug

the code work fine, but some time show error like

asyncio:ERROR:Future exception was never retrieved
future: <Future finished exception=AssertionError()>
Traceback (most recent call last):
  File "concurrent\futures\thread.py", line 58, in run
  File "flet\core\page.py", line 948, in wrapper
  File "frontend\Components\TabAddProduct\images.py", line 277, in func_suggest_image
  File "flet\core\page.py", line 1429, in open
  File "flet\core\control.py", line 326, in update
  File "flet\core\page.py", line 723, in update
  File "flet\core\page.py", line 835, in __update
  File "flet\core\page.py", line 851, in __prepare_update
  File "flet\core\control.py", line 487, in build_update_commands
  File "flet_core\control.py", line 483, in build_update_commands
AssertionError

line 277, in func_suggest_image

        self.page.open(
            DialogSearchImage(images_for_drop=self.images(),
                              on_dismiss=lambda x: self.show_image(),
                              update_images_session=self.update_images_session,
                              images=images,
                              title=title,
                              )
        )

in genral it's work fine, but when error show , more error will show

asyncio:ERROR:Future exception was never retrieved
future: <Future finished exception=AssertionError()>
Traceback (most recent call last):
  File "concurrent\futures\thread.py", line 58, in run
  File "flet\core\page.py", line 948, in wrapper
  File "frontend\HomePageParts\appbar.py", line 25, in show_drawer
  File "flet\core\page.py", line 1429, in open
  File "flet\core\control.py", line 326, in update
  File "flet\core\page.py", line 723, in update
  File "flet\core\page.py", line 835, in __update
  File "flet\core\page.py", line 851, in __prepare_update
  File "flet\core\control.py", line 487, in build_update_commands
  File "flet_core\control.py", line 483, in build_update_commands
AssertionError
ALister:INFO:Prepare To Close
ALister:ERROR:on_window_event
Traceback (most recent call last):
  File "frontend\HomePage.py", line 185, in on_window_event
  File "flet\core\page.py", line 482, in destroy
  File "flet\core\page.py", line 721, in update
  File "flet\core\page.py", line 835, in __update
  File "flet\core\page.py", line 851, in __prepare_update
  File "flet\core\control.py", line 487, in build_update_commands
  File "flet\core\control.py", line 487, in build_update_commands
  File "flet_core\control.py", line 483, in build_update_commands
AssertionError

line 185, in on_window_event

        if e.data == "close":
            self.page.window.destroy()

Code sample

Code
[Paste your code here]

To reproduce

error start with page.open ft.AlertDialog

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

win10

Flet version

last version

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant