Assert failing in Audacity 2.2.2

Help for Audacity 2.x.x on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 2.x.x on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
ky3d
Posts: 9
Joined: Wed Oct 24, 2018 3:05 pm
Operating System: Linux *buntu

Assert failing in Audacity 2.2.2

Post by ky3d » Sun Oct 28, 2018 10:42 am

I ran Audacity 2.2.2 for more than 2 days, used mod-script-pipe and also Nyquist prompt. After loading a 100 MB WAV file when played for few seconds and stopped, it hung. After waiting one hour I killed Audacity with kill -9. Now whenever I exit audacity it is giving me this assert failure before exiting

../../../lib-src/mod-nyq-bench/NyqBench.cpp(171): assert "gBench != __null" failed in ModuleDispatch().
Debug: 1 threads were not terminated by the application.

Also the two pipes in /tmp are not getting deleted when audacity exits.

i have removed the /tmp pipes which debug thread I need to kill?

I am using the source from
https://github.com/audacity/audacity/releases

I compiled the source with these options
../configure --with-lib-preference="local system" --with-ffmpeg="system" --disable-dynamic-loading --with-mod-script-pipe --with-mod-nyq-bench

and the platform is Ubuntu 18.04 Linux

steve
Site Admin
Posts: 49027
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by steve » Sun Oct 28, 2018 11:25 am

ky3d wrote:
Sun Oct 28, 2018 10:42 am
../../../lib-src/mod-nyq-bench/NyqBench.cpp(171): assert "gBench != __null" failed in ModuleDispatch().
Debug: 1 threads were not terminated by the application.
Did you build and enable Nyquist Workbench?
Do you use Nyquist Workbench?
ky3d wrote:
Sun Oct 28, 2018 10:42 am
Also the two pipes in /tmp are not getting deleted when audacity exits.
That is known issue (see bottom of this page: https://alphamanual.audacityteam.org/man/Scripting), but it is (to quote Douglas Adams) "mostly harmless". On most Linux system, when you reboot the computer the pipes will be deleted automatically.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ky3d
Posts: 9
Joined: Wed Oct 24, 2018 3:05 pm
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by ky3d » Sun Oct 28, 2018 1:16 pm

Yes, I built Nyquist Workbench and copied the .lib files to ~/.audacity-files dir. I also enabled Nyq bench. BTW I didn't use Nyquist Workbench, I only used Nyquist prompt. I am the only user on this Linux system and I used audacity only as one command at a time.

I agree pipes are not a big issue but this assert seems to be very consistent whenever I exit audacity after the hang I faced.

steve
Site Admin
Posts: 49027
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by steve » Sun Oct 28, 2018 2:10 pm

I'm guessing that the assert is a bug in Nyquist Workbench, but I don't currently have it built so I can't test right now.
Try disabling Nyquist Workbench in modules preferences, then restart Audacity. Does that stop the assert?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ky3d
Posts: 9
Joined: Wed Oct 24, 2018 3:05 pm
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by ky3d » Tue Oct 30, 2018 8:20 am

I am sorry for the delay as I was travelling. Yes, you are right when I disabled the Nyq bench the assert is going away. Also if I re-enable Nyq bench the assert is coming back.

steve
Site Admin
Posts: 49027
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by steve » Tue Oct 30, 2018 8:35 am

I think the assert has been fixed in the current development code.
I've logged the "1 threads were not terminated by the application" debug warning on the bug tracker (all threads should be properly terminated on exit).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ky3d
Posts: 9
Joined: Wed Oct 24, 2018 3:05 pm
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by ky3d » Mon Nov 12, 2018 6:36 am

Thank you very much. Which release version will have this bug fixed?

steve
Site Admin
Posts: 49027
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Assert failing in Audacity 2.2.2

Post by steve » Mon Nov 12, 2018 8:50 am

The next Audacity release will be 2.3.1. It is scheduled for January.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply