# FluidSynth broken

**URL:** <https://discourse.zynthian.org/t/fluidsynth-broken/3704>\
**Category:** Using Zynthian\
**Created:** [January 18, 2020, 12:22pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704 "2020-01-18T12:22:41Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 18, 2020, 12:22pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/1 "2020-01-18T12:22:41Z")

</div>

Could please somebody try the following to prove to @jofemodo that this bug is the most important one?

> <https://github.com/zynthian/zynthian-sys/issues/133>
>
> I took the image from 12-20, updated.
> Using the FluidSynth doesn't work.
> ERROR:zynthian\_engine: Can't exec engine command: load "/zynthian/zynthian-data/soundfonts/sf2/FluidR3\_GM.sf2" =\> End Of File...

Take the latest image (2020-01-15) and try to create a FluidSynth layer with the GM soundfont.  
The bank/sound screens won’t show.

I tried on two different machines. V2 kit and a V1.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [January 18, 2020, 12:31pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/2 "2020-01-18T12:31:25Z")

</div>

Yep confirmed at least as far as the GUI goes.

I try to load Fluid GM (zynthian-ceed.local) , doesn’t do it but comes through to

 ![2020-01-18-122844_1366x768_scrot](https://discourse.zynthian.org/uploads/default/original/2X/4/4586101862462219e33089b272bbe3262cb1ca51.png)  
Which I can use to remote control a fluidsynth patch elsewhere that does reliably load on machine startup.

Engine generation snapshot somewhere…?

Yep I can’t load a new engine Fluid GM engine on the remote machine ( zynthan-amp2.local)

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/3/32ce5fd83a7e4efffbf098f04576c0289a9fd2f4.png)

That’s as far as I get as I’m a Teletubbyzurückwinker . . . .

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 19, 2020, 8:49pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/3 "2020-01-19T20:49:48Z")

</div>

@riban, as you outed yourself as fluidsynth champion…could you please have a look?

The first click on the file is dead. The second displays the screen @wyleu posted

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 20, 2020, 9:10am UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/4 "2020-01-20T09:10:32Z")

</div>

Damn! I should have kept my head down 🙂

Sorry - I can’t reproduce this. Can you give step-by-step instructions on how to reproduce?

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 20, 2020, 10:48am UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/5 "2020-01-20T10:48:13Z")

</div>

I used a Raspi3.  
Install 2020-01-15 buster  
Create FS layer on channel 1

When you try to select the sf2 file, the click is dead.  
When you click on a different file it’s dead also.  
When you click second time on file, the screen shown above is displayed.  
No program selection screen was shown.

I am going to test it on my Raspi4 tonight.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 20, 2020, 1:13pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/6 "2020-01-20T13:13:10Z")

</div>

I could reproduce in a fresh Buster, but then, after updating & rebooting, the error has gone.  
I would check again …

Regards,

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 20, 2020, 2:22pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/7 "2020-01-20T14:22:50Z")

</div>

Nothing. I reflashed and tested again, but nothing. It’s a slippery bug … ;-(

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 20, 2020, 4:04pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/8 "2020-01-20T16:04:59Z")

</div>

yes, it’s slippery.  
But although I updated a lot, it fails in 90% of the cases on both of my machines.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 20, 2020, 6:49pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/9 "2020-01-20T18:49:15Z")

</div>

I am testing on RPi4 and can’t reproduce… until now!!! Just happened.

I just returned to my studio to see Zynthian running on its own touchscreen as well as on my laptop’s Xserver which might explain this behaviour, i.e. two instances of zynthain running on same Raspberry Pi 4. Could this be the same issue for you?

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 20, 2020, 8:05pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/10 "2020-01-20T20:05:33Z")

</div>

no, i was testing on two Raspi3.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 20, 2020, 8:42pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/11 "2020-01-20T20:42:08Z")

</div>

I mean, could it be that a second instance of Zynthian somehow got started. Maybe next time it happens, check how many are running.

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [January 21, 2020, 12:31am UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/12 "2020-01-21T00:31:02Z")

</div>

Au contraire.  
The fluidsynth process starts and after a second it’s already gone.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 21, 2020, 7:18am UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/13 "2020-01-21T07:18:16Z")

</div>

Not Fluidsynth - are there two instances of Zynthian?

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [January 21, 2020, 7:39am UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/14 "2020-01-21T07:39:03Z")

</div>

I’ve got only one zynthian instance on a 3B+ on a machine that exhibits the behaviour.

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/c/ccb118793d5e64c252d806637770428f95b12679.png)

journalctl -f is having a whinge . . .

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/9/926afa93a60e2d1c5a156da8fadb147a7de1b525.png)

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 22, 2020, 2:10pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/15 "2020-01-22T14:10:05Z")

</div>

I think the error is caused by a memory leak on fluidsynth code, probably introduced on v2.1.0.  
I opened an issue:

> <https://github.com/FluidSynth/fluidsynth/issues/613>
>
> FluidSynth version
> Version: v2.1.0 or latest from master (working fine on 2.0.9)
> Describe the bug
> When starting fluidsynth with:
> /usr/local/bin/fluidsynth -p fluidsynth -a jack -m...

Until it’s solved, i’ve modified the install script for using v2.0.9. Please, re-build your fluidsynth and check if problem has gone …

```
$ZYNTHIAN_RECIPE_DIR/install_fluidsynth.sh

```

Thanks

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 22, 2020, 2:11pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/16 "2020-01-22T14:11:40Z")

</div>

This could be related with other fluidsynth recent & strange problems, like:

> [FluidSynth Output is Hopping Around Channels L and R](https://discourse.zynthian.org/t/fluidsynth-output-is-hopping-around-channels-l-and-r/3678)

and

> [Zynthian changes all Soundfonts in multiple FluidSynth Instances](https://discourse.zynthian.org/t/zynthian-changes-all-soundfonts-in-multiple-fluidsynth-instances/3671)

Regards,

---

<div class="post-metadata">

**Author:** ![copes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/copes/32/8317_2.png) [@copes](https://discourse.zynthian.org/u/copes)\
**Post date:** [January 22, 2020, 4:59pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/17 "2020-01-22T16:59:13Z")

</div>

I can confirm, that at the first few bootups this works with fluidsynth 2.09

Thank you!

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [January 22, 2020, 5:08pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/18 "2020-01-22T17:08:24Z")

</div>

Fantastic!!

---

<div class="post-metadata">

**Author:** ![copes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/copes/32/8317_2.png) [@copes](https://discourse.zynthian.org/u/copes)\
**Post date:** [January 22, 2020, 6:06pm UTC](https://discourse.zynthian.org/t/fluidsynth-broken/3704/19 "2020-01-22T18:06:43Z")

</div>

After some more testing, I’m sad to say that the problem

> [@jofemodo](#):
>
> Zynthian changes all Soundfonts in multiple FluidSynth Instances

still persists.

I can not get fluidsynth to load to soundfonts in two instances seperatly. Sigh.
