-
Notifications
You must be signed in to change notification settings - Fork 815
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
Investigate "Unclosed client session" warning. #3216
Comments
Please note, in case it's relevant, the reported error took place on the |
I think I might still investigate. There is only one point where we create a |
The It proposes a workaround by adding a small sleep between closing the session and closing the loop, and it further points links to an The current code in To test the workaround, I'll need to repro the issue. @holdenweb if you have the original code that was triggering the warning, that'd possibly help me. |
Got the source from the issue reporter, it's a test app (see below) and some utils from this repo. Test appfrom textual.app import App, ComposeResult
from textutils.key_value_edit import KeyValueEditScreen
class TestApp(App):
def on_mount(self):
self.push_screen(KeyValueEditScreen("KEY", "Value Value Value"),
self.done)
self.screen.styles.background = "blue"
def done(self, result):
self.exit(message=f"Done!\nresult: {result}")
app = TestApp()
app.run() |
Couldn't reproduce on Windows/MacOs x Python 3.7, 3.8, 3.9, 3.10, 3.11. |
Given all the documented issues showing this is a problem upstream and given that we can't reproduce it to test a workaround on Textual, I'll close this now. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Reported on Discord https://discord.com/channels/1026214085173461072/1147078573526626395
Running with
textual -dev
can produce the following message.Suggests that there is some cleanup on exit that isn't being done.
The text was updated successfully, but these errors were encountered: