fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] FluidSynth Example on MacOS gives segfault


From: Ceresa Jean-Jacques
Subject: Re: [fluid-dev] FluidSynth Example on MacOS gives segfault
Date: Sun, 23 Feb 2020 22:58:59 +0100 (CET)

 
Hi, Rohit
 
I suspect the "segmentation fault" occurs during the execution of fluid_synth_sload(). This souldn't occur
even if the soundfont file is malformed.
 
Please, would you try these 2 simple tests and report each results:
 
1) First test: use a well know correct sf2 (i.e GUGSv1_47.sf2).
 
2) Second test: still using JJSF2.SF2, In the source file , add "printf" before and after fluid_synth_sload() like this:
....
printf("fluidsynth_simpe: start  loading the soundfont file\n");
/ *Load the soundfont */
if(fluid_synth_sload(synth, argv[1], 1) == -1)
{
     fprintf(stderr, "Failed to load the SoundFont\n");
     err = 4;
     goto cleanup;
}
printf("fluidsynth_simpe: end  loading the soundfont file\n");
.....

Cheers.

jjc

 

> Message du 23/02/20 21:02
> De : "Rohit Sanjay" <address@hidden>
> A : address@hidden
> Copie à :
> Objet : [fluid-dev] FluidSynth Example on MacOS gives segfault
>
>
Hi, I'm just trying to acquaint myself with FluidSynth by testing out a few example codes given in the docs.

>
I tried to run the code written here, with a random sf2 file that I found online. I run into the following warning and segfault. I'm not sure how to proceed. Please help me out. Thanks.

>
$ gcc -g -O -o fluidsynth_simple fluidsynth_simple.c -lfluidsynth
$ ./fluidsynth_simple ../Downloads/JJSF2.SF2
fluidsynth: warning: No preset found on channel 0 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 1 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 2 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 3 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 4 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 5 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 6 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 7 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 8 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
> fluidsynth: warning: No preset found on channel 10 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 11 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 12 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 13 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 14 [bank=0 prog=0]
> fluidsynth: warning: No preset found on channel 15 [bank=0 prog=0]
> [1]    57358 segmentation fault  ./fluidsynth_simple ../Downloads/JJSF2.SF2

>

>
Rohit



_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]