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

Event loop stalls in network test #445

Open
mhsmith opened this issue Apr 15, 2024 · 0 comments
Open

Event loop stalls in network test #445

mhsmith opened this issue Apr 15, 2024 · 0 comments
Labels
bug A crash or error in behavior.

Comments

@mhsmith
Copy link
Member

mhsmith commented Apr 15, 2024

Describe the bug

[@mhsmith] The test app from beeware/rubicon-java#49 works on Android (after merging beeware/toga#2481), but it doesn't work on macOS – it stops at the first network connection. Is there something wrong with the Cocoa event loop implementation?

[@freakboy3742] Interesting... asyncio.ensure_future(self.say_sleep_works()) stalls after the sleep, but self.loop.create_task(self.say_sleep_works()) does work. My guess is that there is something odd going on with asyncio.get_event_loop(); more investigation is definitely required.

Environment

  • Operating System: macOS
  • Python version: 3.8
  • Software versions:
    • Rubicon: 0.4.7
@mhsmith mhsmith added the bug A crash or error in behavior. label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior.
Projects
None yet
Development

No branches or pull requests

1 participant