INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Thumbnails lost after library restore.  (Read 1314 times)

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Thumbnails lost after library restore.
« on: September 23, 2019, 01:28:54 pm »

Would you please try this:

Be sure all thumbnails are generated (otherwise do Build missing Thumbnails)
Backup Library
then Restore the Library
then go into Tools\Options\Tree&View\Thumbnails  select ...Build Missing Thumnails...

On my MC25.0.98 the 'Build Thumbnail pane reports " Building Thumbnails (1 of 405778).  This will take a while.
It seems new to me, that the thumbnail cache on the system drive gets flushed on lib restore.

Can anyone confirm ?
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Thumbnails lost after library restore.
« Reply #1 on: September 25, 2019, 06:40:31 am »

It seems that not many are affected by this. It would still be nice if someone could confirm or reject my guess.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71498
  • Where did I put my teeth?
Re: Thumbnails lost after library restore.
« Reply #2 on: September 25, 2019, 06:43:44 am »

Thumbnails are generated from scratch.  Just run it overnight.
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Thumbnails lost after library restore.
« Reply #3 on: September 25, 2019, 07:33:38 am »

Yes, that's what I'm gonna do right now. Is this a new behaviour ? I often do backup and restore, especially when trying new db views.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Thumbnails lost after library restore.
« Reply #4 on: September 25, 2019, 09:58:07 am »

You don't have to rebuild thumbnails if you don't want to.  Especially for a test.  MC will dynamically build thumbnails as required.  This will slow things down a bit, but it's not a dramatic slow down.  For testing it really shouldn't be necessary at all, I don't think.

Brian.
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Thumbnails lost after library restore.
« Reply #5 on: September 25, 2019, 12:53:35 pm »

You don't have to rebuild thumbnails if you don't want to.  Especially for a test.  MC will dynamically build thumbnails as required.  This will slow things down a bit, but it's not a dramatic slow down.  For testing it really shouldn't be necessary at all, I don't think.

Brian.

Brian, I do not rebuild. MC does something. I just backup and restore the db. After that MC shows red icons instead of the thumbnails.
All Thumbnails have been rebuilt before - means nothing happens when I start 'build missing thumnails. But now after restore, all 400'000 will be done again.
I do want thumnails to be built dynamically. This causes sleeping drives to be wake up, as soon the selected view contains a thumbnail not yet built.
See: https://yabb.jriver.com/interact/index.php/topic,122262.0.html
 
I'm pretty sure MC behaved different in earlier version. Please try, it take less than a minute.


Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5177
  • "Linux Merit Badge" Recipient
Re: Thumbnails lost after library restore.
« Reply #6 on: September 25, 2019, 01:15:46 pm »

FWIW, to answer your original question, every time I've done a library restore going back to at least MC 19 had to rebuild the thumbnail cache after a library restore.  So I don't think the behavior has changed in this respect.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7411
  • The color of Spring...
Re: Thumbnails lost after library restore.
« Reply #7 on: September 25, 2019, 01:26:37 pm »

Assuming the paths for your files don't change, you can backup the Thumbnails folder and restore it after doing a library restore. However, if paths do change, that won't work.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Thumbnails lost after library restore.
« Reply #8 on: September 25, 2019, 01:29:47 pm »

Brian, I do not rebuild. MC does something. I just backup and restore the db. After that MC shows red icons instead of the thumbnails.

"Red icons".  Do you mean a red circle with a line through it?  That icon means "file not found".  It does not mean anything about the thumbnail.  That is MC's "missing file" indication.  This is fairly normal if your drives are not online and MC is trying to touch the file for the first time.  Or it means that your file paths are incorrect.  Your file paths should be the same if you are using the same machine with the same drive mappings.

If you see a Blue music note icon instead of an album cover, then that means that there is no thumbnail built.  MC should rebuild those, dynamically, almost immediately after you see them (a few seconds).

Quote
I do want thumnails to be built dynamically. This causes sleeping drives to be wake up, as soon the selected view contains a thumbnail not yet built.

Oh I see, this is all about waking up your drives again.  Well I'm not sure what to say.  New libraries need their thumbnails rebuilt, so it's going to access the cover art to do that.  If your cover art was on a single drive, maybe that would not happen?  Maybe?  I'm not 100% sure, but I *am* sure that you can put all of your cover art in a single folder instead of having it in every folder with the music files.

Quote

I'm pretty sure MC behaved different in earlier version. Please try, it take less than a minute.

Since you asked, I gave it a try.  I see no thumbnails when I switch to a brand new library and restore a backup.  I see blue music notes.  They then build thumbnails rather quickly.  However... when I switched back to my normal everyday library (Main) it had blue music notes too!  I checked Help > System Info > Processing .  I see that almost none of my thumbnails are built.  That's very surprising.  I'm not sure if they showed all built before I did this experiment or not.  If they *were* built before and switching libraries erased them, that would be strange.

Brian.
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Thumbnails lost after library restore.
« Reply #9 on: September 25, 2019, 01:46:17 pm »

Since you asked, I gave it a try.  I see no thumbnails when I switch to a brand new library and restore a backup.  I see blue music notes.  They then build thumbnails rather quickly.  However... when I switched back to my normal everyday library (Main) it had blue music notes too!  I checked Help > System Info > Processing .  I see that almost none of my thumbnails are built.  That's very surprising.  I'm not sure if they showed all built before I did this experiment or not.  If they *were* built before and switching libraries erased them, that would be strange.

Would you rebuild all missing thumbnails (Tool\Options\Tree&View\ ...Build missing thumbnails ...) and then try again? Thanks in advance.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Thumbnails lost after library restore.
« Reply #10 on: September 25, 2019, 03:06:19 pm »

I did the extra experiment that you asked for:

1.  In Main library, rebuild thumbnails.  Wait 35 minutes and all are done.
2.  Delete test library.  Recreate test library.  This switched me to the test library.
3.  Restore (to test library) backup made of Main library earlier today.  After restore is complete...
4.  Help > System information > Processing:  I found that I had 5 thumbnails built, which is "0%".
5.  Immediately switched to the Main library (File > Library > Main).
6.  Help > System information > Processing:  This also shows 0% thumbnails, when a few minutes before (at step 1 above) it showed all built.

So I'm pretty sure that switching libraries, when one of them is a restore of the other, clears the thumbnails of the original library.  I don't remember that happening in the past.  I think I probably would have noticed because my views would have had blue music notes when I switched to my main library.  But it's honestly been quite some time since I did any testing like this, so it may always have been this way.

If you still have MC24 or MC23 installed, you might try there to see if the behavior is different or not.

Brian.
Logged
Pages: [1]   Go Up