Assertion failure in wxMenuItemBase (Version: 2.0.6-2)

Version: 2.0.6-2
libwxgtk3.0-0: 3.0.2-1+b1
System is Debian Sid, Gnome Version 3.14.1

On Startup and repeating later (continued) when hovering/opening the menus:

First Assertion:

ASSERT INFO:
…/src/common/menucmn.cpp(310): assert “wxIsStockID(GetId())” failed in SetItemLabel(): A non-stock menu item with an empty label?

BACKTRACE:
[1] wxMenuItemBase::SetItemLabel(wxString const&)
[2] wxMenuItemBase::wxMenuItemBase(wxMenu*, int, wxString const&, wxString const&, wxItemKind, wxMenu*)
[3] wxMenuItem::wxMenuItem(wxMenu*, int, wxString const&, wxString const&, wxItemKind, wxMenu*)
[4] wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, wxItemKind, wxMenu*)
[5] CommandManager::AddItemList(wxString, wxArrayString, CommandFunctor*, bool)
[6] AudacityProject::CreateMenusAndCommands()
[7] AudacityProject::AudacityProject(wxWindow*, int, wxPoint const&, wxSize const&)
[8] CreateNewAudacityProject()
[9] AudacityApp::OnInit()
[10] wxEntry(int&, wchar_t**)
[11] main
[12] __libc_start_main
[13] _start

… plus second assertion shortly after pressing “Continue”

ASSERT INFO:
…/src/common/stockitem.cpp(213): assert “Assert failure” failed in wxGetStockLabel(): invalid stock item ID

BACKTRACE:
[1] wxGetStockLabel(int, long)
[2] wxMenuItemBase::SetItemLabel(wxString const&)
[3] wxMenuItem::SetItemLabel(wxString const&)
[4] CommandManager::ToggleAccels(wxMenu*, bool)
[5] CommandManager::HandleMenuClose(wxMenuEvent&)
[6] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[7] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[8] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[9] wxEvtHandler::TryHereOnly(wxEvent&)
[10] wxEvtHandler::ProcessEventLocally(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] g_closure_invoke
[14] g_signal_emit_valist
[15] g_signal_emit
[16] gtk_widget_hide
[17] gtk_menu_popdown
[18] g_signal_emit_valist
[19] g_signal_emit
[20] gtk_menu_item_deselect
[21] g_closure_invoke
[22] g_signal_emit_valist
[23] g_signal_emit
[24] g_closure_invoke
[25] g_signal_emit_valist
[26] g_signal_emit
[27] gtk_main_do_event
[28] g_main_context_dispatch
[29] g_main_loop_run
[30] gtk_main
[31] wxGUIEventLoop::DoRun()
[32] wxEventLoopBase::Run()
[33] wxAppConsoleBase::MainLoop()
[34] wxEntry(int&, wchar_t**)
[35] main
[36] __libc_start_main
[37] _start


$ apt-cache show audacity
Package: audacity
Version: 2.0.6-2
Installed-Size: 9763
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Architecture: amd64
(…)

Backtraces copied from the wxgtk crash-dialogue. A more detailed backtrace from gdb is attached.
gdb.txt (18.2 KB)

Thanks for the report.
Audacity does not yet officially support wxWidgets 3.x (though it is likely to in the very near future).

If you have not already done so, it will help Benjamin (the Audacity package maintainer for Debian) if you report the issue via their bug report system. I would expect these types of issues are likely to occur quite regularly until the Audacity developers and Debian are using the same version of wxWidgets to build Audacity - there are a lot of incompatibilities between wxWidgets 2.8 and 3.x.