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

pyedifice error (failed assertion) #90

Open
jamesdbrock opened this issue Dec 5, 2023 · 0 comments
Open

pyedifice error (failed assertion) #90

jamesdbrock opened this issue Dec 5, 2023 · 0 comments

Comments

@jamesdbrock
Copy link
Member

This gets written to the console and the program hangs:

Exception in callback App._defer_rerender.<locals>.rerender_callback() at /nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/app.py:199
handle: <Handle App._defer_rerender.<locals>.rerender_callback() at /nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/app.py:199>
Traceback (most recent call last):
  File "/nix/store/s6fgyqbk8vn1014daznm5kqx90xdn86x-python3-3.10.13/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/app.py", line 202, in rerender_callback
    self._request_rerender(list(els), {})
  File "/nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/app.py", line 233, in _request_rerender
    render_result.run()
  File "/nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/engine.py", line 301, in run
    command.fn(*command.args, **command.kwargs)
  File "/nix/store/5p5w586v2gr5zmf0g94iwrka60mbwn4g-python3-3.10.13-env/lib/python3.10/site-packages/edifice/base_components/base_components.py", line 1682, in _set_on_change
    assert self.underlying is not None
AssertionError

This gets written to the label (truncated):

/home/...
[Errno 2] No such file or directory: '/home/...'

I think we should try to ensure that edifice crashes in a more graceful way.

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