OCP\Files\NotFoundException: Max preview size 0, invalid!
File "/var/www/nextcloud/lib/private/Preview/Generator.php", line 124, in OC\Preview\Generator::generatePreviews
throw new NotFoundException('Max preview size 0, invalid!');
File "/var/www/nextcloud/lib/private/Preview/Generator.php", line 87, in OC\Preview\Generator::getPreview
return $this->generatePreviews($file, [$specification], $mimeType);
File "/var/www/nextcloud/lib/private/PreviewManager.php", line 167, in OC\PreviewManager::getPreview
$preview = $this->getGenerator()->getPreview($file, $width, $height, $crop, $mode, $mimeType);
File "/text/lib/Service/AttachmentService.php", line 90, in OCA\Text\Service\AttachmentService::getImageFileContent
return $this->previewManager->getPreview($imageFile, 1024, 1024);
File "/text/lib/Service/AttachmentService.php", line 55, in OCA\Text\Service\AttachmentService::getImageFile
return $this->getImageFileContent($imageFileName, $textFile, $preferRawImage);
Describe the bug
Found this in the logs of our instance:
Expected behavior
No errors in the logs
Server details:
our server, latest 31