Closed
Description
The flow:
- Event handler onClick called
- Event handler dumps an event (dict) into an anyio memory_stream's send_stream
- Event handler done
- Separate anyio-spawned thread picks up the event (inside an
async for
) - Event is executed, exception hit
- Stack trace posted above happens
The rest of the application (the event queue) is responsive when this happens and I'm able to dispatch/process events via non-idom means.
My fix was to add a try/catch around step 5. The problem is resolved but the stack trace was getting swallowed somehow from the exception in event execution so it took a while to realize it was my code at fault.
Hopefully that all makes sense.
Originally posted by @brentbaum in #392 (reply in thread)
Metadata
Metadata
Assignees
Labels
No labels