zynthian / zynthian-issue-tracking

Centralized Issue Tracking for Zynthian Project
https://github.com/orgs/zynthian/projects/1
11 stars 3 forks source link

Changing wiring config restarts UI without saving snapshot #496

Closed riban-bw closed 3 years ago

riban-bw commented 3 years ago

Describe the bug Changes to wiring from webconf, e.g. Customizable Switches require to be asserted by pressing Save button_ which restarts the UI then loads the previously saved snapshot which loses any work done since last restart.

To Reproduce Steps to reproduce the behavior:

  1. In webconf navigate to HARDWARD->Wiring
  2. Change a Customizable Switches setting
  3. Press Save button

Expected behaviour Changes are saved and Zynthian retains its current settings.

Actual behaviour Changes are saved but Zynthian UI restarts and previous snapshot is restored.

Setup:

Additional context Snapshot should be saved before UI restarts. This has occurred previously for different restart reason. Maybe the restart options should default to saving snapshot.

jofemodo commented 3 years ago

It works for me. I can't reproduce. Please, test again with all repos updated on "testing".

riban-bw commented 3 years ago

I did the following:

Zynthian UI restarted and showed Pianoteq on layer 1 and ALO on layer 2.

jofemodo commented 3 years ago

I follow your steps but i can't reproduce the behaviour. In my case, the latest layer configuration is restored. Could you verify that your zynthian is really updated to the last "testing" on all the repositories?

Regards,

riban-bw commented 3 years ago

Hmmm.... very odd! I ssh to Zynthian and manually git pull on each of the four repositories then run SOFTWARE UPDATE from UI and now it works. Previously I just ran software update from webconf. I wonder if it didn't complete the update (I left it for a long time so if it did not complete it is likely to to a failure) or maybe there is an issue with updating from webconf... or maybe something else went wrong. Let's hope it was just an oddity due to my specific workflows and repro jumping / development.

jofemodo commented 3 years ago

My development zynthians sometimes have "rare" states due to continuous jumping from one branch to another, copying source files by hand, etc. Sometimes, these "rare" states cause problems with updates. I don't worry too much about while the update work on a fresh "not-tweaked" SD image. In fact, currently i'm testing the updates with the automated script, that also generates an updated image, what is nice to have.