# ZS3 Program Change crashes

**URL:** <https://discourse.zynthian.org/t/zs3-program-change-crashes/6625>\
**Category:** Software\
**Created:** [January 24, 2022, 7:05pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625 "2022-01-24T19:05:46Z")\
**Posts on this page:** 6\
**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 24, 2022, 7:05pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/1 "2022-01-24T19:05:46Z")

</div>

I built a favourites snapshot file which runs 3 engines:  
ZY, FS and BF .  
Each of them has up to 18 ZS3 program changes programmed.  
Unfortunately after playing (and changing programs) for a certain amount of time (10minutes or the like) a random program change makes the zynthian crash.  
Only repowering helps.  
The zynthian log in debug mode doesn’t show anything.  
I am runnning the stable branch.  
Is this a known issue?  
When can we expect a more stable version?  
I experience more xruns than 2 years ago as well.  
It’s on a V4.5.

Cheers,  
Markus

---

<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 24, 2022, 7:18pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/2 "2022-01-24T19:18:43Z")

</div>

Hi @mheidt !

You say the zynthian-ui log doesn’t show any error? This is strange. Could you check that Jack is still running? Could you check if it’s a “engine” crash? I start to suspect the last version of ZynAddSubFX is not totally fine. Could you check the system log?

What sdcard are you using? Could you test with a new one? Samsung EVO+ and Sandisk Ultra/Extreme work quite well for RBPi normally.

Regards

---

<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 24, 2022, 7:26pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/3 "2022-01-24T19:26:58Z")

</div>

Actually, I had a crach on a (not latest) testing on a V2 as well, which was running PT with 12 zs3 snapshots programmed. I have to repair my snapshot on that one first. As you know the new audiomixer destroys former snapshots and it seems, that after storing a working one, it destroys them again. I keep you updated.

---

<div class="post-metadata">

**Author:** ![samriccijr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/samriccijr/32/6019_2.png) [@samriccijr](https://discourse.zynthian.org/u/samriccijr)\
**Post date:** [January 27, 2022, 10:35pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/4 "2022-01-27T22:35:29Z")

</div>

mheidt:

Are your program changes in Stage Mode (where each program change opens an engine on a new MIDI channel)?

Or are the program changes in Multi Channel mode (18 program changes on MIDI 1, 18 program changes on MIDI 2, and 18 program changes on MIDI 3)?

Regarding FluidSynth:

How many sound fonts are you opening, 1 or 18?  
How big are the the sound fonts?  
Do the program changes span several sound fonts or are they contained in one sound font?

I had best results when I opened only one sound font (600mB) on one MIDI channel, and I restricted program changes to within the one sound font:

New Layer  
Midi Chanel 1  
FluidSynth  
mysoundfont.sf2  
PC1 Piano  
PC2 EP  
PC3 DX  
PC4 Brass  
etc…

If you use LinuxSampler I would use Stage Mode to avoid unloading and re-loading big sample files to memory:

PC1  
MIDI 1  
LinuxSampler  
Piano.sfz (150mb)

PC2  
MIDI 2  
LinuxSampler  
Rhodes.sfz (200mb)

PC3  
MIDI 3  
SetBFree  
Perc Organ

PC4  
MIDI 4  
ZY  
Synth Lead

Hope this helps  
Sam

---

<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 27, 2022, 11:46pm UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/5 "2022-01-27T23:46:11Z")

</div>

> [@mheidt](#):
>
> As you know the new audiomixer destroys former snapshots and it seems, that after storing a working one, it destroys them again. I keep you updated.

Yes, current testing is quite “testing”.😉 It’s a good idea to have separated SDs for stable and testing. Changing back from testing to stable doesn’t work always, and snapshots are not compatible. A snapshot is a “capture” of the zynthian state, and it depends of the underlaying data structure. When the data structure that generated a given sbapshot is too different to the current one, it’s difficult to load the snapshot and get a fully functional state. Some times you loose some routing, some times it’s worst.

When testing is merged on stable again, we will implement am “auto-import”, so the transition should be friction-less, i hope.

Regards,

---

<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 28, 2022, 12:31am UTC](https://discourse.zynthian.org/t/zs3-program-change-crashes/6625/6 "2022-01-28T00:31:02Z")

</div>

Thanks Sam,

But memory is not the problem here. Only lightweighs like ZY, SF and BF, each on a channel.  
Under no circumstances a complete crash should happen.  
But I am trying to start over with a new image. Let’s see if that helps.
