Comments (5)
I saw this error on every job execution because the job failed at the same point every time, right?
Good point. Here is a fix nextcloud/server#42198
from photos.
Thanks for the report @MichaIng
- It indeed looks like an invalid timestamp. I think we should wrap the line in a try/catch to handle timestamps incompatible with 32 bits. Would you have time to create a PR for that?
- The metadata generation is expected to be done only once, as you said. We do have a background job to generate the metadata for existing files. It is expected to stop once all files have been handled. Maybe it is badly configured: https://github.com/nextcloud/server/blob/a0ff998/core/BackgroundJobs/GenerateMetadataJob.php
from photos.
Reading the code again, I doubt that we can truly support 32 bit. Currently, the code expects an int, so any incompatible value will cause an issue. How do we handle incompatible mtime in our files code? @come-nc maybe?
from photos.
Reading the code again, I doubt that we can truly support 32 bit. Currently, the code expects an int, so any incompatible value will cause an issue. How do we handle incompatible mtime in our files code? @come-nc maybe?
You have to catch the error and log in this case, you cannot do much more if the timestamp does not fit in an int. But for original date this should not happen until 2038.
I am not sure we handle that correctly in all places, but incorrect mtimes are rare, usually mtime is set by Nextcloud itself.
For calendar, we officially do not support events past 2038 on 32bits.
from photos.
It indeed looks like an invalid timestamp
It is 0000:00:00 00:00:00
on all affected files, or all tools fail to interpret it, including exiftool
and show 0000:00:00 00:00:00
instead. If 2038
is too far after 1970
, then year 0
indeed is a little too far before 😄.
The metadata generation is expected to be done only once, as you said.
I saw this error on every job execution because the job failed at the same point every time, right?
from photos.
Related Issues (20)
- [BITV]: Clean up headings
- getimagesizefromstring(): PNG file corrupted by ASCII conversion at /var/www/html/apps/photos/lib/Listener/SizeMetadataProvider.php#56
- New albums picker in albums broken HOT 3
- [PHP] Error: getimagesizefromstring(): Error reading from ! at /var/www/html/nextcloud/apps/photos/lib/Listener/SizeMetadataProvider.php#56 from ? HOT 3
- GenericFileException Error while generating metadata HOT 8
- [BITV] Incorrect heading hierarchy
- [BITV]: Not possible to close left sidebar on small screens
- [Bug]: Not possible to add any media to the album HOT 2
- [BITV]: double scrollbar appears in a file picker dialog
- [BITV]: Wrong attributes `aria-label` on `<span>` HOT 1
- PDF Thumbnails shown as independent pictures in "Photos" view
- [BITV] Modal close button overlaps content HOT 2
- GenerateMetadataJob: Invalid coordinate format: ["0\/0"]
- Back button not visible when sidebar open HOT 1
- Add Support to additional folders by changing reworking "Choose another folder" to "Add folder" HOT 3
- Common address/URL for shared albums
- i18n: Need context and improving source string HOT 4
- NC 28 - Photos on external drives are no longer found and shown in the photo overview HOT 4
- Photos uploaded becomes binary
- Folders in Group folders don't appear un folder view HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photos.