Closed AFumi39 closed 1 month ago
I'm also getting this error. Here are some sample images which cause the error.
Seems to happen with all or nearly all images received using Whatsapp, maybe because Whatsapp strips all metadata including huffman tables and the new library doesn't use a default one in that case?
I dont think its all whatsapp images. I managed to upload some images without issue
I think this can be the reason. Even if some WA images are processed correctly
you have the option to send HD images or no in whatsapp, maybe that affects the metadata they use?
I just checked, but no, that's not the case 🤔 2 similar images sent by the same person, in the same day: 1 ok, the other one no preview
I see the same and the asset I looked at happened to be from Whatsapp.
[Nest] 7 - 10/15/2024, 4:25:08 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: ./lib/jpegli/decode_marker.cc:285: DHT marker: no Huffman table found
[Nest] 7 - 10/15/2024, 4:25:08 PM ERROR [Microservices:JobService] Error: VipsJpeg: ./lib/jpegli/decode_marker.cc:285: DHT marker: no Huffman table found
at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17)
at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68)
at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25)
at async /usr/src/app/dist/services/job.service.js:163:36
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
This is technically out of spec for JPEG and the jpegli decoder doesn't handle it (unlike other decoders). I've raised the issue upstream and will proceed based on their response.
Same issue here, all whatsapp images and some other ones are showing "error loading image" both in the thumbnail and in the actual preview, downloading the image or opening from the server volume work fine. Trying to reload the thumbnail gives the same log error.
Exactly the same for me!
Same for me
Could the error be fixed? Is the bug fix included in the next update?
Thanks.
Ok, I was already wondering why my rerun of all thumbnails kept throwing errors and a lot of faces lost their thumbnail in the people section.
I patched jpegli with a fix and tested with the sample images here. We'll make a hotfix for it.
Should be fixed as of 1.118.2
I cannot confirm this. Some photos can now be loaded, but not all of them.
You should run thumbnail generation in the Jobs page.
You should run thumbnail generation in the Jobs page.
Has already been carried out several times. Unfortunately without success!
Can you share the logs?
Can you share the logs?
Here is my log:
[Nest] 17 - 10/16/2024, 8:06:35 PM LOG [Api:EventRepository] Websocket Disconnect: ZEOICqCensSkOWO8AAAj [Nest] 17 - 10/16/2024, 8:09:39 PM LOG [Api:EventRepository] Websocket Connect: YfQyhfjuxdIjD131AAAl [Nest] 17 - 10/16/2024, 8:10:53 PM LOG [Api:EventRepository] Websocket Disconnect: YfQyhfjuxdIjD131AAAl [Nest] 17 - 10/16/2024, 8:10:56 PM LOG [Api:EventRepository] Websocket Connect: F3MSUJgizUQ_Nxh-AAAn [Nest] 17 - 10/16/2024, 8:12:09 PM LOG [Api:EventRepository] Websocket Disconnect: F3MSUJgizUQ_Nxh-AAAn [Nest] 17 - 10/16/2024, 8:16:06 PM LOG [Api:EventRepository] Websocket Connect: jzeQeltVe3ctPwD3AAAp [Nest] 17 - 10/16/2024, 8:24:59 PM LOG [Api:EventRepository] Websocket Disconnect: jzeQeltVe3ctPwD3AAAp [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Object: { "id": "d63c87fa-ca26-40a5-bb34-8aeb7cb41526" } [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Object: { "id": "ccbe3879-539c-4344-97e5-2daa3a9f351e" } [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Object: { "id": "b9cfd38d-8d54-44c3-86a9-4baeb79ec16e" } [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Object: { "id": "e747e00a-754f-404e-83f1-2fe97ec9f1a7" } [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 9:07:53 PM ERROR [Microservices:JobService] Object: { "id": "73b77901-87ce-4d3a-8d94-bca45c2fa284" } [Nest] 17 - 10/16/2024, 11:31:57 PM LOG [Api:EventRepository] Websocket Connect: i-jEEen4sbM9itOFAAAr [Nest] 17 - 10/16/2024, 11:32:15 PM LOG [Api:EventRepository] Websocket Disconnect: i-jEEen4sbM9itOFAAAr [Nest] 17 - 10/16/2024, 11:33:54 PM LOG [Api:EventRepository] Websocket Connect: G4MabHPMcEgEuH5qAAAt [Nest] 7 - 10/16/2024, 11:34:03 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string [Nest] 7 - 10/16/2024, 11:34:03 PM ERROR [Microservices:JobService] Error: VipsJpeg: Message codes are not supported, error message is in msg_parm.s string at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:57:68) at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:153:63) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:101:25) at async /usr/src/app/dist/services/job.service.js:163:36 at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28) at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24) [Nest] 7 - 10/16/2024, 11:34:03 PM ERROR [Microservices:JobService] Object: { "id": "d63c87fa-ca26-40a5-bb34-8aeb7cb41526" }
Here an example Image without thumbnail: example.zip
Thanks for the sample, I'll take a look. But this is different than the Whatsapp issue, so I think you should make a separate issue for this.
I can confirm that this bug is fixed for all my images @mertalev Thank you 🙇♂️
+1, fixed in v1.118.2 and rerun of the thumbnail job. Tnx!
fixed in v1.118.2 and rerun of the thumbnail job. 👍🙏
The bug
Uploading jpeg images, immich v1.118.0 can't generate the preview images (thumbnails, etc), but the downloaded image is working. See the attachment
The OS that Immich Server is running on
Docker
Version of Immich Server
V1.118.0
Version of Immich Mobile App
1.117.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
1. 2. 3. ...
Relevant log output
Additional information
No response