glances crashes at startup

Bug #1425019 reported by Dimitri Papadopoulos
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
glances (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
$
$ apt-cache policy glances
glances:
  Installé : 1.7.3-2ubuntu1
  Candidat : 1.7.3-2ubuntu1
 Table de version :
 *** 1.7.3-2ubuntu1 0
        900 http://totem.intra.cea.fr/depots/ubuntu/20_jours/ trusty/universe amd64 Packages
         99 /var/lib/dpkg/status

Running the command 'glances' results in an immediate crash, and the the GNOME terminal is left in a strang state that requires a "reset" to recover newlines:

$ glances
Traceback (most recent call last):
                                    File "/usr/bin/glances", line 9, in <module>
    load_entry_point('Glances==1.7.3', 'console_scripts', 'glances')()
                                                                        File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 4678, in main
                                                                          stats.update()
          File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 1673, in update
              self.__update__(input_stats)
                                            File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 1652, in __update__
                                                    self.glancesgrabprocesses.update()
        File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 1211, in update
            procstat = self.__get_process_stats(proc)
                                                       File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 1157, in __get_process_stats
                                                                        procstat['cmdline'] = ' '.join(proc.cmdline)
                                    TypeError
                                             $

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glances (Ubuntu):
status: New → Confirmed
Revision history for this message
nukashioru (nukashioru) wrote :

lxterm on lubuntu 14.04.2 gives

Press 'h' for help 2015-03-02 17:36:52Traceback (most recent call last):
                                   File "/usr/bin/glances", line 9, in <module>
                                                                                   load_entry_point('Glances==1.7.3', 'console_scripts', 'glances')()
                                                                  File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 4681, in main
                                                               screen.update(stats)
                                                                                     File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 2481, in update
                                                                                    self.flush(stats, cs_status=cs_status)
                                       File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 2470, in flush
                                     self.display(stats, cs_status=cs_status)
                                                                               File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 2449, in display
                                                                               diskio_count + fs_count + hddtemp_count)
                                    File "/usr/lib/python2.7/dist-packages/glances/glances.py", line 3202, in displayLog
                                       self.log_x, logmsg, len(logmsg))
                                                                       _curses.error: addnstr() returned ERR

the same error occurs both in/outside of tmux.

Revision history for this message
Mikhail Emelchenkov (m-emelchenkov) wrote :

Still not fixed for 14.04.5

# lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04

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.