Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1648 - Crash clicking Help icon in Spectrograms Settings
Crash clicking Help icon in Spectrograms Settings
Status: RESOLVED QUICKFIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.2.0
Per OS All
: P1 Repeatable
Assigned To: Default Assignee for New Bugs
: test_single_OS
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-19 21:06 UTC by Gale Andrews
Modified: 2018-08-20 11:51 UTC (History)
8 users (show)

See Also:
Steps To Reproduce:
1 Launch Audacity, create some audio, use the Track Dropdown Menu to change to Spectrogram view then click "Spectrogram Settings...". "Location of Manual" in Preferences does not matter. 2 In "Spectrogram Settings", click the "Help" icon. Audacity crashes.
Release Note:
not needed we hope.
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
gale: Test‑OK‑Mac+
stevethefiddle: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2017-05-19 21:06:21 UTC
Reproduced on Win 10 and Ubuntu 14.04 so presumed "all". gdb backtrace from release build provided below for information.

Program received signal SIGSEGV, Segmentation fault.
PrefsDialog::OnHelp (this=0xbfffd928) at prefs/PrefsDialog.cpp:399
399	   PrefsPanel* panel = static_cast<PrefsPanel*>(mCategories->GetCurrentPage());
(gdb) bt
#0  PrefsDialog::OnHelp (this=0xbfffd928) at prefs/PrefsDialog.cpp:399
#1  0xb74b42f6 in wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#2  0xb74b471b in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#3  0xb763d46a in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#4  0xb763d52a in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#5  0xb763d8f3 in wxEvtHandler::TryHereOnly(wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#6  0xb763d974 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#7  0xb763d9d5 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#8  0xb7a455cf in wxWindowBase::TryAfter(wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_gtk2u_core-3.0.so.0
#9  0xb763da8d in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /home/gale/wxWidgets-3.0.2/lib/libwx_baseu-3.0.so.0
#10 0xb763d734 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
Comment 1 James Crook 2017-05-20 04:32:40 UTC
DEVEL - FIX MADE
https://github.com/audacity/audacity/commit/4e187d0ce0ce436a11b77c6e431e41c185e39563

I marked this 'test_single_OS' as the bug was at the level of a typo -
 Audacity was following a null pointer.  The fix is simple and very local in effect, not likely to have unexpected repercussions.  This is a typical 'QUICKFIX' (I hope!).
Comment 2 Peter Sampson 2017-05-20 06:01:00 UTC
I don't know where this Help button is targetting in the Manual (no nightly availabe yet to test) - but it made me realize that we had an omission in not describing the per-track settings RCP dropdown command on the ASpectrogram View page: 
http://alphamanual.audacityteam.org/man/Spectrogram_View

I have placed a P1 there to address that - and once I have completed that it is likely to be a much better target for the Help button in the Specttrogram View TCP command for Spectrogram Settings...
Comment 3 Peter Sampson 2017-05-20 06:55:24 UTC
(In reply to Peter Sampson from comment #2)
I have added a new H2 section on per-track settings on:
http://alphamanual.audacityteam.org/man/Spectrogram_View#spectrogram_settings

I think this will be the best/better, certainly preferred, target for the Spectrogram TCP>Spectrogram Settings>Help button.
Comment 4 Steve Daulton 2017-05-20 07:08:48 UTC
I was not able to reproduce the crash on Xubuntu 16.04, but I see the potential problem that would account for the crash and which James fixed, and the fixed version works fine here.
Comment 5 Steve Daulton 2017-05-20 07:28:19 UTC
(In reply to Steve Daulton from comment #4)
Retested with commit 01f853f174e43e5d6 (before James fixed it), and can now reproduce the crash and confirm that https://github.com/audacity/audacity/commit/4e187d0ce0c fixes it.
Comment 6 Gale Andrews 2017-05-23 21:44:14 UTC
Tested OK on Mac since I was in that dialog anyway.