home-gallery: Preview extractor producing lots of errors into log

Trying out the Linux binary with the default config. I’m getting a lot of error messages from the preview extractor in the log of the form:

{"level":50,"time":"2024-08-21T17:11:52.609Z","pid":284344,"hostname":"BRIX2","module":"extractor.image.preview","levelName":"error","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'length')","stack":"TypeError: Cannot read properties of undefined (reading 'length')\n    at file:///tmp/caxa/home-gallery/1.16.1/home-gallery/node_modules/@home-gallery/extractor/dist/extract/image/image-preview.js:128:26\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"},"msg":"Could not calculate image previews of b64fc73:000to-sort4:05KZGbt.jpeg: TypeError: Cannot read properties of undefined (reading 'length')"}

And here is that specific image:

05KZGbt.jpeg.zip

The messages don’t seem to be fatal, in that the images do show in the gallery.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Just as a suggestion, would it be possible for the master builds to include the commit ID in the --version output?

Starting from 8cb284f the version information with commit ID is printed. E.g.

$ ./gallery.js --version
master-8cb284f4
$ ./gallery.js --full-version
Build version: master-8cb284f4 (commit 8cb284f4977d582649fee5ee6a24880947f2fa73) created by me at 2024-09-14T03:01:15+02:00

@bkralik Thank you for this wonderful suggestion.