-
Notifications
You must be signed in to change notification settings - Fork 814
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
Crash on pushing screen when a toast is active #4607
Comments
I was calling |
I suspect that is down to the call to Could you try for an MRE again? I suspect it will be a matter of just repeating things very fast. |
Press from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.screen import ModalScreen
from textual.widgets import Footer, Label
class MyScreen(ModalScreen[None]):
def compose(self) -> ComposeResult:
yield Label("MyScreen")
async def on_resize(self) -> None:
await self.recompose()
class MountCrash(App[None]):
BINDINGS = [
Binding("p", "push", "Push a new screen"),
Binding("n", "notification", "Notification"),
]
def compose(self) -> ComposeResult:
yield Label("App")
yield Footer()
def action_notification(self) -> None:
self.notify("Hello, world!", title="Notification message", timeout=10)
async def action_push(self) -> None:
await self.push_screen(MyScreen(), callback=lambda _: None)
app = MountCrash()
if __name__ == "__main__":
app.run() |
I think that's related to: #4570 (see the last MRE of my last response - it also happens on screen change, but pop_screen in my case) |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Unfortunately, the latest change in locks seems does not fix any of my issues mentioned in the linked (closed) issue #4570. Could I ask you @darrenburns to take a look at this, please? Maybe you'll notice something right away, and I have some problems shown there (in MREs), like this mounting error and even the application freeze. |
Please do not comment on closed issues. We need an open issue to track tasks. There's no need to mention any particular dev. |
I haven't been able to isolate an MRE for this. It works if I clear the notifications before I push my modal screen.
More details below:
Details
The text was updated successfully, but these errors were encountered: