Bug 2282299 - [abrt] glances: display_popup(): glances_curses.py:976:display_popup:_curses.error: addnwstr() returned ERR
Summary: [abrt] glances: display_popup(): glances_curses.py:976:display_popup:_curses....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glances
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ali Erdinc Koroglu
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:8f11f52dc03e1ed329b6f4b6f4a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-22 07:47 UTC by kevinleroy
Modified: 2024-06-17 08:47 UTC (History)
4 users (show)

Fixed In Version: glances-4.0.5-2.fc40 glances-4.0.5-2.fc39
Clone Of:
Environment:
Last Closed: 2024-06-02 01:22:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: mountinfo (3.17 KB, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: backtrace (2.08 KB, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: open_fds (390 bytes, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: environ (2.29 KB, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: os_info (699 bytes, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: cpuinfo (3.20 KB, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details
File: namespaces (171 bytes, text/plain)
2024-05-22 07:47 UTC, kevinleroy
no flags Details

Description kevinleroy 2024-05-22 07:47:46 UTC
Version-Release number of selected component:
glances-3.4.0-5.fc40

Additional info:
reporter:       libreport-2.17.15
cmdline:        /usr/bin/python3 -sP /usr/bin/glances
executable:     /usr/bin/glances
exception_type: _curses.error
runlevel:       N 5
reason:         glances_curses.py:976:display_popup:_curses.error: addnwstr() returned ERR
package:        glances-3.4.0-5.fc40
kernel:         6.7.11-200.fc39.x86_64
uid:            0
type:           Python3
interpreter:    python3-3.12.3-2.fc40.x86_64
cgroup:         0::/user.slice/user-1333.slice/user/app.slice/app-org.kde.konsole-3cfa023e06d5446588959cc9cdc77d86.scope
crash_function: display_popup

Truncated backtrace:
glances_curses.py:976:display_popup:_curses.error: addnwstr() returned ERR

Traceback (most recent call last):
  File "/usr/bin/glances", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/glances/__init__.py", line 180, in main
    start(config=core.get_config(), args=core.get_args())
  File "/usr/lib/python3.12/site-packages/glances/__init__.py", line 131, in start
    mode.serve_forever()
  File "/usr/lib/python3.12/site-packages/glances/standalone.py", line 168, in serve_forever
    while self.__serve_once():
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/glances/standalone.py", line 152, in __serve_once
    ret = not self.screen.update(self.stats, duration=adapted_refresh)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1186, in update
    self.flush(stats, cs_status=cs_status)
  File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1133, in flush
    self.display(stats, cs_status=cs_status)
  File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 714, in display
    self.kill(stats.get_plugin('processlist').get_raw()[self.args.cursor_position])
  File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 748, in kill
    confirm = self.display_popup(
              ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 976, in display_popup
    popup.addnstr(2 + y, 2, m, len(m))
_curses.error: addnwstr() returned ERR

Local variables in innermost frame:
self: <glances.outputs.glances_curses.GlancesCursesStandalone object at 0x7fc4a8410b00>
message: 'Kill process: VBoxSVC (pid: 7149) ?\n\nConfirm ([y]es/[n]o): '
size_x: 39
size_y: 7
duration: 3
popup_type: 'yesno'
input_size: 30
input_value: None
sentence_list: ['Kill process: VBoxSVC (pid: 7149) ?', '', 'Confirm ([y]es/[n]o): ']
screen_x: 116
screen_y: 51
pos_x: 38
pos_y: 22
popup: <_curses.window object at 0x7fc4a6313ef0>
y: 1
m: ''

Comment 1 kevinleroy 2024-05-22 07:47:49 UTC
Created attachment 2034557 [details]
File: mountinfo

Comment 2 kevinleroy 2024-05-22 07:47:51 UTC
Created attachment 2034558 [details]
File: backtrace

Comment 3 kevinleroy 2024-05-22 07:47:52 UTC
Created attachment 2034559 [details]
File: open_fds

Comment 4 kevinleroy 2024-05-22 07:47:54 UTC
Created attachment 2034560 [details]
File: environ

Comment 5 kevinleroy 2024-05-22 07:47:55 UTC
Created attachment 2034561 [details]
File: os_info

Comment 6 kevinleroy 2024-05-22 07:47:57 UTC
Created attachment 2034562 [details]
File: cpuinfo

Comment 7 kevinleroy 2024-05-22 07:47:58 UTC
Created attachment 2034563 [details]
File: namespaces

Comment 8 Brian J. Murrell 2024-05-22 17:20:43 UTC
Not sure why this happened.


reporter:       libreport-2.17.15
kernel:         6.8.9-300.fc40.x86_64
cmdline:        /usr/bin/python3 -sP /bin/glances
cgroup:         0::/user.slice/user-1001.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-7d6ddffa-d97f-4c7c-8914-a27da1b20879.scope
uid:            1001
reason:         glances_curses.py:976:display_popup:_curses.error: addnwstr() returned ERR
executable:     /bin/glances
type:           Python3
package:        glances-3.4.0-5.fc40
runlevel:       N 5
exception_type: _curses.error
crash_function: display_popup
interpreter:    python3-3.12.3-2.fc40.x86_64
comment:        Not sure why this happened.

Comment 9 Fedora Update System 2024-05-24 15:04:19 UTC
FEDORA-2024-af1f06c79c (glances-4.0.5-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-af1f06c79c

Comment 10 Fedora Update System 2024-05-24 15:04:28 UTC
FEDORA-2024-b8e474fbd3 (glances-4.0.5-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b8e474fbd3

Comment 11 Fedora Update System 2024-05-25 01:48:42 UTC
FEDORA-2024-af1f06c79c has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-af1f06c79c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-af1f06c79c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-05-25 01:56:57 UTC
FEDORA-2024-b8e474fbd3 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b8e474fbd3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b8e474fbd3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-06-02 01:22:03 UTC
FEDORA-2024-b8e474fbd3 (glances-4.0.5-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-06-02 03:37:44 UTC
FEDORA-2024-af1f06c79c (glances-4.0.5-2.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 dolfandringa@gmail.com 2024-06-17 08:47:36 UTC
I am having this issue with glances-4.0.5-2.fc40.noarch still when trying to kill a process in glances with a slightly different stack trace (had to manually restore formatting, sorry if its a bit messed up still):
```
Traceback (most recent call last):
2024-06-17 10:41:36 CEST            File "/usr/bin/glances", line 8, in <module>
                                         sys.exit(main())
                                                  ^^^^^^
                                    File "/usr/lib/python3.12/site-packages/glances/__init__.py", line 173, in main
                                         start(config=core.get_config(), args=core.get_args())
                                    File "/usr/lib/python3.12/site-packages/glances/__init__.py", line 121, in start
                                         mode.serve_forever()
                                    File "/usr/lib/python3.12/site-packages/glances/standalone.py", line 181, in serve_forever
                                         while self.__serve_once():
                                               ^^^^^^^^^^^^^^^^^^^
                                    File "/usr/lib/python3.12/site-packages/glances/standalone.py", line 153, in __serve_once
                                         ret = not self.screen.update(self.stats, duration=adapted_refresh)
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1221, in update
                                         self.flush(stats, cs_status=cs_status)
                                    File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1167, in flush
                                         self.display(stats, cs_status=cs_status)
                                    File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 708, in display
                                         self.kill(stats.get_plugin('processlist').get_raw()[self.args.cursor_position])
                                    File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 742, in kill
                                          confirm = self.display_popup(
                                                    ^^^^^^^^^^^^^^^^^^^
                                    File "/usr/lib/python3.12/site-packages/glances/outputs/glances_curses.py", line 1025, in display_popup
                                          sub_pop.addnstr(0, 0, '', 0)
                                    _curses.error: addnwstr() returned ERR
```


Note You need to log in before you can comment on or make changes to this bug.