Skip to content
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

Exception when Glances is ran with limited plugin list #2822

Closed
nicolargo opened this issue Jun 9, 2024 · 2 comments
Closed

Exception when Glances is ran with limited plugin list #2822

nicolargo opened this issue Jun 9, 2024 · 2 comments
Labels
Milestone

Comments

@nicolargo
Copy link
Owner

Example:

glances --disable-plugin all --enable cp

Traceback (most recent call last):
                                    File "<frozen runpy>", line 198, in _run_module_as_main
                                                                                             File "<frozen runpy>", line 88, in _run_code
                                                                                                                                           File "/home/nicolargo/dev/glances/glances/__main__.py", line 17, in <module>
                             glances.main()
                                             File "/home/nicolargo/dev/glances/glances/__init__.py", line 173, in main
                                                                                                                          start(config=core.get_config(), args=core.get_args())
                                                                                                                                                                                 File "/home/nicolargo/dev/glances/glances/__init__.py", line 121, in start
                                                                 mode.serve_forever()
                                                                                       File "/home/nicolargo/dev/glances/glances/standalone.py", line 184, in serve_forever
                                                                                                                                                                               while self.__serve_once():
                     ^^^^^^^^^^^^^^^^^^^
                                          File "/home/nicolargo/dev/glances/glances/standalone.py", line 156, in __serve_once
                                                                                                                                 ret = not self.screen.update(self.stats, duration=adapted_refresh)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                                             File "/home/nicolargo/dev/glances/glances/outputs/glances_curses.py", line 1186, in update
                                                                                                                                                                           self.flush(stats, cs_status=cs_status)
                     File "/home/nicolargo/dev/glances/glances/outputs/glances_curses.py", line 1167, in flush
                                                                                                                  self.display(stats, cs_status=cs_status)
                                                                                                                                                            File "/home/nicolargo/dev/glances/glances/outputs/glances_curses.py", line 653, in display
                                                            self.separator_line()
                                                                                   File "/home/nicolargo/dev/glances/glances/outputs/glances_curses.py", line 573, in separator_line
                                                                                                                                                                                        self.term_window.addnstr(
                   _curses.error: addnwstr() returned ERR
@nicolargo nicolargo added the bug label Jun 9, 2024
@nicolargo
Copy link
Owner Author

Exception should be catched in separator method.

@nicolargo
Copy link
Owner Author

Corrected in develop branch.

@nicolargo nicolargo added this to the Glances 4.1.0 milestone Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant