plennon Posted May 22, 2023 Posted May 22, 2023 (edited) PSL_1576.DNGPSL_1575.DNG 2023-05-22_16-41-33.mp4 Hi, The other day I installed 2.1.0 and began processing my images. The editing process was fine, Develop and Photo personas worked as expected. However, when I went to export my images as JPEGs I repeatedly saw error messages stating my "Metadata could not be embedded". Sometimes an export or two would proceed without issue and then the following images would take repeated exports. I have attached a video of two DNG images that I tried to process. In the video you will see that the export process did not go well. I use the metadata to help me learn why a photo looks the way it does. Not including metadata is unacceptable. Please reach out to me with any questions. I am happy to provide more videos and/or sample images. I am willing to test potential solutions. Paul Let me describe my workflow I shoot images with a Pentax K-5 and save the images as DNGs. I use Affinity Photo to beautify the images and persist them as JPEGs Open FileExplorer to the directory on my SD card where the source DNG images are Launch Photo Select an image on the SD and drag it into Photo Adjust the RAW image as necessary In order to minimize variables I chose not to edit the images in the video Click the Develop button Final tweaks in the Photo persona Again, for this video I chose not to tweak the image When satisfied, I click File/Export I then wait for the Export dialog to display the image preview Once the 'export' is ready, I click the Export button I select where I want the image to be preserved to Possibly adjust the filename Click the Save button Often, but not always a dialog will appear showing the export progress. As the progress bar reaches the end an error dialog often appears stating that my metadata was not embedded It's more than the metadata was not embedded, the JPEG was not created at all (nor should if been without the metadata) I then retry the export operation with the expectation that the next will surely succeed; it often does not I will retry several times After three or four tries I will walk away and try again 10, 20 an hour later Sometimes waiting a long time works In desperation I have saved the image as an afphoto, closed the image and then loaded the AFPHOTO and tried to export it This works sometimes, more often than not, but not always My 2cents I suspect there is a threading issue. Photo uses many threads (150+). It is possible that a thread did not release its locks in the correct sequence Machine OS Name Microsoft Windows 10 Pro Version 10.0.19044 Build 19044 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Manufacturer LENOVO System Model 43539S7 System Type x64-based PC System SKU LENOVO_BI_A3 Processor Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3501 Mhz, 6 Core(s), 12 Logical Processor(s) Processor Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz, 3501 Mhz, 6 Core(s), 12 Logical Processor(s) BIOS Version/Date LENOVO A3KT45AUS, 5/21/2014 SMBIOS Version 2.7 Embedded Controller Version 255.255 BIOS Mode UEFI BaseBoard Manufacturer LENOVO BaseBoard Product LENOVO BaseBoard Version 0B98401 WIN Platform Role Workstation Secure Boot State Off PCR7 Configuration Elevation Required to View Windows Directory C:\windows System Directory C:\windows\system32 Locale United States Hardware Abstraction Layer Version = "10.0.19041.2728" Time Zone Eastern Daylight Time Installed Physical Memory (RAM) 16.0 GB Total Physical Memory 15.9 GB Available Physical Memory 5.88 GB Total Virtual Memory 43.9 GB Available Virtual Memory 22.7 GB Page File Space 28.0 GB Page File C:\pagefile.sys Kernel DMA Protection Off Virtualization-based security Running Virtualization-based security Required Security Properties Virtualization-based security Available Security Properties Base Virtualization Support Virtualization-based security Services Configured Virtualization-based security Services Running Device Encryption Support Elevation Required to View A hypervisor has been detected. Features required for Hyper-V will not be displayed. Edited May 22, 2023 by plennon Quote
Staff stokerg Posted May 24, 2023 Staff Posted May 24, 2023 Hi @plennon, I've tried exporting your files and they are exporting fine for myself. This is from an SD card and also with the files on my Desktop. Just to rule out the SD card being part of the issue, can you try copying the images to your desktop and loading them from there and see if you are able to get the error again. I'll keep trying the export but so far, over 20 exports of each file and i've not seen the error once. Quote
walt.farrell Posted May 24, 2023 Posted May 24, 2023 There have been a number of reports of this over the years, mostly unresolved except that they stopped occurring for the users. There was one I've found that determined the issue was with saving to Dropbox, and my guess is that the saving happens in two phases, with a Close and Reopen, and Dropbox was interfering with the Reopen. (That's just a guess.) Anyway, I've linked that one below, where a Serif Developer said they'd also seen it with Google Drive, and thought they had a fix: Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.2.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1
plennon Posted May 28, 2023 Author Posted May 28, 2023 Hi @stokerg, Thank you for looking into this. Yes, the example I posted used an SD as the source. Prior to that I used to empty the SD to my C drive and then process them. This scenario also experienced the metadata issue. I will give your scenario a try this week. When I do this, is there a way to activate logging? I too am a developer and I think this is a threading/locking issue. I think we can define this if we can capture what the code is doing. Paul Quote
plennon Posted June 2, 2023 Author Posted June 2, 2023 Hi @stokerg Tonight I again experienced the metadata embedding failure. This time I used Photo to open DNG files from my C drive and export them to my NAS. While I was using Photo I also had SysInternals Process Monitor running and it captured the file I/O during the export operations. I will say the Photo exports better when ProcessMonitor is running. I think the monitor slows file I/O enough that the timing is better (this is not a suitable solution). Attached are two captures ProcMon--APhoto-Stuck in export loop before button is active.Logfile.PML This captured I/O that was going on while the export dialog was preparing. The image was not yet displayed and the wait icon was spinning Near the end of the log I can see that Photo tried to open a temporary file 12 times, failed each and then gave up. The wait icon continued to spin with zero file activity ProcMon--APhoto-Export failed - possibly due to a sharing violation.Logfile.PML This captured the file I/O when a file that was not exported. Near the end of the file I found a sharing violation. I believe this occurred at the same time I saw the export failed dialog I hope these logs can shed some light onto the metadata embedding issue. Please tell me how to turn on debug logging and I think you will find that information more useful ProcMon--APhoto-Export failed - possibly due to a sharing violation.Logfile.PML ProcMon--APhoto-Stuck in export loop before button is active.Logfile.PML Quote
plennon Posted June 7, 2023 Author Posted June 7, 2023 An observation: It seems that when in the export dialog, if I pause for a count of ten before clicking Export, the process is less likely to fail This is not a solution, but it helps me and could be a clue for you Quote
plennon Posted July 11, 2023 Author Posted July 11, 2023 Because of the export problem that I described here, this weekend when I attempted to perform a batch job that exported a collection of images to JPEG, most failed to export. Of the 114 images that I tried to export, only 37 were exported successfully. I as only able to complete the export jobs when I unchecked parallel processing. When checked, only four completed and the whole application froze. My machine has 24 cores, so 24 jobs were running at the same time. I really think you have a thread synchronization issue. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.