[solved] Waveform freezes after opening

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 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.
sparusaurata
Posts: 5
Joined: Sat Apr 17, 2021 12:10 pm
Operating System: Linux Mint

[solved] Waveform freezes after opening

Post by sparusaurata » Sat Apr 17, 2021 12:17 pm

I use Audacity 2.3.3 (I recently upgraded Linux Mint from 18.3 to 20.1, I don't remember what version of Audacity I used before but it might be an older one).
My problem is the following: when loading an audio file, the waveform is displayed correctly, but then it freezes: I can still do things (move through the sound, select zones, edit the sound, add tracks...) but the result is not displayed. However, when I save and re-open the project the changes have been performed.
When I try to record some sound, it is recorded but the waveform doesn't appear at all.
I tried to install the Flatpak version but the problem is the same.
Could someone help me? Thanks in advance!
Last edited by sparusaurata on Mon Apr 26, 2021 9:07 am, edited 1 time in total.

jademan
Forum Crew
Posts: 1170
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Please select

Re: Waveform freezes after opening

Post by jademan » Sun Apr 18, 2021 11:27 am

sparusaurata wrote:
Sat Apr 17, 2021 12:17 pm
...the result is not displayed. However, when I save and re-open the project the changes have been performed.
When I try to record some sound, it is recorded but the waveform doesn't appear at all.
I tried to install the Flatpak version but the problem is the same.
Could someone help me? Thanks in advance!
So I have never heard of this condition before. Perhaps someone with Linux experience can shed some light on this issue.

In the meantime, try resetting your Audacity preferences by deleting audacity.cfg. See: Where the Preferences are stored

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

Re: Waveform freezes after opening

Post by steve » Sun Apr 18, 2021 12:08 pm

Ensure that you are logged into an xorg session and not Wayland. Audacity does not yet fully support Wayland.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

sparusaurata
Posts: 5
Joined: Sat Apr 17, 2021 12:10 pm
Operating System: Linux Mint

Re: Waveform freezes after opening

Post by sparusaurata » Mon Apr 19, 2021 4:14 pm

Thanks for your answers!
jademan wrote:
Sun Apr 18, 2021 11:27 am
In the meantime, try resetting your Audacity preferences by deleting audacity.cfg. See: Where the Preferences are stored
I deleted the whole .audacity directory, but it had no effect. :(
steve wrote:
Sun Apr 18, 2021 12:08 pm
Ensure that you are logged into an xorg session and not Wayland. Audacity does not yet fully support Wayland.
I confirm I use Xorg!

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

Re: Waveform freezes after opening

Post by steve » Mon Apr 19, 2021 6:26 pm

How big is the file that you are importing?

Are you able to generate a 30 second tone ("Generate menu > Tone") and edit it?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

sparusaurata
Posts: 5
Joined: Sat Apr 17, 2021 12:10 pm
Operating System: Linux Mint

Re: Waveform freezes after opening

Post by sparusaurata » Tue Apr 20, 2021 9:24 am

The problem persists even with a very small file (or when I record a short sound directly in Audacity), or with a generated 30-second tone. I can edit it, the changes are performed but not displayed — and sometimes they are when I zoom in or out, but in a strange way: the scale doesn't correspond to the actual scale of the waveform.

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

Re: Waveform freezes after opening

Post by steve » Tue Apr 20, 2021 12:29 pm

What, if anything, is returned when you run this command in a Terminal window?

Code: Select all

echo $GTK_IM_MODULE
Do you use any non-English language settings on your computer?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

sparusaurata
Posts: 5
Joined: Sat Apr 17, 2021 12:10 pm
Operating System: Linux Mint

Re: Waveform freezes after opening

Post by sparusaurata » Thu Apr 22, 2021 4:22 pm

Thanks again for taking the time to help me!
The command returns xim, and all my language settings are set to French (fr_FR).

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

Re: Waveform freezes after opening

Post by steve » Thu Apr 22, 2021 5:07 pm

Try starting Audacity from a Terminal window with:

Code: Select all

GTK_IM_MODULE= audacity
If that fixes it, modify your Audacity menu item / launcher to use that command.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

sparusaurata
Posts: 5
Joined: Sat Apr 17, 2021 12:10 pm
Operating System: Linux Mint

[solved] Waveform freezes after opening

Post by sparusaurata » Sun Apr 25, 2021 2:27 pm

Thanks a lot, it works! :mrgreen:
However I couldn't modify my launcher, since the = symbol isn't allowed in a .desktop file. But I tried to savagely remove my ~/.xinitrc, and after a reboot everything was OK. So for some reason (but maybe is it a known problem?), Audacity doesn't like the IM module to be set to xim? (And by the way I don't know why my ~/.xinitrc did that... :? )

Post Reply