Bug #11416
closed20240626 crashes on startup - bug-report menu problem
0%
Description
What I did - installed chirp-20240626-py3-none-any.whl on a Debian "testing" ("trixie") laptop and invoked it with ".local/bin/chirp".
Expected behavior: UI appears.
Actual behavior: UI does not appear. chirp crashes during startup:
dplatt@mewlips:~$ .local/bin/chirp
Traceback (most recent call last):
File "/home/dplatt/.local/bin/chirp", line 8, in
sys.exit(chirpmain())
^
File "/home/dplatt/.local/share/pipx/venvs/chirp/lib/python3.11/site-packages/chirp/wxui/init.py", line 214, in chirpmain
mainwindow = main.ChirpMain(None, title='CHIRP')
File "/home/dplatt/.local/share/pipx/venvs/chirp/lib/python3.11/site-packages/chirp/wxui/main.py", line 427, in init
self.SetMenuBar(self.make_menubar())
File "/home/dplatt/.local/share/pipx/venvs/chirp/lib/python3.11/site-packages/chirp/wxui/main.py", line 973, in make_menubar
self.bug_report_item.Enable(False)
wx._core.wxAssertionError: C++ assertion ""m_menuItem"" failed at ./src/gtk/menu.cpp(803) in Enable(): invalid menu item
Analysis: the Enable() call is being performed on a menu item which hasn't yet been added to any menu bar. It looks as if this attempts to trigger a menu-bar reconstruction/redraw on the null menubar, triggering a crash.
Remedy: move the Enable() call down to the end of this paragraph, after "help_menu.Append(self.bug_report_item)". This appears to fix the problem.