tagspaces / tagspaces

TagSpaces is an offline, open source, document manager with tagging support
https://www.tagspaces.org
GNU Affero General Public License v3.0
3.68k stars 393 forks source link

App will not generate thumbnails consistently for all folders #2177

Open ZebulonGlitch opened 6 days ago

ZebulonGlitch commented 6 days ago

Describe the bug Our data structure is relevant perhaps: We have over 1600 folders containing a wide variety of 3d and technical files, but each folder always contains exactly 1 JPG image which shows what the product looks like. We love Tagspaces, and want to use it to classify all of these products by tagging each image file in each folder with categorization info. This would allow turbocharged powerful file system searches thanks to how the tags are in the file names. We're hitting a work flow problem though.

Tagspaces generates thumbnails if you visit a folder, but this is impossible with so many folders. We need Tagspaces to recursively generate its own thumbnails without human involvement.

Running a search for "jpg" from the Gallery Perspective seems to initiate some thumbnail generation, but it always seems to halt or crash after only producing maybe 60-100 thumbnails. We upgraded to pro to have better filter controls. We also hoped that this glitch would be resolved in pro, but no change. We can now do powerful search filtering to simulate a "gallery" experience, but Tagspaces just won't generate thumbnails reliably.

We have repeatedly closed tagspaces, deleted all .ts folders at the file system level and re-launched in the hopes of finding some pattern but we're stumped at this point. Tagspaces never behaves gracefully in the above use case. Manually recreating the index does nothing to initiate thumbnails it seems. Under advanced settings we disabled the option to run indexing and thumbnails in separate processes, but see no change in behavior. We're stumped.

To Reproduce Steps to reproduce the behavior:

  1. Have thousands of nested folders with one jpg image in each folder. (Plus other extensions which we use the location settings > ignore pattern pro feature to suppress since they aren't relevant.)
  2. In gallery perspective, search for "jpg"
  3. If it doesn't lock up and freeze, it will abort after a short while of intense thumbnailing activity and enter a funky state whereby you can't click anything or get anywhere.
  4. Clicking an un-thumbnailed image doesn't generate a thumbnail. Re-running search doesn't do it. Only restarting Tagspaces seems to allow it to work normally... Until again running the "jpg" search which allows it to generate a few more before again failing.

Expected behavior It should simply generate thumbnails when it finds an image that is lacking one on a query results page. It might take a long time in the beginning, but that's what computers are good at: showing progress meters while doing repetitive processing jobs. ;-) A "regenerate all thumbnails" feature would be great...

Screenshots Screenshots aren't interesting, it's merely a search query for "jpg" with lots of discovered images - some thumbnailed, most not..

Desktop Application:

Additional context Small things noticed:

uggrock commented 6 days ago

Hi and thanks for the issue and your feedback. You can try our command line tool for the creation of the thumbnails: https://docs.tagspaces.org/dev/command-line-tools