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
Resulting JPG file is locked after Save As, Linux build 5.10-194 #7061
Comments
Unlike #7045, the file is closed after it is done using it. |
I have new information on this. I did a new debug build with the latest dev version 5.10-208 and ran it on valgrind. It seems like the issue of the locked file is related to the thumbnails. I did some more testing to make sure to narrow down the problem. Here are the added notes:
I think this is the relevant part from the Valgrind result: Details
==5290== at 0x7280705: open (in /usr/lib/libc.so.6) |
I tested and turning the file descriptor at RawTherapee/rtengine/imageio.cc Line 483 in e316e87
|
That code is in the JPEG file reading function. Did you save the JPEG in the directory that is open in the RawTherapee file browser? |
Yes. Right next to the source file. I now tested creating a subdirectory for the open directory and when saved there, there was no locking issue. The option to show images recursively in subdirectories was not enabled. After enabling the recursive option, the locking happened in the subdirectory as well. |
Ok, it makes sense now why the freeze is happening. |
Short description
When I "export", meaning when I select "Save As" from the bottom buttons, the resulting .jpg file is locked in a same way as in the issue #7045. I didn't think much about this small problem before, but now I wonder if there is an accidental file descriptor leakage in this case as well. In other words, from my memory, this might not be a very new issue.
Steps to reproduce
Prerequisite:
The working directory must be an SMB share or something with similar properties. The problem does not trigger from local drive.
Procedure:
Expected behavior
File should be workable, after RawTherapee is finished with the file.
Additional information
Details
Version: 5.10-194-g95f85d50f
Branch: dev
Commit: 95f85d5
Commit date: 2024-04-24
Compiler: cc 13.2.1
Processor: x86_64
System: Linux
Bit depth: 64 bits
Gtkmm: V3.24.8
Lensfun: V0.3.4.0
Build type: Release
Build flags: -std=c++11 -ffp-contract=off -Werror=unused-label -Werror=delete-incomplete -fno-math-errno -Wno-attributes -Wall -Wuninitialized -Wcast-qual -Wno-deprecated-declarations -Wno-unused-result -Wunused-macros -fopenmp -Werror=unknown-pragmas -O3 -DNDEBUG -ftree-vectorize
Link flags:
OpenMP support: ON
MMAP support: ON
Build OS: Linux 5.15.154-1-MANJARO x86_64
Build date: Thu, 25 Apr 2024 12:30:25 +0000 UTC
Build epoch: 1714048225
Build UUID: a2f87bcb-cf54-4487-b9df-d50657285d60
The text was updated successfully, but these errors were encountered: