-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
XMP files updated despite no change #18138
Comments
Here are some files showing the updating.
boatXmp3.txt |
Are you sure those files are different? They show no differences at all for me. Can you provide the diff? |
If they are the same, it looks like DT is re-writing the same XMP each time, hence the timestamp advancing each time, which is the issue I reported. I don't think it should be re-writing the same file, and it wasn't doing this in 4.8. |
If you're really going from an XMP touched in 4.8 to 5.0, then you should have new schema in the XMP file. The files should not be exactly the same, at least the date modified should be different. Are you sure you're not looking at access time in your file manager? |
See the screen jpeg above, it says it's the modified time. |
I tested on 5.1. The first time I open in darkroom the XMP updates. Stop/start darktable, reopen same image in darkroom, stop darktable, no update. |
It sounds like it's been quickly fixed, which is great. I'll try an appimage at some point if there are weeklies or whatever. Are you a dev? - is there a "pull request" or anything covering the fix? |
Mmmm @wpferguson I've just re-read your post, I think you are saying you closed DT whilst in the darktable/darkroom. I think it's when you go back to lighttable that the XMP is updated/re-written. Maybe you could double-check pls? |
Yes, when I return to lighttable, the XMP is updated. I saved an earlier copy of it and diff'ed with no differences. |
Ok so this is NOT fixed. There may be no differences in the two XMPs but that's not the point. You get a file with a later timestamp just because you view something you worked on last week, so a) it's misleading b) DT is doing unnecessary file operations c) you no longer have the confidence that the XMP and the JPEG are consistent. |
* Andrew ***@***.***> [01-03-25 15:49]:
Ok so this is NOT fixed. There may be no differences in the two XMPs
but that's not the point. You get a file with a later timestamp just
because you view something you worked on last week, so a) it's
misleading b) DT is doing unnecessary file operations c) you no longer
have the confidence that the XMP and the JPEG are consistent.
I can confirm on master, 5.1.0+36~ge932ddb438
openSUSE Tumbleweed 20250102
…--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
facebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
|
I haven't looked at the code but this is probably hard to fix. I suppose that when leaving the darkroom we write the XMP for whatever change has been made in any module. Capturing a change in any module is probably not trivial to avoid this write. |
@TurboGit , ok but to the best of my knowledge this is new behaviour. I tested this on the 4.8 appimage and the XMPs don't get updated/re-written when you go in and out of the darkroom without doing anything. I think it's been like this for years! |
@TurboGit I think this is mine. When I made the change to write darktable tags to the XMP I "made it work" without fully understanding the impact. Let me look at it and see if I can find a fix that satisfies my requirements and fixes this problem. |
Sometimes... Other times I'm an accident that found a place to happen. |
Haha well that's not ideal for a software developer, but at least you're not a brain surgeon! (Or are you?!) |
I think every dev has done something that "seemed like a good idea at the time" and it came back to bite them. The really good devs have lots of teeth marks but not (m)any recent ones. |
Exactly! |
Thank you |
Describe the bug
If whilst working in DT on a raw file I go into the darktable then back to lighttable without making any changes, in fact not doing anything except pressing "L", then the XMP is updated, as shown by its date/time in Ubuntu's file manager. Repeatedly moving between lighttable and darktable for the same raw causes repeated updates. Also, whilst in the darktable, the XMP is updated every time I click "compress history stack".
All this happens on various raws I've tried. DT 5.0.0 appimage
It does not happen with the 4.8 appimage.
Sample XMP renamed to .txt is attached.
Discussion available here - https://discuss.pixls.us/t/xmp-files-updated-despite-no-change/47370/11
Steps to reproduce
as above
Expected behavior
I would expect the XMP not to be updated
Logfile | Screenshot | Screencast
_6D_13536.CR2.txt
Commit
No response
Where did you obtain darktable from?
downloaded from www.darktable.org
darktable version
Darktable-5.0.0-x86_64.AppImage
What OS are you using?
Linux
What is the version of your OS?
ubuntu 22.04
Describe your system?
core i7, 32Gb ram, no GPU card
Are you using OpenCL GPU in darktable?
No
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
The text was updated successfully, but these errors were encountered: