Page 1 of 1

At low latencies, trying to open Gigedit crashes LS

Posted: Wed May 23, 2012 9:17 am
by thetinman
I run LinuxSampler along with JSampler and a sequencer at 2.9ms latency. But, when I right click on JSampler and select "Edit instrument," JSampler gives me the error message "Connection to backend failed." I can see in the terminal that LS has crashed:

Code: Select all

Found matching editor 'gigedit' for instrument ('/home/me/sessions/gigfiles/Percussion/Drum Kit 09.gig', 0) having data structure ('libgig','3.3.0')
Freeing gig file from memory...OK
Loading gig file '/home/me/sessions/gigfiles/Percussion/Drum Kit 09.gig'...OK
Loading gig instrument ('/home/me/sessions/gigfiles/Percussion/Drum Kit 09.gig',0)...OK
Caching initial samples...Segmentation fault (core dumped)
me@ubuntu:~$ 
Everything works if I increase the latency to 5.8ms. I'm not sure what is going wrong. Maybe it is a bug, but if there are any fixes or work arounds, I would like to know about them.

Edit: I can run Gigedit without problems as long as the Frames/Period setting in Qjackctl is 128. As soon as I drop the Frames/Buffer to 64 and try to launch Gigedit, LS crashes. This does not seem to be directly related to latency as Gigedit ran when

Frames/Period = 128
Sample Rate = 96000Hz
Periods/Buffer = 2
Latency = 2.67msec

but it crashed LS when

Frames/Period = 64
Sample Rate = 44100Hz
Periods/Buffer = 2
Latency = 2.9msec

Re: At low latencies, trying to open Gigedit crashes LS

Posted: Tue Jun 05, 2012 8:28 pm
by varpa
Well.. every system has a latency limit depending on your hardware/software setup. Seems like you've hit the limit for your system. Why do you need to run gigaedit with such ultra-low latency (2.9 ms) anyway? I would think low latencies are only needed for live performance. I usually run linuxsampler at 8.5 ms which gives few problems on my system. I can run at 4 ms, but at higher risk of xruns, and I cannot hear latencies below 10ms myself.

Re: At low latencies, trying to open Gigedit crashes LS

Posted: Sat Jun 16, 2012 11:57 am
by thetinman
I like to run a latency of 2.9ms because it makes my keyboard feel very responsive.