I'm using darktable-cli
to export photos from my library. I started to get an error with the latest version(2.6.1). It's a segmentation fault with error
[init] the database lock file contains a pid that seems to be alive in your system: 16768
[init] database is locked, probably another process is already using it
I'm always getting this error if darktable is running. And if darktable is not running, most of the times. I have a script running 4 instances darktable-cli
in parallel. As I mentioned I didn't have this error with the previous versions.
I don't know how darktable works internally, but I feel like there shouldn't be a need for library for the cli. Is there a need for it?
As a workaroung I tried changing the library for the darktable calls. But --library
option is ignored. Darktable still worked with the default library. The command is:
darktable-cli raw-file xmp-file jpg-file --width 1920 --height 1080 --core --conf plugins/imageio/format/jpeg/quality=50 --conf plugins/imageio/storage/disk/overwrite=true --library /tmp/darktable.db
Is this command argument correct?