Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lsolesen\pel\PelDataWindowWindowException] when scan photos. #97

Closed
matiasdelellis opened this issue Aug 30, 2019 · 1 comment
Closed

Comments

@matiasdelellis
Copy link

Hi, Install the application from the store ..

Test it in the frontend, and it works very well ... Congratulations !!! 😄
Well, I find it interesting to show the photos, so I try to scan them.

[matias@nube nextcloud]$ sudo -u apache php occ maps:scan-photos matias -vvv
[sudo] password for matias: 
======== User matias ========
[1] Photo "/matias/files/Documentos/Libros/Los Microcontroladores AVR de ATMEL/01_Portada.jpg" added
[2] Photo "/matias/files/Documentos/Personal/Gol Trend/IMG_20180525_124952.jpg" added
[3] Photo "/matias/files/Documentos/Photos/IMG-20151008-WA0006.jpg" added
[4] Photo "/matias/files/Documentos/Photos/IMG-20160918-WA0020.jpg" added
[5] Photo "/matias/files/Documentos/Photos/IMG-20170921-WA0002.jpeg" added
[6] Photo "/matias/files/Documentos/Photos/IMG-20170922-WA0025.jpg" added
[7] Photo "/matias/files/Documentos/Photos/IMG-20170922-WA0027.jpg" added

------------ LOT OF IMAGES BEFORE --------------

[2819] Photo "/matias/files/Imágenes/Wallpapers/Heisenbug/under-a-bridge.jpg" added
[2820] Photo "/matias/files/Imágenes/Wallpapers/Heisenbug/wooden-door.jpg" added
[2821] Photo "/matias/files/Imágenes/Wallpapers/Hummingbird.jpg" added

In PelDataWindow.php line 189:
                                                   
  [lsolesen\pel\PelDataWindowWindowException]      
  Window [0, 75112] does not fit in window [0, 0]  
                                                   

Exception trace:
 () at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelDataWindow.php:189
 lsolesen\pel\PelDataWindow->setWindowSize() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelDataWindow.php:221
 lsolesen\pel\PelDataWindow->getClone() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelIfd.php:246
 lsolesen\pel\PelIfd->load() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelIfd.php:221
 lsolesen\pel\PelIfd->load() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelTiff.php:159
 lsolesen\pel\PelTiff->load() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelExif.php:108
 lsolesen\pel\PelExif->load() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelJpeg.php:216
 lsolesen\pel\PelJpeg->load() at /var/www/html/nextcloud/apps/maps/vendor/lsolesen/pel/src/PelJpeg.php:126
 lsolesen\pel\PelJpeg->__construct() at /var/www/html/nextcloud/apps/maps/lib/Service/PhotofilesService.php:439
 OCA\Maps\Service\PhotofilesService->getExifPelBackup() at /var/www/html/nextcloud/apps/maps/lib/Service/PhotofilesService.php:385
 OCA\Maps\Service\PhotofilesService->getExif() at /var/www/html/nextcloud/apps/maps/lib/Service/PhotofilesService.php:269
 OCA\Maps\Service\PhotofilesService->addPhoto() at /var/www/html/nextcloud/apps/maps/lib/Service/PhotofilesService.php:64
 OCA\Maps\Service\PhotofilesService->rescan() at /var/www/html/nextcloud/apps/maps/lib/Command/RescanPhotos.php:77
 OCA\Maps\Command\RescanPhotos->rescanUserPhotos() at /var/www/html/nextcloud/apps/maps/lib/Command/RescanPhotos.php:68
 OCA\Maps\Command\RescanPhotos->execute() at /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:901
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:262
 Symfony\Component\Console\Application->doRun() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:145
 Symfony\Component\Console\Application->run() at /var/www/html/nextcloud/lib/private/Console/Application.php:213
 OC\Console\Application->run() at /var/www/html/nextcloud/console.php:97
 require_once() at /var/www/html/nextcloud/occ:11

maps:scan-photos [<user_id>]

Investigating a bit, I came to this bug, and suggest using try chach...

p.s.: The file that fails is not Hummingbird.jpg since I delete it and keep returning the same error ..

@matiasdelellis matiasdelellis changed the title [lsolesen\pel\PelDataWindowWindowException] [lsolesen\pel\PelDataWindowWindowException] when scan photos. Aug 30, 2019
@julien-nc
Copy link
Member

Hey, thanks for the feedback. It has already been solved in #91 and will be included in v0.1.2 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants