Bug 1327541

Summary: Audacity doesn't start
Product: [Fedora] Fedora Reporter: ell1e <el>
Component: audacityAssignee: David Timms <dtimms>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 23CC: dtimms, moez.roy, phorgan1
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: audacity-2.1.3-0.7.20161109git53a5c93.fc25 audacity-2.1.3-0.7.20161109git53a5c93.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 16:28:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ell1e 2016-04-15 10:52:13 UTC
Description of problem:
Audacity doesn't start. This is the terminal output:
jonas@cyberman:~$ audacity

(Audacity:11873): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(Audacity:11873): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(Audacity:11873): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(Audacity:11873): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
jonas@cyberman:~$


Version-Release number of selected component (if applicable):
2.1.2-3.fc23

How reproducible:
100%

Steps to Reproduce:
1. Install audacity
2. Type "audacity" into terminal

Actual results:
doesn't start

Expected results:
starts

Additional info:

Comment 1 David Timms 2016-05-21 12:18:30 UTC
Hi Jonas, I see the same warnings during audacity startup, but it does succeed and work OK (see messages). Does it work OK for you now ?
====
$ audacity
(Audacity:27613): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'
(Audacity:27613): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(Audacity:27613): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(Audacity:27613): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
lilv_world_add_plugin(): error: Duplicate plugin <http://lv2plug.in/plugins/eg-fifths>
lilv_world_add_plugin(): error: ... found in file:///usr/lib64/lv2/eg-fifths.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/lib64/lv2/eg-fifths.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://lv2plug.in/plugins/eg-midigate>
lilv_world_add_plugin(): error: ... found in file:///usr/lib64/lv2/eg-midigate.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/lib64/lv2/eg-midigate.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://lv2plug.in/plugins/eg-metro>
lilv_world_add_plugin(): error: ... found in file:///usr/lib64/lv2/eg-metro.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/lib64/lv2/eg-metro.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://lv2plug.in/plugins/eg-amp>
lilv_world_add_plugin(): error: ... found in file:///usr/lib64/lv2/eg-amp.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/lib64/lv2/eg-amp.lv2/
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4589
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4608
====

Comment 2 ell1e 2016-05-21 22:49:17 UTC
No, it doesn't... (would be surprising since I don't think there was an update of any sort?)

As you can see from my pasted output it quits much earlier than yours (after the gtk_init() warning). In gdb you can see it seems to terminate with exit code 0377:

jonas@cyberman:~$ gdb audacity
GNU gdb (GDB) Fedora 7.10.1-31.fc23
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from audacity...Reading symbols from /usr/lib/debug/usr/bin/audacity.debug...done.
done.
(gdb) run audacity
Starting program: /usr/bin/audacity audacity
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.22-16.fc23.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffd2356700 (LWP 12157)]
[New Thread 0x7fffd1b55700 (LWP 12158)]

(Audacity:12153): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(Audacity:12153): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(Audacity:12153): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(Audacity:12153): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
[Thread 0x7fffd2356700 (LWP 12157) exited]
[Thread 0x7ffff7f07b00 (LWP 12153) exited]
[Inferior 1 (process 12153) exited with code 0377]

Comment 3 David Timms 2016-05-22 10:58:50 UTC
How about the results of
$ audacity --version
and
$ audacity --test

and try renaming the hidden folder:
~/.audacity-data to say:
~/.audacity-data.real

and try again.

If no-go, can you list your running kernel and
lsmod|grep snd to indicate your sound hw driver.

Comment 4 ell1e 2016-05-23 10:10:34 UTC
I had some things in ~/.audacity-data/ with wrong permissions (not owned by the user), removing that directory fixed it. It appears audacity doesn't have any sensible error handling when stuff in that folder is inaccessible..

I guess this could both be closed or turned into an issue that audacity is unable to show any sort of relevant error message when with files in ~/.audacity-data/ have incorrect permissions. Proceed as you wish :)

Comment 5 David Timms 2016-05-23 12:53:38 UTC
Do you think the bad permissions were caused by audacity (e.g. an older version) ?

Which files or folders in particular weren't good ?

Or was this a "self made" issue that wouldn't happen to other users ?

Comment 6 ell1e 2016-05-23 15:43:20 UTC
Somewhat self-made: the files were owned by root, so it's not something that would easily happen to someone else. But it still wouldn't hurt if Audacity had a better error message for this!

Comment 7 Fedora Update System 2016-11-10 12:34:46 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-99f8d418ba

Comment 8 Fedora Update System 2016-11-10 12:35:51 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3f35f35613

Comment 9 Fedora Update System 2016-11-10 19:28:00 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-99f8d418ba

Comment 10 Fedora Update System 2016-11-11 05:02:50 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3f35f35613

Comment 11 Fedora Update System 2016-11-24 16:28:24 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-11-24 20:27:23 UTC
audacity-2.1.3-0.7.20161109git53a5c93.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora End Of Life 2016-11-25 07:21:58 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.