FS#33499 - [jack2] Segmentation Fault using TASCAM US-122L
Attached to Project:
Community Packages
Opened by Antanas Bružas (antanas) - Monday, 21 January 2013, 20:21 GMT
Last edited by Ray Rashif (schivmeister) - Wednesday, 03 July 2013, 20:28 GMT
Opened by Antanas Bružas (antanas) - Monday, 21 January 2013, 20:21 GMT
Last edited by Ray Rashif (schivmeister) - Wednesday, 03 July 2013, 20:28 GMT
|
Details
Description:
After updating kernel to 3.7.3, I'm getting an error when starting jack server using TASCAM US-122L soundcard Additional info: * package version(s) linux 3.7.3-1 jack2 1.9.9.5-1 alsa-utils 1.0.26-1 alsa-lib 1.0.26-1 * config and/or log files etc. Mon Jan 21 22:10:36 2013: Starting jack server... Mon Jan 21 22:10:36 2013: JACK server starting in realtime mode with priority 10 Mon Jan 21 22:10:36 2013: Acquired audio card Audio1 Mon Jan 21 22:10:36 2013: creating alsa driver ... usb_stream:US122L|usb_stream:US122L|256|2|48000|0|0|nomon|swmeter|-|32bit Mon Jan 21 22:10:36 2013: configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 2 periods Mon Jan 21 22:10:36 2013: ALSA: final selected sample format for capture: 24bit little-endian Mon Jan 21 22:10:36 2013: ALSA: use 2 periods for capture Mon Jan 21 22:10:36 2013: ERROR: ALSA: cannot set hardware parameters for capture Mon Jan 21 22:10:36 2013: ERROR: ALSA: cannot configure capture channel Mon Jan 21 22:10:36 2013: ERROR: Segmentation Fault! Mon Jan 21 22:10:36 2013: ERROR: info.si_signo = 11 Mon Jan 21 22:10:36 2013: ERROR: info.si_errno = 0 Mon Jan 21 22:10:36 2013: ERROR: info.si_code = 1 (SEGV_MAPERR) Mon Jan 21 22:10:36 2013: ERROR: info.si_addr = 0x13 Mon Jan 21 22:10:36 2013: ERROR: reg[00] = 0x00007f22f80362c0 Mon Jan 21 22:10:36 2013: ERROR: reg[01] = 0x0000000000000812 Mon Jan 21 22:10:36 2013: ERROR: reg[02] = 0x00000000000001ff Mon Jan 21 22:10:36 2013: ERROR: reg[03] = 0x0000000000000246 Mon Jan 21 22:10:36 2013: ERROR: reg[04] = 0x0000000000000000 Mon Jan 21 22:10:36 2013: ERROR: reg[05] = 0x0000000000000002 Mon Jan 21 22:10:36 2013: ERROR: reg[06] = 0x0000000000000000 Mon Jan 21 22:10:36 2013: ERROR: reg[07] = 0x0000000001d843e0 Mon Jan 21 22:10:36 2013: ERROR: reg[08] = 0x0000000001df5200 Mon Jan 21 22:10:36 2013: ERROR: reg[09] = 0x0000000000000000 Mon Jan 21 22:10:36 2013: ERROR: reg[10] = 0x0000000001df5b40 Mon Jan 21 22:10:36 2013: ERROR: reg[11] = 0x0000000001df5140 Mon Jan 21 22:10:36 2013: ERROR: reg[12] = 0x00007f22f80362e8 Mon Jan 21 22:10:36 2013: ERROR: reg[13] = 0xffffffffffffffff Mon Jan 21 22:10:36 2013: ERROR: reg[14] = 0x0000000001df5200 Mon Jan 21 22:10:36 2013: ERROR: reg[15] = 0x00007fffdbaa8eb0 Mon Jan 21 22:10:36 2013: ERROR: reg[16] = 0x00007f22f7e34887 Mon Jan 21 22:10:36 2013: ERROR: reg[17] = 0x0000000000010286 Mon Jan 21 22:10:36 2013: ERROR: reg[18] = 0x0000000000000033 Mon Jan 21 22:10:36 2013: ERROR: reg[19] = 0x0000000000000004 Mon Jan 21 22:10:36 2013: ERROR: reg[20] = 0x000000000000000e Mon Jan 21 22:10:36 2013: ERROR: reg[21] = 0x0000000000005a07 Mon Jan 21 22:10:36 2013: ERROR: reg[22] = 0x0000000000000013 Mon Jan 21 22:10:36 2013: ERROR: Stack trace: Mon Jan 21 22:10:36 2013: ERROR: 1: 0x7f22f7e34887 <(null)+4158867591> (/usr/lib/alsa-lib/libasound_module_pcm_usb_stream.so) Mon Jan 21 22:10:36 2013: ERROR: End of stack trace Mon Jan 21 22:10:36 2013: ------------------ Mon Jan 21 22:10:36 2013: Controller activated. Version 1.9.9.5 (unknown) built on Mon Dec 10 23:10:29 2012 Mon Jan 21 22:10:36 2013: Loading settings from "/home/antanas/.config/jack/conf.xml" using expat_2.1.0 ... Mon Jan 21 22:10:36 2013: setting parameter 'engine':'driver':'(null)' to value "alsa" Mon Jan 21 22:10:36 2013: setting parameter 'engine':'client-timeout':'(null)' to value "500" Mon Jan 21 22:10:36 2013: setting parameter 'drivers':'alsa':'device' to value "usb_stream:US122L" Mon Jan 21 22:10:36 2013: setting parameter 'drivers':'alsa':'rate' to value "48000" Mon Jan 21 22:10:36 2013: setting parameter 'drivers':'alsa':'period' to value "256" Mon Jan 21 22:10:36 2013: setting parameter 'drivers':'alsa':'dither' to value "s" Mon Jan 21 22:10:36 2013: Listening for D-Bus messages Steps to reproduce: open qjackctl or any prefered tool and start jack. |
This task depends upon
ERROR: 1: 0x7f22f7e34887 <(null)+4158867591> (/usr/lib/alsa-lib/libasound_module_pcm_usb_stream.so)
Unfortunately, kernel changelog doesn't contain any relevant changes. Remove unimportant options like dithering and add -v to the beginning of your jackd options, then follow these steps:
1. Try and reproduce this with extra/jack and tell us how it goes
2. Remove the asoundrc and retry (very important, since it may no longer be needed)
3. Failing that, try a roll back to a previous kernel (rebuild/ABS or use [i])
4. Failing that, try a previous alsa-lib (rebuild or [i])
5. Make sure to report back with the parameters you use to run jackd
6. Include output of 'cat /proc/asound/cards'
7. Also include the last versions of kernel, alsa and jack packages known to have worked
When you remove the asoundrc, you may have to manually select the device (it may no longer be usb_stream; check with qjackctl) or jackd will use the first, which is usually the onboard sound chip. Make sure you kill other sound servers like PulseAudio if you have one, before attempting to troubleshoot.
[i] http://arm.konnichi.com/
cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfebfc000 irq 45
1 [US122L ]: USB US-122L - TASCAM US-122L
TASCAM US-122L (644:800e if 0 at 001/002)
I have removed the .asoundrc file.
First trying usb_stream it says that there is no such file:
jackd -v -R -d alsa -d usb_stream:US122L -r44100 -p512
jackdmp 1.9.8
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2011 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
Jack: Create non RT thread
Jack: ThreadHandler: start
Jack: playback device usb_stream:US122L
Jack: capture device usb_stream:US122L
Jack: apparent rate = 44100
Jack: frames per period = 512
Jack: JackDriver::Open capture_driver_name = usb_stream:US122L
Jack: JackDriver::Open playback_driver_name = usb_stream:US122L
Jack: Check protocol client = 8 server = 8
Jack: JackEngine::ClientInternalOpen: name = system
Jack: JackEngine::AllocateRefNum ref = 0
Jack: JackPosixSemaphore::Allocate name = jack_sem.1000_default_system val = 0
Jack: JackEngine::NotifyAddClient: name = system
Jack: JackGraphManager::SetBufferSize size = 512
Jack: JackConnectionManager::DirectConnect first: ref1 = 0 ref2 = 0
Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
Jack: JackDriver::SetupDriverSync driver sem in flush mode
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL usb_stream:US122L
control open "usb_stream:US122L" (No such file or directory)
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL usb_stream:US122L
control open "usb_stream:US122L" (No such file or directory)
audio_reservation_init
Acquire audio card Audio-1
creating alsa driver ... usb_stream:US122L|usb_stream:US122L|512|2|44100|0|0|nomon|swmeter|-|32bit
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL usb_stream:US122L
control open "usb_stream:US122L" (No such file or directory)
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM usb_stream:US122L
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM usb_stream:US122L
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Jack: JackDriver::Close
Jack: JackConnectionManager::DirectDisconnect last: ref1 = 0 ref2 = 0
Jack: JackGraphManager::DisconnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
Jack: JackEngine::ClientCloseAux ref = 0
Jack: JackGraphManager::RemoveAllPorts ref = 0
Jack: JackPosixSemaphore::Destroy name = jack_sem.1000_default_system
Jack: ~JackDriver
Cannot initialize driver
Jack: no message buffer overruns
Jack: JackPosixThread::Stop
Jack: ThreadHandler: exit
JackServer::Open() failed with -1
Jack: Succeeded in unlocking 82241434 byte memory area
Jack: JackShmMem::delete size = 0 index = 0
Jack: ~JackDriver
Jack: Succeeded in unlocking 994 byte memory area
Jack: JackShmMem::delete size = 0 index = 1
Jack: cleaning up shared memory
Jack: cleaning up files
Jack: unregistering server `default'
Failed to open server
After checking that hw:1 is titled as tascam in qjackctl:
jackd -v -d alsa -d hw:1 -r44100 -p512
jackdmp 1.9.8
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2011 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
Jack: Create non RT thread
Jack: ThreadHandler: start
Jack: playback device hw:1
Jack: capture device hw:1
Jack: apparent rate = 44100
Jack: frames per period = 512
Jack: JackDriver::Open capture_driver_name = hw:1
Jack: JackDriver::Open playback_driver_name = hw:1
Jack: Check protocol client = 8 server = 8
Jack: JackEngine::ClientInternalOpen: name = system
Jack: JackEngine::AllocateRefNum ref = 0
Jack: JackPosixSemaphore::Allocate name = jack_sem.1000_default_system val = 0
Jack: JackEngine::NotifyAddClient: name = system
Jack: JackGraphManager::SetBufferSize size = 512
Jack: JackConnectionManager::DirectConnect first: ref1 = 0 ref2 = 0
Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
Jack: JackDriver::SetupDriverSync driver sem in flush mode
control device hw:1
control device hw:1
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:1|hw:1|512|2|44100|0|0|nomon|swmeter|-|32bit
control device hw:1
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Jack: JackDriver::Close
Jack: JackConnectionManager::DirectDisconnect last: ref1 = 0 ref2 = 0
Jack: JackGraphManager::DisconnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
Jack: JackEngine::ClientCloseAux ref = 0
Jack: JackGraphManager::RemoveAllPorts ref = 0
Jack: JackPosixSemaphore::Destroy name = jack_sem.1000_default_system
Jack: ~JackDriver
Cannot initialize driver
Jack: no message buffer overruns
Jack: JackPosixThread::Stop
Jack: ThreadHandler: exit
JackServer::Open() failed with -1
Jack: Succeeded in unlocking 82241434 byte memory area
Jack: JackShmMem::delete size = 0 index = 0
Jack: ~JackDriver
Jack: Succeeded in unlocking 994 byte memory area
Jack: JackShmMem::delete size = 0 index = 1
Jack: cleaning up shared memory
Jack: cleaning up files
Jack: unregistering server `default'
Failed to open server
Now with extra/jack:
jackd -v -d alsa -d usb_stream:US122L -r44100 -p512
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_firewire.so
getting driver descriptor from /usr/lib/jack/jack_alsa_midi.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from /usr/lib/jack/jack_net.so
JACK compiled with System V SHM support.
server `default' registered
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via clock_gettime
loading driver ..
start poll on 3 fd's
apparent rate = 44100
creating alsa driver ... usb_stream:US122L|usb_stream:US122L|512|2|44100|0|0|nomon|swmeter|-|32bit
new client: alsa_pcm, id = 1 type 1 @ 0x18a4f60 fd = -1
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL usb_stream:US122L
control open "usb_stream:US122L" (No such file or directory)
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM usb_stream:US122L
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM usb_stream:US122L
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
cannot load driver module alsa
starting server engine shutdown
freeing shared port segments
stopping server thread
last xrun delay: 0.000 usecs
max delay reported by backend: 0.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
cleaning up shared memory
cleaning up files
unregistering server `default'
no message buffer overruns
and:
jackd -v -d alsa -d hw:1 -r44100 -p512
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_firewire.so
getting driver descriptor from /usr/lib/jack/jack_alsa_midi.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from /usr/lib/jack/jack_net.so
JACK compiled with System V SHM support.
server `default' registered
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:1|hw:1|512|2|44100|0|0|nomon|swmeter|-|32bit
control device hw:1
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
cannot load driver module alsa
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via clock_gettime
new client: alsa_pcm, id = 1 type 1 @ 0x1ddef60 fd = -1
starting server engine shutdown
freeing shared port segments
start poll on 3 fd's
server thread back from poll
stopping server thread
last xrun delay: 0.000 usecs
max delay reported by backend: 0.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
cleaning up shared memory
cleaning up files
unregistering server `default'
no message buffer overruns
Using the same .asoundrc file again:
jackd -v -d alsa -d usb_stream:US122L -r44100 -p512
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_firewire.so
getting driver descriptor from /usr/lib/jack/jack_alsa_midi.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from /usr/lib/jack/jack_net.so
JACK compiled with System V SHM support.
server `default' registered
loading driver ..
apparent rate = 44100
creating alsa driver ... usb_stream:US122L|usb_stream:US122L|512|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 2 periods for capture
ALSA/USX2Y: mmap: Bad address
ALSA: cannot set hardware parameters for capture
ALSA: cannot configure capture channel
Segmentation fault (core dumped)
jackd -v -d alsa -d hw:1 -r44100 -p512
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
getting driver descriptor from /usr/lib/jack/jack_oss.so
getting driver descriptor from /usr/lib/jack/jack_firewire.so
getting driver descriptor from /usr/lib/jack/jack_alsa_midi.so
getting driver descriptor from /usr/lib/jack/jack_alsa.so
getting driver descriptor from /usr/lib/jack/jack_dummy.so
getting driver descriptor from /usr/lib/jack/jack_net.so
JACK compiled with System V SHM support.
server `default' registered
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:1|hw:1|512|2|44100|0|0|nomon|swmeter|-|32bit
control device hw:1
ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
cannot load driver module alsa
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via clock_gettime
new client: alsa_pcm, id = 1 type 1 @ 0xd53f60 fd = -1
starting server engine shutdown
freeing shared port segments
stopping server thread
start poll on 3 fd's
last xrun delay: 0.000 usecs
max delay reported by backend: 0.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
cleaning up shared memory
cleaning up files
unregistering server `default'
no message buffer overruns
Linux bendraskatilas 3.6.11-rt25-1-rt #1 SMP PREEMPT RT Sat Dec 29 19:08:29 EET 2012 x86_64 GNU/Linux
[1] https://bugzilla.kernel.org/
You could pop into jackd's IRC channel #jack on Freenode (or their mailing list) and request a little help, in case someone there has experience with USB sound card issues.
snd-usb-usx2y module is for Tascam US-122, but newer soundcard version Tascam US-122L used to be using snd-usb-us122l, so maybe this has something to do here?
Will close this now as it is not making any headway upstream.