zynthian / zynthian-issue-tracking

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

Pianoteq presets cache is not properly invalidated #681

Open BurNiinTRee opened 2 years ago

BurNiinTRee commented 2 years ago

Describe the bug After uploading a newer version of Pianoteq, newly added Instruments and Presets don't show up.

To Reproduce Steps to reproduce the behavior:

  1. Load the default Pianoteq 6 Trial version
  2. Upload a new version of Pianoteq (in my case 7.5.4) to the zynthian through the webconfig
  3. (Add a license key)
  4. Try to play one of the new instruments (e.g. Petrof Mistral, NY/HH Steinway D)
  5. Not find it in the preset list

Expected behavior Licensed, new instruments should appear under the *** Favorites*** section, unlicensed new instruments should appear under the --- DEMO Instruments Section in the Pianoteq presets list.

Screenshots If applicable, add screenshots to help explain your problem.

Setup:

Additional context This Issue persisted across reboots. As a workaround, I deleted the /zynthian/config/pianoteq6/presets_cache.json file; this fixed the issue after a reboot.

riban-bw commented 2 years ago

@BurNiinTRee are you using the native version of Pianoteq (near top of list) or the LV2 version (enabled by webconf and appears in list of LV2 Instruments further down list)?

BurNiinTRee commented 2 years ago

Yes, I am talking about the native version, I haven't tried out the LV2 version yet.

riban-bw commented 2 years ago

Favourite is not for licensed instruments it is for any preset that you have manually tagged as a favourite.

I will try an update during testing this week to see if I can reproduce this issue.

BurNiinTRee commented 2 years ago

I hadn't yet figured out how the favorites section worked, what I meant was the list of the licensed instruments, located right between the *** Favorites *** option and the demo instruments.

riban-bw commented 2 years ago

Understood! Do you see any licensed instruments, e.g. free or ones you previously owned or are there no entries between thefavs and demo?

Have you run the scan for new instruments and presets in webconf? Beware this is flawed and may bomb out in webconf but should eventually complete in the background. Give it 10 minutes then restart any retest.

BurNiinTRee commented 2 years ago

Yes, I saw the other licensed Instruments I owned, just not the Steinway Model D which was added in version 7. I worked around it by deleting the presets cache (/zynthian/config/pianoteq6/presets_cache.json). Tbh I did not see the scan so maybe it was user error after all. Do you mean the Update Presets button below the Upload Binary/PTQ button?

riban-bw commented 2 years ago

Yes that will be the one!

riban-bw commented 2 years ago

I removed the configuration file that includes the license then re-licensed Pianoteq on the device. Only the free (included with purchase) instruments showed with the rest below the "Demo Instruments" divider.

Pressing "Update Presets" button in webconf did not fix this, even after a reboot. It looks like the cache file is created in /zynthian/config/pianoteq6/presets_cache.json. I will look at the code...

riban-bw commented 2 years ago

Okay - this is now working for me:

This is certainly arduous and could be optimised but it does work. @BurNiinTRee please confirm this works for you so that we can close this ticket. Feel free to raise another feature request to simplify the process.