MOC (Music On Console) no sound driver error

Bug #1824906 reported by Richard Baka
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
moc (Ubuntu)
Fix Released
Undecided
Elimar Riesebieter

Bug Description

Linux: Kubuntu 19.04
Desktop: Plasma

$ mocp
Running the server...
Trying JACK...
Trying ALSA...
Trying OSS...

FATAL_ERROR: No valid sound driver!

FATAL_ERROR: Server exited!

$ pulseaudio
E: [pulseaudio] pid.c: Daemon already running.

Revision history for this message
Richard Baka (bakarichard91) wrote :
Download full text (4.4 KiB)

Apr 16 02:15:11.836793: main.c:1191 main(): This is Music On Console (version 2.6-alpha3)
Apr 16 02:15:11.836847: main.c:1195 main(): Configured: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/moc-6NWnnP/moc-2.6.0~svn-r2994=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/moc-6NWnnP/moc-2.6.0~svn-r2994=. -fstack-protector-strong -Wformat -Werror=format-security'
Apr 16 02:15:11.836856: main.c:1205 main(): Running on: Linux 5.1.0-rc4-medve x86_64
ápr 16 02:15:11.837030: main.c:1157 log_command_line(): mocp -D
ápr 16 02:15:11.837064: main.c:1171 log_popt_command_line(): mocp --debug
ápr 16 02:15:11.837163: options.c:1043 options_parse(): Can't open config file: Nincs ilyen fájl vagy könyvtár
ápr 16 02:15:11.895225: decoder.c:700 load_plugins(): Loaded 12 decoders: aac ffmpeg flac modplug mp3 musepack opus sidplay2 sndfile speex vorbis wavpack
ápr 16 02:15:11.896266: server.c:360 server_init(): Starting MOC Server
ápr 16 02:15:11.896439: log.c:233 log_init_stream(): Writing log to: mocp_server_log
ápr 16 02:15:11.896546: server.c:300 log_process_stack_size(): Process's stack size: 8388608
ápr 16 02:15:11.896559: server.c:317 log_pthread_stack_size(): PThread's stack size: 8388608
ápr 16 02:15:11.897939: jack.c:121 error_cb(): ERROR: JACK: Cannot connect to server socket err = Nincs ilyen fájl vagy könyvtár
ápr 16 02:15:11.897956: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.897971: jack.c:121 error_cb(): ERROR: JACK: Cannot connect to server request channel
ápr 16 02:15:11.897977: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.900127: jack.c:121 error_cb(): ERROR: JACK: jack server is not running or cannot be started
ápr 16 02:15:11.900153: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.900425: jack.c:121 error_cb(): ERROR: JACK: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ápr 16 02:15:11.900453: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.900463: jack.c:121 error_cb(): ERROR: JACK: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ápr 16 02:15:11.900472: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.900486: jack.c:148 moc_jack_init(): ERROR: jack_client_open() failed, status = 0x11
ápr 16 02:15:11.900494: server.c:672 add_event_all(): No events have been added because there are no clients
ápr 16 02:15:11.900501: jack.c:150 moc_jack_init(): ERROR: Unable to connect to J...

Read more...

Revision history for this message
Elimar Riesebieter (riesebie) wrote : Re: [Bug 1824906] Re: MOC (Music On Console) no sound driver error

* Richard Baka <email address hidden> [2019-04-16 00:16 -0000]:

...

> ápr 16 02:15:11.900528: alsa.c:477 alsa_init(): Initialising ALSA device: default
> ápr 16 02:15:11.901818: alsa.c:365 alsa_init_mixer_channel(): ERROR: Can't find mixer PCM
[...]
>
> $ pulseaudio
> E: [pulseaudio] pid.c: Daemon already running.

moc sofar hasn't native pulseaudio support. But you can use alsa as
as a sound front end. What tells:

$ dpkg -l | egrep "(alsa|libasound)"

Elimar

Revision history for this message
Richard Baka (bakarichard91) wrote :

Thanks, so we can say this is not a bug but a feature request?

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-19 00:36 -0000]:

> Thanks, so we can say this is not a bug but a feature request?

No. moc runs fine with alsa and therefor doesn't need a "pulse
plugin"..

Which version of moc do have installed:

$ dpkg -l | grep moc

Which soundcards are you using?

$ cat /proc/asound/cards

The error message appears also if your volumecontrol in pavucontrol
is more than 100%.

Is there a customized asoundrc flowing around?

Elimar
--
    .~.
    /V\ L I N U X
   /( )\ >Phear the Penguin<
   ^^-^^

Revision history for this message
Richard Baka (bakarichard91) wrote :

$ dpkg -l | grep moc
ii moc 1:2.6.0~svn-r2994-3 amd64 ncurses based console audio player
ii moc-ffmpeg-plugin:amd64 1:2.6.0~svn-r2994-3 amd64 ncurses based console audio player - ffmpeg plugin
ii ruby-minitest 5.11.3-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking

$ cat /proc/asound/cards
 0 [Generic ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xe0888000 irq 62
 1 [Generic_1 ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xe0880000 irq 63

Volume is under 100%.

Unfortunately I don't know what is asoundrc and how can it flow :\

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-16 00:16 -0000]:

> ápr 16 02:15:11.900528: alsa.c:477 alsa_init(): Initialising ALSA device: default
> ápr 16 02:15:11.901818: alsa.c:365 alsa_init_mixer_channel(): ERROR: Can't find mixer PCM
> ápr 16 02:15:11.901837: server.c:672 add_event_all(): No events have been added because there are no clients
> ápr 16 02:15:11.901845: alsa.c:365 alsa_init_mixer_channel(): ERROR: Can't find mixer Master
> ápr 16 02:15:11.901850: server.c:672 add_event_all(): No events have been added because there are no clients

moc doesn't find a usable mixer device. Whereas Master should be avail
in both pulseaudio and alsa once alsa-utils and libasound2-plugins
are installed. Please post the output of:

$ amixer

$ ls -al /etc/alsa/conf.d

$ ls -al /etc/asound.conf

$ ls -al $HOME/.asoundrc

Elimar
--
  Never make anything simple and efficient when a way
  can be found to make it complex and wonderful ;-)

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-19 23:42 -0000]:

> $ dpkg -l | grep moc
> ii moc 1:2.6.0~svn-r2994-3 amd64 ncurses based console audio player
> ii moc-ffmpeg-plugin:amd64 1:2.6.0~svn-r2994-3 amd64 ncurses based console audio player - ffmpeg plugin
> ii ruby-minitest 5.11.3-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking
>
>
> $ cat /proc/asound/cards
> 0 [Generic ]: HDA-Intel - HD-Audio Generic
> HD-Audio Generic at 0xe0888000 irq 62
> 1 [Generic_1 ]: HDA-Intel - HD-Audio Generic
> HD-Audio Generic at 0xe0880000 irq 63

Something messed up your soundcard. Why Generic and Generic_1?

Elimar
--
  Learned men are the cisterns of knowledge,
  not the fountainheads ;-)

Revision history for this message
Richard Baka (bakarichard91) wrote :

$ ls -al /etc/alsa/conf.d
összesen 12
drwxr-xr-x 2 root root 4096 ápr 16 23:50 .
drwxr-xr-x 3 root root 4096 márc 29 00:14 ..
lrwxrwxrwx 1 root root 46 febr 20 16:09 10-samplerate.conf -> /usr/share/alsa/alsa.conf.d/10-samplerate.conf
lrwxrwxrwx 1 root root 45 febr 20 16:09 10-speexrate.conf -> /usr/share/alsa/alsa.conf.d/10-speexrate.conf
lrwxrwxrwx 1 root root 48 febr 20 16:09 50-arcam-av-ctl.conf -> /usr/share/alsa/alsa.conf.d/50-arcam-av-ctl.conf
lrwxrwxrwx 1 root root 40 febr 20 16:09 50-jack.conf -> /usr/share/alsa/alsa.conf.d/50-jack.conf
lrwxrwxrwx 1 root root 39 febr 20 16:09 50-oss.conf -> /usr/share/alsa/alsa.conf.d/50-oss.conf
lrwxrwxrwx 1 root root 46 febr 20 16:09 50-pulseaudio.conf -> /usr/share/alsa/alsa.conf.d/50-pulseaudio.conf
lrwxrwxrwx 1 root root 41 febr 20 16:09 60-upmix.conf -> /usr/share/alsa/alsa.conf.d/60-upmix.conf
lrwxrwxrwx 1 root root 44 febr 20 16:09 60-vdownmix.conf -> /usr/share/alsa/alsa.conf.d/60-vdownmix.conf
lrwxrwxrwx 1 root root 46 febr 20 16:09 98-usb-stream.conf -> /usr/share/alsa/alsa.conf.d/98-usb-stream.conf
-rw-r--r-- 1 root root 201 febr 20 16:09 99-pulseaudio-default.conf.example
lrwxrwxrwx 1 root root 38 ápr 16 15:54 99-pulse.conf -> /usr/share/alsa/alsa.conf.d/pulse.conf

$ ls -al /etc/asound.conf
...no such file...

$ls -al $HOME/.asoundrc
...no such file...

This is a fancy (everything integrated) notebook. That is a good question how many sound cards or sound devices are in it and why.
I haven't customized my alsa config but my pulseaudio config

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-20 11:28 -0000]:

> $ ls -al /etc/alsa/conf.d
> összesen 12
> drwxr-xr-x 2 root root 4096 ápr 16 23:50 .
> drwxr-xr-x 3 root root 4096 márc 29 00:14 ..
> lrwxrwxrwx 1 root root 46 febr 20 16:09 10-samplerate.conf -> /usr/share/alsa/alsa.conf.d/10-samplerate.conf
> lrwxrwxrwx 1 root root 45 febr 20 16:09 10-speexrate.conf -> /usr/share/alsa/alsa.conf.d/10-speexrate.conf
> lrwxrwxrwx 1 root root 48 febr 20 16:09 50-arcam-av-ctl.conf -> /usr/share/alsa/alsa.conf.d/50-arcam-av-ctl.conf
> lrwxrwxrwx 1 root root 40 febr 20 16:09 50-jack.conf -> /usr/share/alsa/alsa.conf.d/50-jack.conf
> lrwxrwxrwx 1 root root 39 febr 20 16:09 50-oss.conf -> /usr/share/alsa/alsa.conf.d/50-oss.conf
> lrwxrwxrwx 1 root root 46 febr 20 16:09 50-pulseaudio.conf -> /usr/share/alsa/alsa.conf.d/50-pulseaudio.conf
> lrwxrwxrwx 1 root root 41 febr 20 16:09 60-upmix.conf -> /usr/share/alsa/alsa.conf.d/60-upmix.conf
> lrwxrwxrwx 1 root root 44 febr 20 16:09 60-vdownmix.conf -> /usr/share/alsa/alsa.conf.d/60-vdownmix.conf
> lrwxrwxrwx 1 root root 46 febr 20 16:09 98-usb-stream.conf -> /usr/share/alsa/alsa.conf.d/98-usb-stream.conf
> -rw-r--r-- 1 root root 201 febr 20 16:09 99-pulseaudio-default.conf.example
> lrwxrwxrwx 1 root root 38 ápr 16 15:54 99-pulse.conf -> /usr/share/alsa/alsa.conf.d/pulse.conf

Looks reasonable :-)

>
> $ ls -al /etc/asound.conf
> ...no such file...
>
> $ls -al $HOME/.asoundrc
> ...no such file...
>
> This is a fancy (everything integrated) notebook. That is a good question how many sound cards or sound devices are in it and why.
> I haven't customized my alsa config but my pulseaudio config

How did you customise your pulseaudio config?

Elimar
--
  On the keyboard of life you have always
  to keep a finger at the escape key;-)

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-20 17:14 -0000]:

> ; daemonize = no
> ; fail = yes
> ; allow-module-loading = yes
...

What are those settings useful for?

I've put those to my $HOME/.config/pulse/daemon.conf, restarted
pulseaudio and ran mocp successful, though.

Please post the output of:

$ alsamixer

Elimar
--
  On the keyboard of life you have always
  to keep a finger at the escape key;-)

Revision history for this message
Richard Baka (bakarichard91) wrote :

Thanks for the guidance, this did the trick:

$ alsamixer
I found the proper soundcard (which has mixers)
then I have added to /etc/pulse/daemon.conf
this:
defaults.pcm.card 1
defaults.ctl.card 1

The number is the number of the correct sound device/card.

Elimar:

...
 default-sample-format = float32le
 default-sample-rate = 192000
 alternate-sample-rate = 192000
 default-sample-channels = 2
 resample-method = speex-float-10
 avoid-resampling = false
 enable-remixing = yes
 remixing-use-all-sink-channels = yes
 enable-lfe-remixing = yes
 lfe-crossover-freq =100
...

These make the sound quality better in pulse I think. The default settings were very awful.

Revision history for this message
Richard Baka (bakarichard91) wrote :

No, I've copied the wrong line.

/etc/asound.conf this is the file for these lines:
defaults.pcm.card 1
defaults.ctl.card 1

Why I can not edit my comment? :\

Then pulseaudio -k && sudo alsa force-reload

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

* Richard Baka <email address hidden> [2019-04-21 00:27 -0000]:

> No, I've copied the wrong line.
>
> /etc/asound.conf this is the file for these lines:
> defaults.pcm.card 1
> defaults.ctl.card 1

Remove that file or try:
defaults.pcm.card 0
defaults.ctl.card 0

Elimar
--
  355/113: Not the famous irrational number pi,
           but an incredible simulation!
                 -unknown

Revision history for this message
Richard Baka (bakarichard91) wrote :

I replaced these:
> defaults.pcm.card 1
> defaults.ctl.card 1

to these

> defaults.pcm.card 0
> defaults.ctl.card 0

Then i did $ pulseaudio -k && sudo alsa force-reload

And mocp works

Why?

Revision history for this message
Elimar Riesebieter (riesebie) wrote :

Failure came from a missconfiguration of users soundcard.

Changed in moc (Ubuntu):
assignee: nobody → Elimar Riesebieter (riesebie)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.