matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
510 stars 46 forks source link

Exception in OC_Image::getOrientation() #697

Open davidsf opened 1 year ago

davidsf commented 1 year ago

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

Ubuntu 20.04

Compiled from github

Compiled.

Compiled. Test Ok

8.2

Apache

MariaDB

27

Client configuration

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) ... ```