About bug #252 Note pool empty

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
fujitets
Newbie
Posts: 1
Joined: Wed Mar 29, 2017 2:26 pm

About bug #252 Note pool empty

Post by fujitets » Wed Mar 29, 2017 2:41 pm

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...

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Fri Jun 23, 2017 4:14 am

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.
Last edited by plusminus on Sun Jul 02, 2017 7:38 pm, edited 1 time in total.

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Fri Jun 23, 2017 4:15 pm

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!

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Mon Jun 26, 2017 11:05 pm

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?

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: About bug #252 Note pool empty

Post by cuse » Tue Jul 11, 2017 12:17 pm

Nicola sent me a simple sfz and MIDI file which allowed me to reproduce this bug. I am currently investigating what the problem is.

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: About bug #252 Note pool empty

Post by cuse » Tue Jul 11, 2017 5:07 pm

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.

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Thu Jul 13, 2017 11:21 pm

off to compile.... :arrow:
will report soon :mrgreen:

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Fri Jul 14, 2017 1:19 am

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:

Ohern
Newbie
Posts: 1
Joined: Tue Aug 08, 2017 2:28 pm

Re: About bug #252 Note pool empty

Post by Ohern » Tue Aug 15, 2017 8:41 am

plusminus wrote:So far so good. I've been stressing linuxsampler the last few hours without a hiccup.
I commend you on the your hard work and dedication. :)
I also stumbled upon another bug..... :mrgreen:
What other bug did you find?
Last edited by Ohern on Tue Oct 19, 2021 10:08 pm, edited 6 times in total.

plusminus
Newbie
Posts: 22
Joined: Tue Jun 21, 2016 3:32 am

Re: About bug #252 Note pool empty

Post by plusminus » Mon Aug 21, 2017 2:03 am

look for "Gigedit bug:DimRgn change event debounce" in Newbies & Support.
or
viewtopic.php?f=6&t=3369

Post Reply