darktable-org / darktable-org/lua-scripts

Tempfiles exported for use by a lua script (e.g. `hugin`) disappear immediately after export

Open
#634 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
219
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

  1. enable contrib/hugin script, and ensure paths are configured correctly and hugin is installed
  2. select images you want to stitch into a panorama
  3. in export dialog, select "hugin panorama" as "target storage"
  4. select file format (e.g. TIFF)
  5. (optionally, makes no difference) tick "launch hugin gui"
  6. run inotifywait -m /tmp -e create --format '%w%f' | while read f; echo "$f"; end (or similar) in terminal
  7. press "start export"
  8. wait for export to finish, see toast message "launching hugin"
  9. nothing happens
  10. check inotify and see that all images were created at one point (i.e. one log line per image in the form of /tmp/DSCF0721.tif)
  11. check dartable log and see:
    sh: line 1: '/path/to/hugin' '/tmp/DSCF0720.tif' '/tmp/DSCF0713.tif' '/tmp/DSCF0721.tif' '/tmp/DSCF0715.tif' '/tmp/DSCF0718.tif' '/tmp/DSCF0717.tif' '/tmp/DSCF0716.tif' '/tmp/DSCF0714.tif' '/tmp/DSCF0719.tif' : No such file or directory
    
  12. note: /path/to/hugin DOES exist and is the hugin executable
  13. ls /tmp shows images are gone

I assume they somehow get cleaned from /tmp after the darktable export process (?) exits and the files are essentially orphaned.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the contrib/hugin script and reproduce the export while watching /tmp and the darktable log. Trace when the exported images are cleaned up relative to the hugin launch; done means the generated images remain available when hugin is invoked and the reported export workflow opens successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.