-
Notifications
You must be signed in to change notification settings - Fork 49
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
"_curses.error: addstr() returned ERR" issue when printing tsv files that has long width #132
Comments
Any chance you could supply a sample file that triggers this crash? I open lots of big CSV files that are wider and taller than the screen without errors. Also, what platform and terminal are you running on? Thanks! |
Hello, I can't upload the file so I put it here. If you open the file using tabview in some specific window width & height combination, it will crash. You can try opening the file through tabview and then use the mouse to resize the window of your terminal. I'm running Mac OS X El Capitan on a Macbook Pro, using iTerm and ssh'ed to a CentOS box (release 5.6). Thanks! |
Well hrm. I can't get it to fail at all. I've tried both urxvt and xterm. I tried the file you sent and I tried my weirdest unicode test file (in the sample directory...and I made it bigger and wider too). I tried resizing the terminals. Nothing made it quit. I tried with the change you made and it also didn't crash. I'm a little hesitant to permanently change the line you modified since it was added when we added double-width character support (#92). @wavexx, any thoughts? Scott |
As a suggestion, when you make it crash with the correct terminal
settings, just
echo $LINES $COLUMNS
env | egrep 'LC_|LANG'
so that we can try to reproduce it.
|
Hello, thanks for helping me out! It happens when I'm reducing the height of the window (so that the characters will fill up the window, and that's why I put 73 lines in the file).
|
@firecat53 I'm bit busy right now, but this should be enough to trigger it again. |
Hello there,
After opening a tsv file, when scrolling right, the app crashed and I got this exception.
It happens only when the tsv file is at least full screen height, and the width is long enough.
I changed this line to
if yc == self.max_y - 1:
, (which probably means always useinsstr()
for rendering bottom line of the window?), then it will go through for any files for me.The text was updated successfully, but these errors were encountered: