Previewgenerator app 1.0.2 | Error: Call to a member function file_get_contents()

Nextcloud 11.0.1 on Ubuntu 16.04

While executing occ preview:pre-generate, the app break with the following error all the time:

An unhandled exception has been thrown:
Error: Call to a member function file_get_contents() on null in /var/www/clients/client1/web1/web/lib/private/Files/Filesystem.php:719
Stack trace:
#0 /var/www/clients/client1/web1/web/lib/private/legacy/image.php(597): OC\Files\Filesystem::file_get_contents('/var/www/client...')
#1 /var/www/clients/client1/web1/web/lib/private/Preview/MP3.php(80): OC_Image->loadFromFile('/var/www/client...')
#2 /var/www/clients/client1/web1/web/lib/private/Preview/MP3.php(64): OC\Preview\MP3->getNoCoverThumbnail()
#3 /var/www/clients/client1/web1/web/lib/private/Preview/GeneratorHelper.php(54): OC\Preview\MP3->getThumbnail('/files/external_storage....', 2048, 2048, false, Object(OC\Files\View))
#4 /var/www/clients/client1/web1/web/lib/private/Preview/Generator.php(155): OC\Preview\GeneratorHelper->getThumbnail(Object(OC\Preview\MP3), Object(OC\Files\Node\File), 2048, 2048)
#5 /var/www/clients/client1/web1/web/lib/private/Preview/Generator.php(108): OC\Preview\Generator->getMaxPreview(Object(OC\Files\SimpleFS\SimpleFolder), Object(OC\Files\Node\File), 'audio/mpeg')
#6 /var/www/clients/client1/web1/web/lib/private/PreviewManager.php(182): OC\Preview\Generator->getPreview(Object(OC\Files\Node\File), 32, 32, true, 'fill', 'audio/mpeg')
#7 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(170): OC\PreviewManager->getPreview(Object(OC\Files\Node\File), 32, 32, true)
#8 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(197): OCA\PreviewGenerator\Command\PreGenerate->processFile(Object(OC\Files\Node\File))
#9 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(199): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
#10 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(199): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
#11 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(199): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
#12 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(199): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
#13 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(158): OCA\PreviewGenerator\Command\PreGenerate->processFolder(Object(OC\Files\Node\Folder))
#14 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(127): OCA\PreviewGenerator\Command\PreGenerate->processRow(Array)
#15 /var/www/clients/client1/web1/web/apps/previewgenerator/lib/Command/PreGenerate.php(96): OCA\PreviewGenerator\Command\PreGenerate->startProcessing()
#16 /var/www/clients/client1/web1/web/3rdparty/symfony/console/Command/Command.php(256): OCA\PreviewGenerator\Command\PreGenerate->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/clients/client1/web1/web/3rdparty/symfony/console/Application.php(818): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/clients/client1/web1/web/3rdparty/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(OCA\PreviewGenerator\Command\PreGenerate), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/clients/client1/web1/web/3rdparty/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/clients/client1/web1/web/lib/private/Console/Application.php(169): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/clients/client1/web1/web/console.php(90): OC\Console\Application->run()
#22 /var/www/clients/client1/web1/web/occ(11): require_once('/var/www/client...')
#23 {main}root@www:~#

What’s going wrong there?
Thank you!

Hmm is this maybe to well known problem with previews of some mp3/svg covers/images?

The preview generator is more verbose since 1.0.2 which might be the reason for the problems to show up there now. Nextcloud server itself suppresses related errors since last release (or one before).

Did you try to disable previews of mp3 files and see if the error persists?

No, because i am absolutely sure that all of my mp3 files have a cover image, either gif or jpg.

See on github: https://github.com/rullzer/previewgenerator/issues/17