Bug 2224145 - [abrt] terminator: get_menu_item_mask(): terminal_popup_menu.py:33:get_menu_item_mask:AttributeError: 'NoneType' object has no attribute 'lower'
Summary: [abrt] terminator: get_menu_item_mask(): terminal_popup_menu.py:33:get_menu_i...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: terminator
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominic Hopf
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:49551506ae5ed33402ad2710140...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-20 00:25 UTC by Azyrod
Modified: 2024-06-18 01:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-28 13:33:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: open_fds (2.40 KB, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: environ (2.34 KB, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: os_info (667 bytes, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: mountinfo (4.46 KB, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: backtrace (1.17 KB, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details
File: cpuinfo (2.84 KB, text/plain)
2023-07-20 00:25 UTC, Azyrod
no flags Details

Description Azyrod 2023-07-20 00:25:30 UTC
Description of problem:
I tried to right click in terminator to open the context menu.

I currently cannot access the menu anymore - I cannot go to terminator settings anymore

Version-Release number of selected component:
terminator-2.1.3-1.fc38

Additional info:
reporter:       libreport-2.17.11
exception_type: AttributeError
uid:            1000
interpreter:    python3-3.11.4-1.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/terminator -m
crash_function: get_menu_item_mask
reason:         terminal_popup_menu.py:33:get_menu_item_mask:AttributeError: 'NoneType' object has no attribute 'lower'
executable:     /usr/bin/terminator
kernel:         6.3.12-200.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
type:           Python3
package:        terminator-2.1.3-1.fc38
runlevel:       N 5

Truncated backtrace:
terminal_popup_menu.py:33:get_menu_item_mask:AttributeError: 'NoneType' object has no attribute 'lower'

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/terminatorlib/terminal.py", line 1031, in on_buttonpress
    right_click[0](*right_click[1])
  File "/usr/lib/python3.11/site-packages/terminatorlib/terminal.py", line 1077, in popup_menu
    menu.show(widget, event)
  File "/usr/lib/python3.11/site-packages/terminatorlib/terminal_popup_menu.py", line 270, in show
    item = self.menu_item(Gtk.CheckMenuItem, 'toggle_scrollbar',
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/terminatorlib/terminal_popup_menu.py", line 55, in menu_item
    mask    = self.get_menu_item_mask(maskstr)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/terminatorlib/terminal_popup_menu.py", line 33, in get_menu_item_mask
    maskstr = maskstr.lower()
              ^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'

Local variables in innermost frame:
self: <terminatorlib.terminal_popup_menu.TerminalPopupMenu object at 0x7fb70ca11590>
maskstr: None
mask: 0

Comment 1 Azyrod 2023-07-20 00:25:34 UTC
Created attachment 1976612 [details]
File: open_fds

Comment 2 Azyrod 2023-07-20 00:25:36 UTC
Created attachment 1976613 [details]
File: namespaces

Comment 3 Azyrod 2023-07-20 00:25:37 UTC
Created attachment 1976614 [details]
File: environ

Comment 4 Azyrod 2023-07-20 00:25:39 UTC
Created attachment 1976615 [details]
File: os_info

Comment 5 Azyrod 2023-07-20 00:25:40 UTC
Created attachment 1976616 [details]
File: mountinfo

Comment 6 Azyrod 2023-07-20 00:25:42 UTC
Created attachment 1976617 [details]
File: backtrace

Comment 7 Azyrod 2023-07-20 00:25:43 UTC
Created attachment 1976618 [details]
File: cpuinfo

Comment 8 Matt Rose 2023-07-20 04:28:37 UTC
You've disabled the keybinding for toggle_scrollbar in .config/terminator/config.  There was a bug introduced in 2.1.3 that causes the context menu not to render properly if items in the contexet menu do not have a keybinding.  This is fixed in masterm, but If you remove the toggle_scrollbar = None line from your config file while I release a new version your context menu will work again

Comment 9 Aoife Moloney 2024-05-28 13:33:16 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 10 John Slade 2024-06-17 16:07:38 UTC
Right click on terminal


reporter:       libreport-2.17.11
kernel:         6.6.13-100.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/terminator
uid:            1000
reason:         terminal_popup_menu.py:33:get_menu_item_mask:AttributeError: 'NoneType' object has no attribute 'lower'
executable:     /usr/bin/terminator
type:           Python3
package:        terminator-2.1.3-1.fc38
runlevel:       N 5
exception_type: AttributeError
crash_function: get_menu_item_mask
interpreter:    python3-3.11.7-2.fc38.x86_64
comment:        Right click on terminal

Comment 11 Matt Rose 2024-06-18 01:19:40 UTC
There's actually a fix for this in the latest release of terminator.  I just need to package it up for Fedora at this point.  

https://github.com/gnome-terminator/terminator/releases/tag/v2.1.4


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