Re: Audacity crashes on Launch
Paul Licameli <[email protected]> Tue, 18 May 2021 11:37:52 -0400
| Newsgroups | gmane.comp.audio.audacity.devel |
|---|---|
| Message-ID | <CAKUg33q7r8OC-gcSVYt7mJ=T9uiO8SpCdSQUo-_ptRpqoN1Niw@mail.gmail.com> |
--===============2365797156748114453== Content-Type: multipart/alternative; boundary="000000000000e9174305c29c7ea1" --000000000000e9174305c29c7ea1 Content-Type: text/plain; charset="UTF-8" Recent changes of mine may have caused Bug2880 to regress. https://bugzilla.audacityteam.org/show_bug.cgi?id=2280 Is there now a too-early call to AudioIOBase::GetOptimalSupportedSampleRate causing trouble on Linux? PRL On Tue, May 18, 2021 at 11:34 AM Paul Licameli <[email protected]> wrote: > Peter, did you correctly identify the last known good alpha in the > Bugzilla comment? > > PRL > > > On Tue, May 18, 2021 at 11:33 AM Peter Sampson < > [email protected]> wrote: > >> On Mac it does relaunch OK >> >> But the the audaity.cfg I see no entry for >> >[SamplingRate] >> >DefaultProjectSampleRate= ... >> >> But the Project rate at bottom left shows as 44100 >> >> Peter. >> >> >> >> On Tue, May 18, 2021 at 4:13 PM Peter Sampson < >> [email protected]> wrote: >> >>> >>> >>> On Tue, May 18, 2021 at 4:07 PM Steve Fiddle <[email protected]> >>> wrote: >>> >>>> @ Peter, >>>> >>>> Open your audacity.cfg file in a text editor, and change: >>>> [SamplingRate] >>>> DefaultProjectSampleRate=0 >>>> >>>> to: >>>> [SamplingRate] >>>> DefaultProjectSampleRate=44100 >>>> >>> >>> With these two latest alphas I don;t see a >>> >>> >[SamplingRate] >>> >DefaultProjectSampleRate= ... >>> >>> For 3.0.2 I do see >>> >[SamplingRate] >>> >DefaultProjectSampleRate=44100 >>> >>> Peter. >>> >>> >>> >>>> Audacity will then probably launch. >>>> >>>> Steve >>>> >>>> On Tue, 18 May 2021 at 15:59, Peter Sampson >>>> <[email protected]> wrote: >>>> > >>>> > Testing on W10 with Audacity 3.0.3 ea04eef >>>> > >>>> > 1) clear Audacity settings folder >>>> > 2) launch Audacity 3.0.3 ea04eef >>>> > 3) Observe: launches fine >>>> > 4) Exit >>>> > 5) Relaunch: Audacity 3.0.3 ea04eef >>>> > 6) Observe Audacity fails to launch >>>> > >>>> > In fact at Step 5 none of my 3.x Audacities will launch. >>>> > >>>> > Peter. >>>> > >>>> > On Tue, May 18, 2021 at 3:50 PM Steve Fiddle < >>>> [email protected]> wrote: >>>> >> >>>> >> First run gives an assert: >>>> >> src/widgets/FileConfig.cpp(98): assert "mDirty == false" failed in >>>> >> ~FileConfig(). >>>> >> >>>> >> Backtrace: >>>> >> >>>> >> [1] FileConfig::~FileConfig() >>>> >> [2] AudacityFileConfig::~AudacityFileConfig() >>>> >> [3] AudacityFileConfig::~AudacityFileConfig() >>>> >> [4] >>>> std::default_delete<AudacityFileConfig>::operator()(AudacityFileConfig*) >>>> >> const >>>> >> [5] std::unique_ptr<AudacityFileConfig, >>>> >> std::default_delete<AudacityFileConfig> >::~unique_ptr() >>>> >> [6] PluginManager::Load() >>>> >> [7] PluginManager::Initialize() >>>> >> [8] AudacityApp::InitPart2() >>>> >> [9] AudacityApp::OnInit() >>>> >> [10] wxAppConsoleBase::CallOnInit() >>>> >> [11] wxEntry(int&, wchar_t**) >>>> >> [12] wxEntry(int&, char**) >>>> >> [13] main >>>> >> [14] __libc_start_main >>>> >> [15] _start >>>> >> -------------------------------- >>>> >> Second run crashes: >>>> >> >>>> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM >>>> cards.pcm.rear >>>> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM >>>> cards.pcm.center_lfe >>>> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM >>>> cards.pcm.side >>>> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching >>>> channel map >>>> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching >>>> channel map >>>> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching >>>> channel map >>>> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching >>>> channel map >>>> >> Cannot connect to server socket err = No such file or directory >>>> >> Cannot connect to server request channel >>>> >> jack server is not running or cannot be started >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> Cannot connect to server socket err = No such file or directory >>>> >> Cannot connect to server request channel >>>> >> jack server is not running or cannot be started >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port >>>> >> ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port >>>> >> ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid >>>> type for card >>>> >> ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid >>>> type for card >>>> >> Cannot connect to server socket err = No such file or directory >>>> >> Cannot connect to server request channel >>>> >> jack server is not running or cannot be started >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, >>>> >> skipping unlock >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> Expression 'stream->playback.pcm' failed in >>>> >> >>>> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c', >>>> >> line: 4628 >>>> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window is >>>> not shown >>>> >> Segmentation fault (core dumped) >>>> >> -------------------------------- >>>> >> >>>> >> Steve >>>> >> >>>> >> On Tue, 18 May 2021 at 14:35, Steve Fiddle <[email protected]> >>>> wrote: >>>> >> > >>>> >> > Tested on Linux with 3.0.3 ea04ee >>>> >> > >>>> >> > If I remove: >>>> >> > audacity.cfg >>>> >> > pluginsettings.cfg >>>> >> > pluginregistry.cfg >>>> >> > >>>> >> > then Audacity will launch without error. >>>> >> > >>>> >> > If I then exit and try launching again, Audacity crashes: >>>> >> > "Segmentation fault (core dumped)" >>>> >> > >>>> >> > Steve >>>> >> >>>> >> >>>> >> _______________________________________________ >>>> >> audacity-devel mailing list >>>> >> [email protected] >>>> >> https://lists.sourceforge.net/lists/listinfo/audacity-devel >>>> > >>>> > _______________________________________________ >>>> > audacity-devel mailing list >>>> > [email protected] >>>> > https://lists.sourceforge.net/lists/listinfo/audacity-devel >>>> >>> _______________________________________________ >> audacity-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/audacity-devel >> > --000000000000e9174305c29c7ea1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Recent changes of mine may have caused Bug2880 to reg= ress. <a href=3D"https://bugzilla.audacityteam.org/show_bug.cgi?id=3D2280">= https://bugzilla.audacityteam.org/show_bug.cgi?id=3D2280</a></div><div><br>= </div><div>Is there now a too-early call to AudioIOBase::GetOptimalSupporte= dSampleRate causing trouble on Linux?<br><br></div><div>PRL<br><br></div></= div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On= Tue, May 18, 2021 at 11:34 AM Paul Licameli <<a href=3D"mailto:paul.lic= [email protected]">[email protected]</a>> wrote:<br></div><blockquot= e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s= olid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Peter, did yo= u correctly identify the last known good alpha in the Bugzilla comment?</di= v><div><br></div><div>PRL</div><div><br></div></div><br><div class=3D"gmail= _quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, May 18, 2021 at 11:33= AM Peter Sampson <<a href=3D"mailto:[email protected]" tar= get=3D"_blank">[email protected]</a>> wrote:<br></div><bloc= kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:= 1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>On Mac i= t does relaunch OK</div><div><br></div><div>But the the audaity.cfg I see n= o entry for</div><div> >[SamplingRate]<br> >DefaultProjectSampleRate=3D ... <br></div><div><br></div><div>But the P= roject rate at bottom left shows as 44100</div><div><br></div><div>Peter.</= div><div><br></div><div><br></div></div><br><div class=3D"gmail_quote"><div= dir=3D"ltr" class=3D"gmail_attr">On Tue, May 18, 2021 at 4:13 PM Peter Sam= pson <<a href=3D"mailto:[email protected]" target=3D"_blank= ">[email protected]</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></di= v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On T= ue, May 18, 2021 at 4:07 PM Steve Fiddle <<a href=3D"mailto:stevethefidd= [email protected]" target=3D"_blank">[email protected]</a>> wrote:<br>= </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex">@ Peter,<br> <br> Open your audacity.cfg file in a text editor, and change:<br> [SamplingRate]<br> DefaultProjectSampleRate=3D0<br> <br> to:<br> [SamplingRate]<br> DefaultProjectSampleRate=3D44100<br></blockquote><div><br></div><div>With t= hese two latest alphas I don;t see a <br></div><div><br></div><div> >[SamplingRate]<br> >DefaultProjectSampleRate=3D ... <br></div><div><br></div><div>For 3.0.2= I do see</div><div> >[SamplingRate]<br> >DefaultProjectSampleRate=3D44100</div><div><br></div><div>Peter.</div><= div><br></div><div><br> </div><div> </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"> <br> Audacity will then probably launch.<br> <br> Steve<br> <br> On Tue, 18 May 2021 at 15:59, Peter Sampson<br> <<a href=3D"mailto:[email protected]" target=3D"_blank">pet= [email protected]</a>> wrote:<br> ><br> > Testing on W10 with Audacity 3.0.3 ea04eef<br> ><br> > 1) clear Audacity settings folder<br> > 2) launch Audacity 3.0.3 ea04eef<br> > 3) Observe: launches fine<br> > 4) Exit<br> > 5) Relaunch: Audacity 3.0.3 ea04eef<br> > 6) Observe Audacity fails to launch<br> ><br> > In fact at Step 5 none of my 3.x Audacities will launch.<br> ><br> > Peter.<br> ><br> > On Tue, May 18, 2021 at 3:50 PM Steve Fiddle <<a href=3D"mailto:ste= [email protected]" target=3D"_blank">[email protected]</a>> w= rote:<br> >><br> >> First run gives an assert:<br> >> src/widgets/FileConfig.cpp(98): assert "mDirty =3D=3D false&q= uot; failed in<br> >> ~FileConfig().<br> >><br> >> Backtrace:<br> >><br> >> [1] FileConfig::~FileConfig()<br> >> [2] AudacityFileConfig::~AudacityFileConfig()<br> >> [3] AudacityFileConfig::~AudacityFileConfig()<br> >> [4] std::default_delete<AudacityFileConfig>::operator()(Auda= cityFileConfig*)<br> >> const<br> >> [5] std::unique_ptr<AudacityFileConfig,<br> >> std::default_delete<AudacityFileConfig> >::~unique_ptr()<= br> >> [6] PluginManager::Load()<br> >> [7] PluginManager::Initialize()<br> >> [8] AudacityApp::InitPart2()<br> >> [9] AudacityApp::OnInit()<br> >> [10] wxAppConsoleBase::CallOnInit()<br> >> [11] wxEntry(int&, wchar_t**)<br> >> [12] wxEntry(int&, char**)<br> >> [13] main<br> >> [14] __libc_start_main<br> >> [15] _start<br> >> --------------------------------<br> >> Second run crashes:<br> >><br> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.= rear<br> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.= center_lfe<br> >> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.= side<br> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching c= hannel map<br> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching c= hannel map<br> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching c= hannel map<br> >> ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching c= hannel map<br> >> Cannot connect to server socket err =3D No such file or directory<= br> >> Cannot connect to server request channel<br> >> jack server is not running or cannot be started<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> Cannot connect to server socket err =3D No such file or directory<= br> >> Cannot connect to server request channel<br> >> jack server is not running or cannot be started<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port<br> >> ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port<br> >> ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid t= ype for card<br> >> ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid t= ype for card<br> >> Cannot connect to server socket err =3D No such file or directory<= br> >> Cannot connect to server request channel<br> >> jack server is not running or cannot be started<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1,<= br> >> skipping unlock<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> Expression 'stream->playback.pcm' failed in<br> >> '/home/steve/Sourcecode/audacity/lib-src/portaudio-v19/src/hos= tapi/alsa/pa_linux_alsa.c',<br> >> line: 4628<br> >> 15:45:24: Debug: ScreenToClient cannot work when toplevel window i= s not shown<br> >> Segmentation fault (core dumped)<br> >> --------------------------------<br> >><br> >> Steve<br> >><br> >> On Tue, 18 May 2021 at 14:35, Steve Fiddle <<a href=3D"mailto:s= [email protected]" target=3D"_blank">[email protected]</a>>= wrote:<br> >> ><br> >> > Tested on Linux with 3.0.3 ea04ee<br> >> ><br> >> > If I remove:<br> >> > audacity.cfg<br> >> > pluginsettings.cfg<br> >> > pluginregistry.cfg<br> >> ><br> >> > then Audacity will launch without error.<br> >> ><br> >> > If I then exit and try launching again, Audacity crashes:<br> >> > "Segmentation fault (core dumped)"<br> >> ><br> >> > Steve<br> >><br> >><br> >> _______________________________________________<br> >> audacity-devel mailing list<br> >> <a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a><br> >> <a href=3D"https://lists.sourceforge.net/lists/listinfo/audacity-d= evel" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/li= sts/listinfo/audacity-devel</a><br> ><br> > _______________________________________________<br> > audacity-devel mailing list<br> > <a href=3D"mailto:[email protected]" target=3D"_bla= nk">[email protected]</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/audacity-devel= " rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/= listinfo/audacity-devel</a><br> </blockquote></div></div> </blockquote></div> _______________________________________________<br> audacity-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">a= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/audacity-devel" rel= =3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi= nfo/audacity-devel</a><br> </blockquote></div> </blockquote></div> --000000000000e9174305c29c7ea1-- --===============2365797156748114453== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2365797156748114453== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ audacity-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/audacity-devel --===============2365797156748114453==--