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

Photos Exceed Buffer Limit #398

Closed
auntphil opened this issue Dec 4, 2021 · 4 comments
Closed

Photos Exceed Buffer Limit #398

auntphil opened this issue Dec 4, 2021 · 4 comments

Comments

@auntphil
Copy link

auntphil commented Dec 4, 2021

Describe the bug

Large photos fail to scan the XML and do not get indexed. Happens with on demand indexing and scheduled. Is there a way to expand the buffer?

Server logs (optional)

In case of a server side error, provide logs:

@#[line:3,col:5]
12/4/2021, 4:24:13 PM[DEBUG][MetadataLoader] Error parsing exif /app/data/images/2021/2021-08-28 13.28.40.jpg TypeError: Corrupt JPG, exceeded buffer limits
at validateBuffer (/app/node_modules/image-size/dist/types/jpg.js:77:15)
at Object.calculate (/app/node_modules/image-size/dist/types/jpg.js:101:13)
at lookup (/app/node_modules/image-size/dist/index.js:43:53)
at Function.imageSize (/app/node_modules/image-size/dist/index.js:118:16)
at /app/src/backend/model/threading/MetadataLoader.js:160:55
at FSReqCallback.wrapper [as oncomplete] (fs.js:562:5)
[xmldom warning] unclosed xml attribute

Environment (please complete the following information):

  • OS: Windows
  • Browser All

Used app version:

  • docker-nightly
  • ect..
@auntphil
Copy link
Author

auntphil commented Dec 5, 2021

Needed to increase the buffer size. Read the manual and increased the Server-photoMetadataSize value. Fixed the issue. RTFM

@auntphil auntphil closed this as completed Dec 5, 2021
@AxiomOfChoices
Copy link

Hello, what did you end up setting it to? I am having the same problem and can't seem to fix it.

@bpatrik
Copy link
Owner

bpatrik commented Feb 21, 2022

To the smallest value that does not break the gallery. (Higher the value the slower is the indexing, otherwise it does not hurt).

You can try doubling the number.

This issue should be gone once #277 is fixed.

@AxiomOfChoices
Copy link

That's good to know! Can't wait for that update. In the meanwhile should I set it to above the size of the my largest files? Because I tried doubling it and it didn't fix the problem unfortunately and testing it is very difficult since the indexing of the folder with the problematic file takes quite some time already.

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

No branches or pull requests

3 participants