File operations (delete / import) should be a single thread
Is there an existing issue for this?
- [x] I checked and did not find my issue in the already reported ones
Describe the bug
Importing multiple directories and deleting files from Darktable seems to be happening in parallel. The chance of darktable crashing is about 50%.
Steps to reproduce
Import a large directory Import another one while the first is still importing Notice that both are importing Delete another directory or film roll
Alternat this a bit and DT crashes or stops responding
Expected behavior
import and delete as a kind of command queue which it processes one by one.
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.1
What OS are you using?
Linux
What is the version of your OS?
Linux Mint latest version
Describe your system
import and delete as a kind of command queue which it processes one by one. Since import and delete are limited by disk-speed, doing these operations in parallel does not give huge speed benefits. Darktable crashes so often when doing this that the theoretical improvement is not worth it. In fact I just don't import multiple directories but I import them one by one, waiting for each to complete - negating any speed improvement the parallel processing might yield.
Are you using OpenCL GPU in darktable?
None
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
Could you provide a log '-d pipe -d control' ? I haven't seen this problem for a long time (since cleanung up the control and progress subsystems) and the propper fix would be to avoid locks or crashes.