yuwensx

Linux: Ubuntu 20.04.3
Desktop: KDE Plasma 5.18.5

I have tried 2 versions of audacity, both of them cannot run correctly.

  1. Audacity installed by apt: v2.3.3
    At first it shows logo, open the main window, it seems okey…
22:03:26 ~ > audacity                 

(Audacity:2714993): GLib-GObject-WARNING **: 22:03:27.038: cannot register existing type 'GdkDisplayManager'

(Audacity:2714993): GLib-CRITICAL **: 22:03:27.038: g_once_init_leave: assertion 'result != 0' failed

(Audacity:2714993): GLib-GObject-CRITICAL **: 22:03:27.038: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(Audacity:2714993): Gtk-WARNING **: 22:03:27.041: gtk_disable_setlocale() must be called before gtk_init()
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分28秒: Debug: ScreenToClient cannot work when toplevel window is not shown
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2839
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ScreenToClient cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: ClientToScreen cannot work when toplevel window is not shown
22时03分30秒: Debug: Unrecognized accel key 'backspace', accel string ignored.
22时03分30秒: Debug: Unrecognized accel key 'backspace', accel string ignored.
22时03分30秒: Debug: Unrecognized accel key 'numpad_enter', accel string ignored.
22时03分30秒: Debug: Unrecognized accel key 'numpad_enter', accel string ignored.

However the window freezes when I click menu ’ Track → create new track → Single channel ’ (sorry my software doesn’t show English I don’t know the exact menu), then the terminal repeats printing log below:

(Audacity:2714086): Pango-CRITICAL **: 22:00:43.161: pango_font_description_set_size: assertion 'size >= 0' failed

I have to kill the progress.


2. I find there is a newer version packed with AppImage, but it still does not work.
The audacity just shows logo and then the main window doesn’t show itself.

22:09:11 ~/Download > ./audacity-linux-3.1.3-x86_64.AppImage
/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0
/usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0
/usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2
/usr/lib/x86_64-linux-gnu/libcairo.so.2
/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
/usr/lib/x86_64-linux-gnu/libjack.so.0
findlib: libportaudio.so: cannot open shared object file: No such file or directory
/home/xys/Download/audacity-linux-3.1.3-x86_64.AppImage: Using fallback for library 'libportaudio.so'

(process:2716392): Gdk-CRITICAL **: 22:09:27.916: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:2716392): Gdk-CRITICAL **: 22:09:27.917: _gdk_pixmap_new: assertion '(drawable != NULL) || (depth != -1)' failed
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/gtk/bitmap.cpp(827): assert ""IsOk()"" failed in ConvertToImage(): invalid bitmap
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2172): assert ""IsOk()"" failed in SetMaskColour(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2223): assert ""IsOk()"" failed in SetMask(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1853): assert ""IsOk()"" failed in GetWidth(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1860): assert ""IsOk()"" failed in GetHeight(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2112): assert ""IsOk()"" failed in GetAlpha(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2232): assert ""IsOk()"" failed in HasMask(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1986): assert ""IsOk()"" failed in GetData(): invalid image

(process:2716392): GdkPixbuf-CRITICAL **: 22:09:27.926: gdk_pixbuf_new_from_data: assertion 'data != NULL' failed

(process:2716392): Gdk-CRITICAL **: 22:09:27.926: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:2716392): Gdk-CRITICAL **: 22:09:27.926: IA__gdk_drawable_get_display: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(process:2716392): Gdk-CRITICAL **: 22:09:27.926: IA__gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed

(process:2716392): GLib-GObject-CRITICAL **: 22:09:27.927: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I find some similar topics by searching, but I still cannot solve my problem.
Any advice? Thanks.

What language does it show?
Perhaps this bug? Audacity does not start on kubuntu with Korean language · Issue #2057 · audacity/audacity · GitHub

Chinese… Oh the menu seems to be ‘Track → New Track → Mono Channel’

Does the AppImage run if you delete the hidden folder ~/.audacity-data and then try launching it?
(“~/” means your home directory)

Oh great! The solution works, I re-run the appimage with env ‘LANG=C’ and audacity shows after logo disappeared…
Although logs in terminal are almost the same as before.
Thanks a lot.

22:48:29 ~/Download > LANG=C ./audacity-linux-3.1.3-x86_64.AppImage
/usr/lib/x86_64-linux-gnu/libatk-1.0.so.0
/usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0
/usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2
/usr/lib/x86_64-linux-gnu/libcairo.so.2
/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
/usr/lib/x86_64-linux-gnu/libjack.so.0
findlib: libportaudio.so: cannot open shared object file: No such file or directory
/home/xys/Download/audacity-linux-3.1.3-x86_64.AppImage: Using fallback for library 'libportaudio.so'

(process:2726783): Gdk-CRITICAL **: 22:50:19.861: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:2726783): Gdk-CRITICAL **: 22:50:19.862: _gdk_pixmap_new: assertion '(drawable != NULL) || (depth != -1)' failed
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/gtk/bitmap.cpp(827): assert ""IsOk()"" failed in ConvertToImage(): invalid bitmap
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2172): assert ""IsOk()"" failed in SetMaskColour(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2223): assert ""IsOk()"" failed in SetMask(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1853): assert ""IsOk()"" failed in GetWidth(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1860): assert ""IsOk()"" failed in GetHeight(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2112): assert ""IsOk()"" failed in GetAlpha(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(2232): assert ""IsOk()"" failed in HasMask(): invalid image
/home/runner/work/audacity/audacity/conan-home/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/387c18a58e2fde1ef9c941329038b8fc62a56b98/source_subfolder/src/common/image.cpp(1986): assert ""IsOk()"" failed in GetData(): invalid image

(process:2726783): GdkPixbuf-CRITICAL **: 22:50:19.864: gdk_pixbuf_new_from_data: assertion 'data != NULL' failed

(process:2726783): Gdk-CRITICAL **: 22:50:19.864: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:2726783): Gdk-CRITICAL **: 22:50:19.864: IA__gdk_drawable_get_display: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(process:2726783): Gdk-CRITICAL **: 22:50:19.864: IA__gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed

(process:2726783): GLib-GObject-CRITICAL **: 22:50:19.864: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I tried this once today, it doesn’t work.
Thanks for the github link. Problem solved.

Is there any way to edit the topic ? I posted the wrong title yesterday, and I don’t find the “edit button” mentioned in FAQ https://forum.audacityteam.org/app.php/help/faq#f2r1


WC

Editing topics is disabled for new forum users. The reason for this is because of spammers making an innocent looking post, waiting for it to be approved, then coming along later, editing their post and replacing it with their spam.

Also, going back and editing a post can make it difficult or impossible to follow the flow of a conversation, so even when you can edit your posts, we much prefer corrections to be in a new post so that the flow of the discussion is not disrupted.

What should it have been?