Newb question - can't connect to JACK.

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
Post Reply
StaggerLee
Newbie
Posts: 3
Joined: Thu Jun 18, 2009 7:37 pm

Newb question - can't connect to JACK.

Post by StaggerLee » Thu Jun 18, 2009 7:50 pm

I have successfully set up JSampler and it works fine when ALSA is selected as the audio output, but I would like to route it into Ardour via JACK and whenever I attempt to set the output to JACK I get a "broken pipe" error. I'm guessing this has something to do with my audio configuration but I can't figure it out. Do I need to change Jack's settings somehow to allow this to work? Any help is appreciated!

ggoodesa
Advanced User
Posts: 116
Joined: Thu Aug 14, 2008 6:48 pm

Re: Newb question - can't connect to JACK.

Post by ggoodesa » Sat Jun 20, 2009 7:29 am

Hi StaggerLee,
A little more information about your system will be helpful. Which distribution of Linux are you running (and which version), plus which version of jack are you using? Which version of LinuxSampler are you using (i.e did you download the Debian DEBs or did you compile from the CVS code?). And is jackd running when you try to connect?
GrahamG

StaggerLee
Newbie
Posts: 3
Joined: Thu Jun 18, 2009 7:37 pm

Re: Newb question - can't connect to JACK.

Post by StaggerLee » Mon Jun 22, 2009 6:33 am

Thanks ggoodesa, I'm using Ubuntu Hardy 8.04 with jackd 0.116.2 and qjackctl 0.3.4. Linuxsampler is 0.5.1 (Ithink I just downloaded the deb's - can't remember for sure). Jackd is running, here is the ouput of my terminal when I try to create an audio out to jack, maybe this will help:

eric@marzipan:~$ linuxsampler
LinuxSampler 0.5.1
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2007 Christian Schoenebeck
Detected features: MMX SSE
Creating Sampler...OK
Registered sampler engines: 'GIG'
Registered MIDI input drivers: ALSA
Registered audio output drivers: ALSA,ARTS,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Starting LSCP network server (0.0.0.0:8888)...LSCPServer: Could not bind server socket, retrying for 180 seconds...OK
LinuxSampler initialization completed. :-)

LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
LSCPServer: Client connection established on socket:6.
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
LSCPServer: Client connection terminated on socket:4.
Segmentation fault

Alex
Moderator
Posts: 316
Joined: Wed Jan 23, 2008 9:08 pm

Re: Newb question - can't connect to JACK.

Post by Alex » Sat Jul 04, 2009 10:15 am

StaggerLee,
the 5.1 version is quite old now compared to the work that's been done since then. You would be better served installing LinuxSampler from source, via CVS, the urls for which can be found on the downloads page of the website. The broken pipe issue was fixed in later builds.

Alex.

p.s. If you go down this route, ensure you've removed all the previous stuff first.

StaggerLee
Newbie
Posts: 3
Joined: Thu Jun 18, 2009 7:37 pm

Re: Newb question - can't connect to JACK.

Post by StaggerLee » Sat Oct 17, 2009 11:59 pm

I finally found the time to revisit this problem from a few months ago, I removed all the existing packages and installed everything from source. I ended up getting the same "segmentation fault" error and tried uninstalling everything and downloading all the new Hardy debs - still no luck. Please help! Here's the output of my terminal:

eric@marzipan:~$ linuxsampler
LinuxSampler 1.0.0
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2009 Christian Schoenebeck
Detected features: MMX SSE
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed. :-)

LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
LSCPServer: Client connection established on socket:6.
Cannot open instruments database: /var/lib/linuxsampler/instruments.db
LSCPServer: Client connection terminated on socket:4.
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card
jackd 0.116.2
Copyright 2001-2005 Paul Davis 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

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 48000
creating alsa driver ... hw:0,0|hw:0,0|128|3|48000|0|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 128 frames (2.7 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 3 periods for playback
Segmentation fault
eric@marzipan:~$ jack main caught signal 12
jackd watchdog: timeout - killing jackd

Post Reply