Audacity not working in 15.5?

After installing Audacity from the stock repos (recent 15.5 install), it doesn’t run from the menu icon (flashes intro then disappears) - trying from the command line gives…

:~> audacity
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
Failed to load plugin “caps.so”: caps.so: cannot open shared object file: No such file or directory
:~>

ALSA and ladspa-caps show as being installed in YaST.

Please post:

zypper lr -d

Was this an Upgrade from Leap 15.4 to 15.5?

Thank you. I was going to edit the last post to add that it seems there’s no Audacity 3.3.3 for 15.5 (2.2.2 seems to be in the Main Repo). This was a fresh install but /home copied from 15.4.

:~> zypper lr -d
 1 | GAMES                       | GAMES  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/games/15.5/                     | 
 2 | ITHOD                       | ITHOD  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/ithod/15.5                | 
 3 | MOZILLA                     | MOZI-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.5/     | 
 4 | PACKMAN                     | PACK-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://ftp.fau.de/packman/suse/openSUSE_Leap_15.5/                        | 
 5 | SCIENCE                     | SCIE-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/science/15.5/                    | 
 6 | brave-browser               | Brav-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                      | 
 7 | brave-browser-beta          | Brav-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-beta.s3.brave.com/x86_64                         | 
 8 | openSUSE-Leap-15.5-1        | open-> | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-_Patriot_Memory_07BA1101B2F91C70-0:0-part2 | 
 9 | packman                     | Pack-> | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/        | 
10 | repo-backports-debug-update | Upda-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/update/leap/15.5/backports_debug/             | 
11 | repo-backports-update       | Upda-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports/                   | 
12 | repo-debug                  | Debu-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/        | 
13 | repo-debug-non-oss          | Debu-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss/    | 
14 | repo-debug-update           | Upda-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.5/oss/                   | 
15 | repo-debug-update-non-oss   | Upda-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.5/non-oss/               | 
16 | repo-non-oss                | Non--> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/          | 
17 | repo-openh264               | Open-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap/                         | 
18 | repo-oss                    | Main-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/oss/              | 
19 | repo-sle-debug-update       | Upda-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.5/sle/                   | 
20 | repo-sle-update             | Upda-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/sle/                         | 
21 | repo-source                 | Sour-> | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.5/repo/oss/       | 
22 | repo-update                 | Main-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/oss                          | 
23 | repo-update-non-oss         | Upda-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/non-oss/                     |

Does it work as root with:
/sbin/ldconfig -v /usr/lib64/audacity

And now as User:
audacity

Also you can use this Repo and install audacity 3.3.3 from there.
https://download.opensuse.org/repositories/multimedia:/apps/15.5/

PS:
You added packman 2 times in your Repo list:
Repo 4 and 9…

root@linux-lhkc:/home/patti> audacity
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudi
o as a root user, over the native protocol. Don't do that.)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudi
o as a root user, over the native protocol. Don't do that.)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Failed to load plugin "caps.so": caps.so: cannot open shared object file: No such file or directory

Thank you!!!
There are so many repos I don’t know about! Thanks for the suggestion, I’ll try that repo. Also, I’ll check out the duplicate Packman - Don’t know how that happened… careless!

Error on trying the suggested multimedia repo…

#### YaST2 conflicts list - generated 2023-08-01 11:25:03 ####
nothing provides 'libFLAC.so.12()(64bit)' needed by the to be installed audacity-3.3.3-lp155.228.2.x86_64

    [ ] break audacity-3.3.3-lp155.228.2.x86_64 by ignoring some of its dependencies

    [ ] do not install audacity-3.3.3-lp155.228.2.x86_64

You can use this Repo for flac12:
https://download.opensuse.org/repositories/home:/Sauerland:/mixx/15.5/

I build it with only the necessary libs for mixxx and audacity.

And please do not use the multimedia:libs Repo, you will get maybe later trouble with Packman…

And don’t run audacity as root…

OK. I’m always worried about repo conflicts like pacman and multimedia.
This thing probably happens often as wizard generations turn over?

I deleted audacity in YaST, removed multimedia, and reinstalled audacity from Sauerland - I tried running 2x (once after a reboot).

~> audacity

(process:4288): Gdk-CRITICAL **: 12:22:21.576: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:4288): Gdk-CRITICAL **: 12:22:21.576: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed

(process:4288): Gdk-CRITICAL **: 12:22:21.576: gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed

I’m running the display driver as-installed. (Nouveau?) Also, I have the combined Intel + discrete NVidia on a ZBook laptop. I’m pretty it defaults to only the Intel vid is being used.

Does it now work?
Or not?

Sorry! It throws those messages when I run from the user prompt. The icon flashes a startup logo briefly, then nothing… I’ve never seen window/display messages before except with apps like putty…

Those messages seem really odd. I run a lot of different code virtualbox, all the stock apps, games, etc. I’ve never seen problems with the screen.

I tried running from the command line just now and got this! Hmm - I wonder if there’s something left over in the system from the other versions of audacity I installed?

audacity: error while loading shared libraries: lib-theme-resources.so: cannot open shared object file: No such file or directory

But I see that file in /usr/lib64/audacity - it’s not finding it for some reason - maybe symlink it to /usr/lib64/ ?

OK - I symlinked that file to /usr/lib64/ and audacity apparently found it. I would have to do that for all the audacity .so files, apparently. I could symlink all the .so files there - but maybe the paths should be contained in the audacity rpm?

OK - I tried symlinking all the .so files from /usr/lib64/audacity/ to /usr/lib64/ and now I’m back to the screen errors…

(process:9978): Gdk-CRITICAL **: 09:14:53.024: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:9978): Gdk-CRITICAL **: 09:14:53.024: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed

(process:9978): Gdk-CRITICAL **: 09:14:53.024: gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed

…although the startup icon/box does flash briefly onscreen. Is this from /usr/lib64/audacity/modules/mod-script-pipe.so ?

Thats why I asked in # 4:

You must not link the libs, you can use that command in a script and start it on every reboot…
After that, audacity should work.

~> /sbin/ldconfig -v /usr/lib64/audacity

        <...snip...>

        libyajl.so.2 -> libyajl.so.2.1.0
        libyaml-0.so.2 -> libyaml-0.so.2.0.5
        libz.so.1 -> libz.so.1.2.13
        libzstd.so.1 -> libzstd.so.1.5.0
        libpcre.so.1 -> libpcre.so.1.2.13
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache.gX9UWk: Permission denied
patti@linux-lhkc:~> audacity

(process:19845): Gdk-CRITICAL **: 11:44:48.009: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:19845): Gdk-CRITICAL **: 11:44:48.009: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed

(process:19845): Gdk-CRITICAL **: 11:44:48.009: gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed
:~>

…but it also seems odd that the “repo version” (2.2.2) didn’t work. So I went to my spare laptop - a very vanilla kde 15.5 - and audacity 2.2.2 installed and worked fine there. So the problem must be with my system on my regular laptop somehow? I haven’t done anything unusual with it - so there must be a software conflict somewhere with some installed software…

I checked on the spare laptop’s 15.5/audacity install (the one where audacity 2.2.2 works), and the same versions of gdk-pixbuf libs and libgdk* seem to be installed as on my regular laptop.

Except for this one…

gdk-pixbuf-loader-rsvg - A gdk-pixbuf loader for SVG using librsvg /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so

…the version number is listed in red font under the Installed (Available) column in YaST, but in blue font on the spare 15.5 laptop (where audacity works). I don’t know what font color means in that case… maybe nothing… (the version numbers are the same)

You have done th ldconfig command as root??

Please post ever the whole commandline when posting any output.

I get also the 3 warnings as you and they do not hurt.

I was never aware of the ldconfig command before this particular conversation.

There are too many characters to post the output of /sbin/ldconfig -v /usr/lib64/audacity - it won’t let me post - should I break it up across several messages?
Removing -v gives…

:~> /sbin/ldconfig /usr/lib64/audacity
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache.sLVmAP: Permission denied
:~>

These also look odd in the output…

/sbin/ldconfig: Can't stat /usr/lib64/graphviz/sharp: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/java: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/perl: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/php: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/ocaml: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/python: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/lua: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/tcl: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/guile: No such file or directory
/sbin/ldconfig: Can't stat /usr/lib64/graphviz/ruby: No such file or directory
/sbin/ldconfig: Can't stat /libx32: No such file or directory
/sbin/ldconfig: Can't stat /usr/libx32: No such file or directory

And as I said, it works fine on my other 15.5 install. So some software modified some part of the system that’s difficult to discover. So if you don’t see anything obvious - I guess I’ll just accept that this system is partially broken now. Everything else seems to work fine, but at some point I’ll have to reinstall the OS and then audacity will work fine.