[PlanetCCRMA] Re: jack_fst - Library requirements

Mark Knecht Mark Knecht <markknecht@gmail.com>
Sat Oct 30 16:08:00 2004


Andres,
   Hi. Working with a couple of really great guys on the Wine-Users
list we have come up with a quick fix that allows jack_fst to work on
my system and on both of theirs. It is by no means tested, and it's
probably not the way things should really be fixed, but I was
wondering if you and/or Timo would do a quick test and see if it works
for you?

   The problem appears to be when and how jack_fst allocates memory.
There are some new rules that Wine has about allocating memory and it
appears that jack_fst probably doesn't know about them. The fix is to
ensure that memory is allocated early in the process of bringing
jack_fst up. If you are willing to try, then first add the following
function into jfst.c:

void jfst_reserve_mem (int bufsize)
{
       char buf [bufsize];
       int i;

       fprintf (stderr, "Reserving memory: base=%p, size=%d, end=%p\n",
       buf, sizeof(buf), buf+sizeof(buf));
       for (i=0; i<bufsize; i++)
          {
           buf[i] = (char) (i % 256);
       }
}

Once this is in place then we need to tell the main function to use
it, so it needs to be added before the call to fst_init(). I did it
like this:


        jfst_reserve_mem(1000000); //NEW FIX FOR WINE-20041019

        if (fst_init (fst_signal_handler)) {
                return 1;
        }

With that in place I am now able to run VST's with wine-20041019.
However, so far I have only tested a few VSTs so I don't know if this
is a global fix. Also, with this fix I am only able to load two VSTs
at the same time. One the third I get an error message, most probably
because this simple fix overlooks something obvious.

   Anyway, I look forward to hearing how it works for you guys.

Cheers,
Mark




On Mon, 25 Oct 2004 10:08:54 -0400, Andres Cabrera
<acabrera@teleset.com.co> wrote:
> Hi Mark,
> I'm wondering what you did to get jack_fst working. On my system
> jack_fst has built fine, but when run, the VST gui pops up for a second,
> and jack_fst quits with a segmentation fault (I've tried about five
> different plugins with the same result). When the plugin doesn't have a
> gui, there is no segmentation fault, but jack_fst doesn't show up as
> ports on qjackctl.
> I'm using wine-20040813 and Fedora Core 1 Planet CCRMA.
> 
> Any ideas here?
> 
> Thanks,
> Andres
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma
>