GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: regenerate thumbnails fails intermittently #1245

Closed atomGit closed 8 months ago

atomGit commented 9 months ago

Operating system

manjaro

Publii version

0.42.1-1 (AUR)

Post editor

None

Bug description

regenerating thumbnails fails sporadically with a JS error - progress often stops at 20%

Steps to reproduce

i was often able to reproduce the problem by repeatedly switching themes and regenerating the thumbnails either at the prompt of from the tools section

Relevant log output

regenerate-errors.log:
`process:16568): GLib-CRITICAL **: 16:21:52.720: g_datalist_id_set_data_full: assertion 'key_id > 0' failed`
dziudek commented 8 months ago

Hi,

It is an issue with the sharp library and it sometimes occurs for invalid images or for images with some specific metadata cases. Unfortunately we cannot fix it as it is a part of a native module. The only solution in this case is to try resave image in some editor and try again.

drakegalley commented 5 months ago

This error occurs when I regenerate images for one of my sites. It's pretty serious and I haven't found a viable workaround.

It should be noted that it only seems to happen on Linux. In a virtual machine with Windows 10 there is no problem. This should be communicated to those responsible for the Sharp library in case they do not already know.

Regards.