Broken snapshots

For some weeks ago I am working with the testing branch and I saved a couple of snapshots. A lot of them don’t load now. Only the latest ones I saved are working.
Here an example of one that does not load. If I load it Zynthian shows an empty screen.
001-Biko.zss (28.1 KB)


And here the UI log:
Oct 23 19:28:34 zynthian startx[536]: ERROR:zynthian_gui_layer.load_snapshot: Invalid snapshot: unsupported operand type(s) for +: ‘NoneType’ and ‘int’
Oct 23 19:28:34 zynthian startx[536]: Traceback (most recent call last):
Oct 23 19:28:34 zynthian startx[536]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_layer.py”, line 1721, in load_snapshot
Oct 23 19:28:34 zynthian startx[536]: self._load_snapshot_layers(snapshot)
Oct 23 19:28:34 zynthian startx[536]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_layer.py”, line 1797, in _load_snapshot_layers
Oct 23 19:28:34 zynthian startx[536]: self.restore_state_snapshot(snapshot)
Oct 23 19:28:34 zynthian startx[536]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_layer.py”, line 1540, in restore_state_snapshot
Oct 23 19:28:34 zynthian startx[536]: self.restore_legacy_zs3s(state)
Oct 23 19:28:34 zynthian startx[536]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_layer.py”, line 1568, in restore_legacy_zs3s
Oct 23 19:28:34 zynthian startx[536]: ‘zs3_title’: “Legacy ZS3 #{}”.format(self.last_zs3_index + 1),
Oct 23 19:28:34 zynthian startx[536]: TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’

Is there something to do to make them compatible? A converter script or something? Or is this an unwanted behaviour?

Hi @pianissimo! Update and retest. @jofemodo added a fix to handle “legacy” snapshots. The file format changed recently but we hadn’t added the appropriate migration code. It should now work. Your Biko.zss loads on my system and looks fine but you are better placed to know if it is fully working.

Yes, it’s fully working now. Additionally I can now save mixer volume levels for every chain and save them together with the snapshot. I can load my older snapshots now. Thank you and @jofemodo for fixing it.

2 Likes

Time to provide the thank you gift then !! Hooray!!

1 Like