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
urlscan should redraw the screen after exec'ing browser #10
Comments
Got this during testing. Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/xakz/devel/debian/packages/urlscan/git/urlscan/urlchoose.py", line 200, in _loading_thread
self.draw_screen(size)
File "/home/xakz/devel/debian/packages/urlscan/git/urlscan/urlchoose.py", line 204, in draw_screen
self.ui.draw_screen(size, canvas)
File "/usr/lib/python2.7/dist-packages/urwid/curses_display.py", line 470, in draw_screen
assert self._started
AssertionError How to reproduce: ~/devel/urlscan $ echo '\nhttp://github.com/'|BROWSER=links PYTHONPATH=. bin/urlscan All work fine. I select the link, links starts and load the github page. I press q to quit links, links quits and urlscan redraw the screen, so this fix the bug. but when I press q again to quit urlscan I see the error above. Perhaps a problem with my (old Debian) version of urwid. |
|
Well, I will separate my tests in different comments that follow. |
Test 1 - Debian stable - python 2.x.Details:
Traceback:
Long delay (3-4 sec) after quitting urlscan and the above traceback. |
Test 2 - Debian stable - python 3.xDetails:
urlscan do not start and output the following traceback:
The version of urwid is probably too old for pyhon3. |
Test 3 - Debian unstable - python 2.xDetails:
Same as test 1, all works fine until I quit urlscan. Traceback:
|
Test 4 - Debian unstable - python 3.xDetails:
Same as test 1 and 3, Exception when I quit:
|
For Ubuntu, the test with python 2.x is exactly the same as test 3. And with python 3.x, its the same as test 4. Versions in ubuntu:
urwid version come directly from debian source package (ubuntu universe) |
Also, I noted that if I do not open any link with urlscan, it do not crash and ends normally. |
Ok, I found two problems -- 1 fixable, 1 not.
|
Perfect. I will fill a bug report against python3-urwid on the Debian BTS for python3 + urwid < 1.2.1 Thanks |
Forwarded from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409416
After a text-based browser exits urlscan waits for user input but there
is no display. Control-L neatly fixes the problem, but the program
should probably redraw the screen on its own to restore it.
Reproductible with
The text was updated successfully, but these errors were encountered: