glances crashes with utf-8 decoding related problem

Bug #1543210 reported by Alejandro R. Mosteo on 2016-02-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glances (Ubuntu)
Undecided
Unassigned

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/__init__.py", line 119, in main
    args=core.get_args())
  File "/usr/lib/python3/dist-packages/glances/core/glances_standalone.py", line 62, in __init__
    self.stats.update()
  File "/usr/lib/python3/dist-packages/glances/core/glances_stats.py", line 156, in update
    self._plugins[p].update()
  File "/usr/lib/python3/dist-packages/glances/plugins/glances_processcount.py", line 58, in update
    glances_processes.update()
  File "/usr/lib/python3/dist-packages/glances/core/glances_processes.py", line 555, in update
    standard_stats=self.get_max_processes() is None)
  File "/usr/lib/python3/dist-packages/glances/core/glances_processes.py", 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/__init__.py", line 429, in as_dict
    ret = attr()
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 505, in name
    name = self._proc.name()
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 645, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 676, in name
    return f.read().split(' ')[1].replace('(', '').replace(')', '')
  File "/usr/lib/python3.4/codecs.py", 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
CurrentDesktop:

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)

Alejandro R. Mosteo (mosteo) wrote :
Alejandro R. Mosteo (mosteo) wrote :

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

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

Other bug subscribers