Page 1 of 1

About bug #252 Note pool empty

PostPosted: Wed Mar 29, 2017 2:41 pm
by fujitets
Hi,

I'm facing the same bug now.
I gave it some try, and finally found what leads the 'empty pool', and it's workround (at least on my case).

I'm using multiple sfz file on same channel.
(It means, LOAD INSTRUMENT * N times to same channel)

And these sfz files have adjacent note number as shown below.
--
sfz#1 : includes key=36
sfz#2 : includes key=37, key=38
sfz#3 : includes key=42

dmesg output of fillMapArr() is shown blow.
0 36 37 128
0 37 38 39 128
0 42 43 128
--

This setting always generate 'empty pool', and number of the dmsg output 'Engine: Note on received' (and 'off') is much greater than MIDI file's Note on/off events number.


When I spell-missed wav file's path (so, resulting specify NON-EXISTENT FILE) in the sfz file, LS does not report error, and continue processing.
If I play .mid file on this state, Note is only allocated more and more, but not freed.
So, I doubt that the cause of this bug is something like 'to play non-existent sound, and wait forever'.
(On the above case, note #37 maybe try to play sfz#1's instrumental (which only defines note #36))

Workround #1 : do not use separate sfz files on same channel.
Workround #2 : use separate sfz file on *each* channel.

Both workround fix the bug on above case.
I hope this workround works for original bug reporter...

Re: About bug #252 Note pool empty

PostPosted: Fri Jun 23, 2017 4:14 am
by plusminus
Correction,This bug only affects the Sfz engine. My workaround was to roll back back to svn-2789.
Drawback is no database support on debian stretch and ubuntu 16.04.

Re: About bug #252 Note pool empty

PostPosted: Fri Jun 23, 2017 4:15 pm
by plusminus
Just for kicks i compiled from svn-3290.
Using qtractor,
Load linuxsampler (plugin only, no instrument or GUI) on a midi track.
Using jack keyboard, running the mouse across and back on the keys i get:

Engine: Could not launch new note; Note pool empty!

Re: About bug #252 Note pool empty

PostPosted: Mon Jun 26, 2017 11:05 pm
by plusminus
Earlier today i compiled from svn-3292.
Load a Linuxsampler plugin on a midi track in qtractor.
Startup qsampler or jsampler and add 3 more sampler channels with midi channel 1.
Using Sonatina Symphonic Orchestra library, assign (any) instruments to all sampler channels.
A few seconds of playing:

Engine: Could not launch new note; Note pool empty!

This will also happen with just 1 sampler channel , but will quickly show itself with more sampler channels.
This behavior is present on ubuntu 16.04 and debian stretch.
Can anyone other than fujitets confirm this?

Re: About bug #252 Note pool empty

PostPosted: Tue Jul 11, 2017 12:17 pm
by cuse
Nicola sent me a simple sfz and MIDI file which allowed me to reproduce this bug. I am currently investigating what the problem is.

Re: About bug #252 Note pool empty

PostPosted: Tue Jul 11, 2017 5:07 pm
by cuse
Just committed a fix. It should now behave correctly. See bug #252 for details.

If anybody is still encountering an issue with this one, then just let me know.

Re: About bug #252 Note pool empty

PostPosted: Thu Jul 13, 2017 11:21 pm
by plusminus
off to compile.... :arrow:
will report soon :mrgreen:

Re: About bug #252 Note pool empty

PostPosted: Fri Jul 14, 2017 1:19 am
by plusminus
So far so good. I've been stressing linuxsampler the last few hours without a hiccup.
I commend you on your hard work and dedication. :)
I also stumbled upon another bug..... :mrgreen:

Re: About bug #252 Note pool empty

PostPosted: Tue Aug 15, 2017 8:41 am
by Ohern
plusminus wrote:So far so good. I've been stressing linuxsampler the last few hours without a hiccup.
I commend you on your hard work and dedication. :)
I also stumbled upon another bug..... :mrgreen:


What other bug did you find?

Re: About bug #252 Note pool empty

PostPosted: Mon Aug 21, 2017 2:03 am
by plusminus
look for "Gigedit bug:DimRgn change event debounce" in Newbies & Support.
or
viewtopic.php?f=6&t=3369