Audacity fails to start

Hi.

On my Leap15.2 system I have both a 6 channel Intel sound chip via the mother board and a 2 channel output via my Nvidia GTX1050Ti. Jack and pulseaudio run fine with with all my various sound apps and so on.

But when I want to start up Audacity (version 2.4.2 both from repos multimedia and home:Sauerland) it keeps crashing. It pops up a screen with log files to send away but as soon as I click them the screen disappears. The log file it generates in /tmp is 0 Bytes.

Journalctl -

Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x1f0500
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x4f0015
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x3:0x0, last cmd=0x473500
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x470700
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x4f0015
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x3:0x0, last cmd=0x473501
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x470700
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x4f0015
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x3:0x0, last cmd=0x473502
Mar 05 15:49:31 asus-roc.lan kernel: snd_hda_intel 0000:01:00.1: spurious response 0x0:0x0, last cmd=0x470700


(after clicking the error screen which disappears)
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: JackEngine::XRun: client = PortAudio was not finished, state = Triggered
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: JackAudioDriver::ProcessGraphAsyncMaster: Process error
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Cannot write socket fd = 22 err = Broken pipe
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: CheckRes error
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Could not write notification
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: ClientNotify fails name = alsa-jack.jackP.31205.4 notification = 1 val1 = 0 val2 = 0
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Cannot write socket fd = 22 err = Broken pipe
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: CheckRes error
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Could not write notification
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: ClientNotify fails name = PortAudio notification = 18 val1 = 0 val2 = 0
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Cannot write socket fd = 22 err = Broken pipe
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: CheckRes error
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: Could not write notification
Mar 05 15:49:34 asus-roc.lan pulseaudio[2094]: ClientNotify fails name = PortAudio notification = 18 val1 = 1 val2 = 0

and command line

chris@asus-roc:~> audacity 
No protocol specified

(Audacity:1842): Gtk-WARNING **: 16:04:38.945: gtk_disable_setlocale() must be called before gtk_init()
Attempting to connect to Audacity failed...retrying
ALSA lib pcm_dsnoop.c:639:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
*** Error in `audacity': free(): invalid size: 0x00007ffc00eed530 ***
Aborted (core dumped)
chris@asus-roc:~>

I even downgraded to version 2.2.2 but no luck.

Even tyring to get the version number dies

chris@asus-roc:~> audacity --version
No protocol specified

(Audacity:2848): Gtk-WARNING **: 16:07:19.375: gtk_disable_setlocale() must be called before gtk_init()
Attempting to connect to Audacity failed...retrying


I’m kind of stumped how to interpret the journal errors or what next to do.

Post:

zypper lr -d
zypper se -si audacity

After problems with Audacity in recent months I switched to the Flatpak version. It works adequately for me.

Here tis…

chris@asus-roc:~> zypper lr -d
#  | Alias                               | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                             | Service
---+-------------------------------------+------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
 1 | download.nvidia.com-$releasever     | nVidia Graphics Drivers            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.2                                                  | 
 2 | http-download.opensuse.org-152e20eb | home:rncbc                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/rncbc/openSUSE_Leap_15.2/                       | 
 3 | http-download.opensuse.org-2bb514ae | KDE:Frameworks5                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.2/                  | 
 4 | http-download.opensuse.org-336e80a8 | home:edogawa                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/edogawa/openSUSE_Leap_15.2/                     | 
 5 | http-download.opensuse.org-36584d9b | X11:XOrg                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Leap_15.2/                         | 
 6 | http-download.opensuse.org-373f0d11 | home:Sauerland                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Sauerland/openSUSE_Leap_15.2/                   | 
 7 | http-download.opensuse.org-39b1fc80 | multimedia:libs                    | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_Leap_15.2/                  | 
 8 | http-download.opensuse.org-4b83b7d2 | KDE:Applications                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_15.2/ | 
 9 | http-download.opensuse.org-5a2fa03a | X11:wxWidgets                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/wxWidgets/openSUSE_Leap_15.2/                    | 
10 | http-download.opensuse.org-a3234dab | multimedia:apps                    | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | http://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Leap_15.2/                  | 
11 | http-download.opensuse.org-dee7e277 | KDE:Qt5                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.2/                          | 
12 | openSUSE-Leap-15.2-1                | openSUSE-Leap-15.2-1               | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Edge_200535522013C73251C1-0:0-part2              | 
13 | openSUSE_Leap_15.2                  | Education                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Education/openSUSE_Leap_15.2/                        | 
14 | openSUSE_Leap_15.2_1                | Games                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/games/openSUSE_Leap_15.2/                            | 
15 | openSUSE_Leap_15.2_2                | Packman Mirror                     | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                             | 
16 | opensuse-guide.org-repo             | Libdvdcss Repository               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/                                              | 
17 | packman.inode.at-suse               | Packman Repository                 | No      | ----      | ----    |   90     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/                                                | 
18 | repo-debug                          | Debug Repository                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                             | 
19 | repo-debug-non-oss                  | Debug Repository (Non-OSS)         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                         | 
20 | repo-debug-update                   | Update Repository (Debug)          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                                        | 
21 | repo-debug-update-non-oss           | Update Repository (Debug, Non-OSS) | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                                    | 
22 | repo-non-oss                        | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                               | 
23 | repo-oss                            | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                                   | 
24 | repo-source                         | Source Repository                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                            | 
25 | repo-source-non-oss                 | Source Repository (Non-OSS)        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/                        | 
26 | repo-update                         | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                               | 
27 | repo-update-non-oss                 | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                                          | 

chris@asus-roc:~> zypper se -si audacity
Loading repository data...
Reading installed packages...

S  | Name          | Type    | Version           | Arch   | Repository
---+---------------+---------+-------------------+--------+----------------
i+ | audacity      | package | 2.4.2-lp152.172.4 | x86_64 | multimedia:apps
i+ | audacity-lang | package | 2.4.2-lp152.172.4 | noarch | multimedia:apps
chris@asus-roc:~> 


Please don’t mention the F word to me ;). See my fun with it https://forums.opensuse.org/showthread.php/550630-Flatpak-it-s-bizarre

Some things:
Packman and multimedia:libs at same time can be very tricky because of other names of libs.

Why a wxwidgets Repo?
audacity should be running without these Repo, I build audacity against an lib in my Repo, so no need for that extra Repo.

I was trying to compile my own app some time ago. No doubt I can delete it now.

Delete them and see, that nothing is installed from these 2 Repos.
Before deleteting:
All installed packages from Repo should be switched to OSS:
This shows the installed packages from the Repo.

zypper se -sir http://download.opensuse.org/repositories/X11:/wxWidgets/openSUSE_Leap_15.2/

All installed packages from Repo should be switched to Packman or OSS in this order:

zypper se -sir http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_Leap_15.2/

repositories/X11:/wxWidgets/openSUSE_Leap_15.2 was easy to delete as it had no packages installed. But repositories/multimedia:/libs/openSUSE_Leap_15.2 is another matter - there are dozens of packages.

I’ll need to go through the packages 1 by 1 and see why I added them in the first place. This may take a while :slight_smile:

Thanks.

HM. I’m a little uncomfortable in switching back to Packman or OSS from multimedia:libs. Some of the packages would go backwards in versions. For example alsa would go from V1.2.4 back to V1.1.5.

I’m going to take this very slowly if this will fix my Audacity program. In the meantime I have run the windows (ugh) version of Audacity under Wine and that works ok for what I need to do for now.

Some of the packages would go backwards in versions. For example alsa would go from V1.2.4 back to V1.1.5.

multimedia:libs, multimedia:apps, grapchics, education and so on are factory Repos for development.

So its clear that Leap has a lower Version as multimedia:libs

I replicated my installation on a laptop to repeat the ‘fault’ with audacity. I then rolled back packages from multimedia:lib to either Packman, Main or Main Update repos. Doing that I got audacity to work fine.

Obviously a package conflict from my setup >:(

I’ll start rolling back my production PC this weekend.
This however leads to another question about compiling binaries with higher version multimedia:lib packages. But that’s a topic for another thread :wink:

Thanks.