facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

Exception in OC_Image::getOrientation()

Open davidsf opened this issue 1 year ago • 0 comments

Hey, Thanks for reporting issues back to Nextcloud Face Recognition. Please, try to complete this report in detail so we can help you easier. :smile:

Make sure you read all the documentation, and the FAQ, and that the issue has not been reported before. :wink:

Expected behaviour

Process all the image correctly

Actual behaviour

The process starts ok, processing some images, but it throws an exception when processiong a image.

Steps to reproduce

  1. Run face:background_job

Server configuration

  • Operating system:

Ubuntu 20.04

  • Pdlib version:

Compiled from github

  • How is DLib installed: Make sure it is working correctly with this tool

Compiled.

  • How is PDlib installed: Make sure it is working correctly with this tool

Compiled. Test Ok

  • PHP version:

8.2

  • Web server:

Apache

  • Database:

MariaDB

  • Nextcloud version:

27

Client configuration

  • Browser:

  • Operating system:

Logs

Background task log with debug.

sudo -u apache php occ -vvv face:background_job

An unhandled exception has been thrown:
TypeError: OC_Image::getOrientation(): Return value must be of type int, array returned in /home/www/nextcloud/lib/private/legacy/OC_Image.php:459
Stack trace:
#0 /home/www/nextcloud/lib/private/legacy/OC_Image.php(493): OC_Image->getOrientation()
#1 /home/www/nextcloud/apps/facerecognition/lib/Helper/TempImage.php(144): OC_Image->fixOrientation()
#2 /home/www/nextcloud/apps/facerecognition/lib/Helper/TempImage.php(75): OCA\FaceRecognition\Helper\TempImage->prepareImage()
#3 /home/www/nextcloud/apps/facerecognition/lib/BackgroundJob/Tasks/ImageProcessingTask.php(200): OCA\FaceRecognition\Helper\TempImage->__construct()
#4 /home/www/nextcloud/apps/facerecognition/lib/BackgroundJob/Tasks/ImageProcessingTask.php(123): OCA\FaceRecognition\BackgroundJob\Tasks\ImageProcessingTask->getTempImage()
#5 /home/www/nextcloud/apps/facerecognition/lib/BackgroundJob/BackgroundService.php(137): OCA\FaceRecognition\BackgroundJob\Tasks\ImageProcessingTask->execute()
#6 /home/www/nextcloud/apps/facerecognition/lib/Command/BackgroundCommand.php(171): OCA\FaceRecognition\BackgroundJob\BackgroundService->execute()
#7 /home/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\FaceRecognition\Command\BackgroundCommand->execute()
#8 /home/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#9 /home/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#10 /home/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#11 /home/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#12 /home/www/nextcloud/console.php(100): OC\Console\Application->run()
#13 /home/www/nextcloud/occ(11): require_once('...')


Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

davidsf avatar Sep 26 '23 08:09 davidsf