Project

General

Profile

Actions

Bug #11416

closed

20240626 crashes on startup - bug-report menu problem

Added by David Platt 6 months ago. Updated 6 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/05/2024
Due date:
% Done:

0%

Estimated time:
Chirp Version:
next
Model affected:
All
Platform:
Linux
Debug Log:
I read the instructions above:
Yes

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.


Related issues 1 (0 open1 closed)

Is duplicate of Bug #11400: CHIRP version next 2024-0626 fails to load on linuxClosedDan Smith06/26/2024

Actions
Actions #1

Updated by Dan Smith 6 months ago

  • Is duplicate of Bug #11400: CHIRP version next 2024-0626 fails to load on linux added
  • Status changed from New to Rejected

Duplicate of #11400

Actions

Also available in: Atom PDF