You are not logged in.

#1 2013-04-21 21:19:16

miscsubbin
Member
Registered: 2012-10-30
Posts: 37

Jack/ALSA crashing

This might have to do with a recent update, but I don't know enough about alsa or jack to really troubleshoot effectively. However, sound has stopped working after a bit after boot. It starts out fine, but then I can't get sound to come out. A reboot will fix it for a little while. To test, I tried to play a song with mplayer. Here is the output.

mplayer 01\ -\ A\ Tooth\ For\ An\ Eye.flac                           !4347
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
Cannot open file '/home/matt/.mplayer/input.conf': No such file or directory
Failed to open /home/matt/.mplayer/input.conf.

Playing 01 - A Tooth For An Eye.flac.
Detected file format: raw FLAC (libavformat)
[flac @ 0x7f6853495760]max_analyze_duration 5000000 reached at 5015510 microseconds
[lavf] stream 0: audio (flac), -aid 0
[lavf] stream 1: video (mjpeg), -vid 0
Clip info:
 ENCODER: X Lossless Decoder 20130127
 TITLE: A Tooth For An Eye
 ARTIST: The Knife
 ALBUM: Shaking The Habitual (CD 1)
 GENRE: Alternative
 COMPOSER: The Knife
 track: 1
 TRACKTOTAL: 7
 TOTALTRACKS: 7
 disc: 1
 DISCTOTAL: 2
 TOTALDISCS: 2
 DATE: 2013
 ISRC: SEWCE1300101
 ITUNES_CDDB_1: 510C9F07+242478+7+150+27473+69211+108453+132018+152717+156822
 REPLAYGAIN_TRACK_GAIN: -7.35 dB
 REPLAYGAIN_TRACK_PEAK: 0.98861694
Load subtitles in .
Selected audio codec: FLAC (Free Lossless Audio Codec) [libavcodec]
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
AO: [pulse] Init failed: Connection refused
jack_client_new: deprecated
Cannot open alsa-jack.rawjackP.3001.0 client
[AO_ALSA] Playback open error: No such file or directory
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Cannot read socket fd = 9 err = Success
CheckRes error
JackSocketClientChannel read fail
Cannot open MPlayer [3001] client
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
jack_client_new: deprecated
Cannot read socket fd = 9 err = Success
CheckRes error
JackSocketClientChannel read fail
Cannot open alsa-jack.rawjackP.3001.1 client
[AO SDL] Unable to open audio: No available audio device
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   5.1 (05.1) of 364.3 (06:04.3)  0.2% 


MPlayer interrupted by signal 2 in module: unknown

Exiting... (Quit)

Any idea what I should look for? I currently have jack going through alsa with a plugin.

Offline

#2 2013-04-22 13:54:49

miscsubbin
Member
Registered: 2012-10-30
Posts: 37

Re: Jack/ALSA crashing

Here's my .asoundrc, if that helps.

pcm.rawjack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

pcm.jack {
    type plug
    slave { pcm "rawjack" }
    hint {
 	description "JACK Audio Connection Kit"
    }
}

pcm.!default {
    type plug
    slave { pcm "rawjack" }
}

Offline

#3 2013-04-22 14:16:13

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: Jack/ALSA crashing

there is not very much info to go on here.

1. is jackd itself working fine? -> why have you not included logs from jackd/qjackctl?

2. why are you using ALSA with Mplayer, when you can just use jackd? -> https://wiki.archlinux.org/index.php/MP … CK_support

3. are there any errors in dmesg or any other logs?

4. have you consulted all of the documentation in Archwiki regarding ALSA and Jack;  https://wiki.archlinux.org/index.php/Ad … chitecture && https://wiki.archlinux.org/index.php/JA … ection_Kit

5. is Pulseaudio running on your system? (even by mistake, because if it is - it could be grabbing your audio interface, which happened to me recently, after a PA update, even though i had PA disabled).

cheerz

Offline

#4 2013-04-22 15:02:05

miscsubbin
Member
Registered: 2012-10-30
Posts: 37

Re: Jack/ALSA crashing

triplesquarednine wrote:

there is not very much info to go on here.

1. is jackd itself working fine? -> why have you not included logs from jackd/qjackctl?

2. why are you using ALSA with Mplayer, when you can just use jackd? -> https://wiki.archlinux.org/index.php/MP … CK_support

3. are there any errors in dmesg or any other logs?

4. have you consulted all of the documentation in Archwiki regarding ALSA and Jack;  https://wiki.archlinux.org/index.php/Ad … chitecture && https://wiki.archlinux.org/index.php/JA … ection_Kit

5. is Pulseaudio running on your system? (even by mistake, because if it is - it could be grabbing your audio interface, which happened to me recently, after a PA update, even though i had PA disabled).

cheerz

1. I'm trying to get it to crash again, so I can check logs, but right now it seems to be working fine, I'll post again whenever it crashes.

2. Everything goes through jack, so I would need to configure everything that uses sound (and has jack support) to use jack. It's much easier to just have jack go through alsa.

3. couldn't find anything in there yet, but then again, it's not broken right now

4. I've tried looking through, but nothing in particular jumps out as to what could be wrong.

5. it's not even installed

Offline

#5 2013-04-22 15:42:29

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: Jack/ALSA crashing

miscsubbin wrote:

1. I'm trying to get it to crash again, so I can check logs, but right now it seems to be working fine, I'll post again whenever it crashes.

So now everything works? (maybe marked solved, since you can't reproduce?)

miscsubbin wrote:

2. Everything goes through jack, so I would need to configure everything that uses sound (and has jack support) to use jack. It's much easier to just have jack go through alsa.

Well, honestly using ALSA-to-jack actually eats more CPU and can produce poorer quality sound, i personally do not see any use in using alsa-to-jack when you can use the jack backend.

miscsubbin wrote:

3. couldn't find anything in there yet, but then again, it's not broken right now

...then you should mark this [SOLVED] - since (again) you can't reproduce the issue.

miscsubbin wrote:

4. I've tried looking through, but nothing in particular jumps out as to what could be wrong.

well, in the future - you may actually want to post this stuff, when looking for help ~ someone may notice something that you do not - and posting minimal amounts of info - does not allow people to properly help identify an issue/problem.

miscsubbin wrote:

5. it's not even installed

just making sure wink

Offline

Board footer

Powered by FluxBB