glances crashes with utf-8 decoding related problem

Bug #1543210 reported by Alejandro R. Mosteo
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glances (Ubuntu)
Fix Released

Bug Description

This is a 15.10 fresh install, although the user has a home partition saved from previous installs. Note that creating a fresh user shows the same problem, however.

When launching glances this happens:

$ glances
Traceback (most recent call last):
  File "/usr/bin/glances", line 9, in <module>
    load_entry_point('Glances==2.3', 'console_scripts', 'glances')()
  File "/usr/lib/python3/dist-packages/glances/", line 119, in main
  File "/usr/lib/python3/dist-packages/glances/core/", line 62, in __init__
  File "/usr/lib/python3/dist-packages/glances/core/", line 156, in update
  File "/usr/lib/python3/dist-packages/glances/plugins/", line 58, in update
  File "/usr/lib/python3/dist-packages/glances/core/", line 555, in update
    standard_stats=self.get_max_processes() is None)
  File "/usr/lib/python3/dist-packages/glances/core/", line 362, in __get_process_stats
    proc.as_dict(attrs=['cpu_percent', 'memory_percent', 'name', 'cpu_times'], ad_value=''))
  File "/usr/lib/python3/dist-packages/psutil/", line 429, in as_dict
    ret = attr()
  File "/usr/lib/python3/dist-packages/psutil/", line 505, in name
    name =
  File "/usr/lib/python3/dist-packages/psutil/", line 645, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psutil/", line 676, in name
    return' ')[1].replace('(', '').replace(')', '')
  File "/usr/lib/python3.4/", line 319, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 20: invalid continuation byte

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: glances 2.3-1build1
ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
Uname: Linux 4.2.0-27-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64

Date: Mon Feb 8 17:48:40 2016
InstallationDate: Installed on 2016-02-08 (0 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: glances
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alejandro R. Mosteo (mosteo) wrote :
Revision history for this message
Alejandro R. Mosteo (mosteo) wrote :

Also, this happened right after system installation and after a dist-upgrade plus reboot.

Sebastien Badia (sbadia)
Changed in glances (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.