-
Notifications
You must be signed in to change notification settings - Fork 113
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 while trying to read a post in TUI mode #481
Comments
A crash with the textembed widget. I'll look into it when I can. |
I am awaiting an account on mstdn.games to be approved, but in the meantime, I have found what appears to be the same status message on another server (mastodon.social). It loads without crashing on my system. I do not doubt that you are experiencing this crash; I've seen similar ones before and have fixed them. We might have some kind of URL parsing issue. I'll look into it as much as I can using the data from mastodon.social, and then hopefully will be able to go back to mstdn.games and try to reproduce the crash bug. (Ubuntu 22.04/Toot 0.43) |
The problem is certainly the 7 embedded nonprintable characters \x00\x01\x01\x01\x01\x01\x01; this explains the 52 character canvas vs text size 45 difference, and thus the error. Now I have to find out where those nonprintable characters come from and how to exclude them from canvas size. @AnonymouX47 may have an idea? rwid.widget.widget.WidgetError: Widget <TextEmbed fixed/flow widget '\x00\x01\x01\x01\x01\x01\x01 Credo!'> rendered (52 x 1) canvas when passed size (45,)! |
Hello! I believe this has been fixed in AnonymouX47/urwidgets#2 following your report in urwid/urwid#802 but I noticed Line 40 in b97a995
Interestingly, the dependency was bumped in #470 but the changes were later [i suppose, mistakenly] reverted (as a result of a force-push) on the To cut the long story short, I believe bumping Thank you very much. 😃 |
I don't know if this is related to the same problem, so please forgive me if I'm reporting the very same bug twice. Here's an example of the runtime error I got when I tried to read https://mastodon.social/@verge/112333357099316007 :
|
Yes, it's very much related being that the errors originate from the same dependency, Unfortunately, I don't think I can investigate/test this at the moment but as soon as I can, I'll report my findings, if this issue hasn't been resolved yet. Thank you. |
@AnonymouX47 good catch on the dependency revert; I'm fixing that now. |
I just tried the new build on Homebrew and can confirm that Toot is no longer crashing on my Mac. |
Toot 0.43.0 (TUI) crashes on my MacBook Air (MacOS 12.7.3 / Python 3.12) each time I try to read this post: https://mstdn.games/@luny/112331870367545013
This is the error message I'm getting from toot:
The text was updated successfully, but these errors were encountered: