-
Notifications
You must be signed in to change notification settings - Fork 229
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
Variable ListBox crashes for long variables repr #652
Comments
I managed to reproduce, but with the following additions:
|
Anyway this looks more like an |
If it helps, just a single one of those |
Ooh actually to be even more precise it's something to do with the newline characters. If I had to guess I'd say that What I did: import random
floats = [random.random() for _ in range(512)]
columns = [floats[i::5] for i in range(5)]
rows = list(zip(*columns))
strings = '\n'.join(', '.join(str(x) for x in row) for row in rows) This skips the numpy dependency and, by comparing how the different variables behave, you can see that it's really only when you enable line wrapping and use the I'm not sure why |
A workaround for me was to downgrade urwid.
|
Describe the bug
When using
stringifier = repr
and there are several variables with a long repr in the local scope, pudb crashes somewhere inurwid/widget/listbox.py::755
with an error likeThis started happening in the last 2-3 months, I think, but I haven't had time to track it down.
Full traceback
To Reproduce
For a simple reproducer
and then running
python -m pudb reproducer.py
and pressingn
a few times will cause the crash above.Versions
The text was updated successfully, but these errors were encountered: