Page 1 of 1

Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Mon Oct 01, 2018 5:48 am
by pizzadude
Hi, Audacity version 2.3.0 crashes with almost every plugin I tested but also the built in "wahwah" effect when I apply it to the audio.

I use Kubuntu 18.10 (cosmic).

I tested this issue with both the PPA maintained by "Panda Jim" ( ppa:ubuntuhandbook1/audacity ) and also the flatpak version of flathub.

2.2.0 doesn't have this issue (from cosmic repos).

Any ideas? Is this a known issue? Can anyone else reproduce it?

System info:

Code: Select all

Kernel: Linux 4.18.0-8-generic x86_64
Distro: Ubuntu Cosmic Cuttlefish (development branch)
CPU:    Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
        4 cores/threads
        2400.00 MHz
RAM:    3.65 GiB
GPU:    Mesa DRI Intel(R) Ironlake Mobile 
        OpenGL 2.1 Mesa 18.3.0-devel
        GLSL 1.20

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Tue Oct 02, 2018 8:57 pm
by Valour
Every time I try to use the Bass and Treble plugin, there's a crash. The log says nothing useful. I've tried using a new ~/.audacity-data folder, and there's no change.

Oddly, it does seem to work when used as part of a macro (chain).

If I run Audacity from the command line, all it says is Segmentation fault (core dumped). OS is Ubuntu bionic 64-bit.

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Tue Oct 02, 2018 10:18 pm
by steve
Yes this is a bug that was accidentally introduced by a fix for another bug shortly before 2.3.0 was released.
Effects that have "real-time preview" are affected, so that is:
Bass and Treble
Distortion
Phaser
Wahwah

A fix has just been committed.

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 1:11 pm
by Valour
Thanks. Will there be a new release, or is this something I have to patch and build myself?

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 1:23 pm
by steve
For now, on Linux, you are probably best using Audacity 2.2.2.
A short release cycle is intended for Audacity 2.3.1. I can't give an exact date yet, but possibly before Christmas.

If you build Audacity yourself, then it's an easy fix for this particular problem.
In /src/Menus.cpp
MenuCommandHandler::DoEffect (around line 4818)
Change:

Code: Select all

   auto parent = focus->GetParent();
to

Code: Select all

   wxWindow *parent;
   if (focus != nullptr) {
      parent = focus->GetParent();
   }

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 2:32 pm
by Piteur
steve wrote:
Wed Oct 03, 2018 1:23 pm
For now, on Linux, you are probably best using Audacity 2.2.2.
Sorry, but how to get Audacity 2.2.2 after upgrading to 2.3.0? In official repositories (Ubuntu xenial), version 2.1 is proposed ...

Thank you for helping me.

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 3:35 pm
by Valour
The Artful repo still has version 2.2.2:

http://ppa.launchpad.net/ubuntuhandbook ... ts/artful/

So you'd add this repo to Synaptic:

http://ppa.launchpad.net/ubuntuhandbook ... ty/ubuntu/

And use artful as the distribution. Then refresh, search for Audacity in the package list, select it, go to the Package menu, select Force Version, and choose 2.2.2 from the drop-down.

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 5:57 pm
by Piteur
Valour wrote:
Wed Oct 03, 2018 3:35 pm
The Artful repo still has version 2.2.2:

http://ppa.launchpad.net/ubuntuhandbook ... ts/artful/
Many thanks, but...

... when I try to force version, Synaptic says that it's a broken version!

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 7:49 pm
by Valour
Hmm... not sure what could be wrong. Might be a missing dependency somewhere. I'm on Bionic, and setting the Audacity repo back to Artful worked perfectly. Xenial is pretty old. Can you upgrade?

Re: Audacity 2.3.0 crashes with many plugins and the wahwah effect

Posted: Wed Oct 03, 2018 11:09 pm
by Piteur
Valour wrote:
Wed Oct 03, 2018 7:49 pm
Can you upgrade?
Not just for that! Too bad: I stay at 2.1.2! In any case, nothing indicates, on the 'artful' repository, for which Ubuntu version the package deb is.

Thank you for your answers. (And sorry for my bad english)...