Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34559 - [iotop] crash (UnicodeEncodeError)

Attached to Project: Community Packages
Opened by Green (The_Green_Arrow) - Monday, 01 April 2013, 19:23 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 18 May 2013, 17:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The program just crashes after a while with the following python stacktrace :
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in <module>
main()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 605, in main
main_loop()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 595, in <lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 493, in run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 486, in run_iotop_window
ui.run()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 155, in run
self.process_list.duration)
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 472, in refresh_display
self.win.addstr(i + len(summary) + 1, 0, lines[i])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 106: ordinal not in range(128)

I've downloaded the .tar.gz version from iotop's homepage, and when I use the iotop.py as a standalone program, I can't reproduce this issue...Maybe this program should be run with python (3) instead of python2 ?

Additional info:
* iotop 0.5-1


Steps to reproduce: iotop -Opa as root, and wait (it might take a few minutes before gathering sufficient IO usage statistics).
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Saturday, 18 May 2013, 17:38 GMT
Reason for closing:  Implemented
Additional comments about closing:  iotop-0.5-2 released built with python3

Loading...