darktable-org / darktable-org/lua-scripts

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

オープン
#634 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Lua
スター
219
フォーク
142
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

contrib/hugin スクリプトから始め、/tmp と darktable のログを監視しながらエクスポートを再現します。hugin の起動との相対的なタイミングで、エクスポートされた画像がいつ削除されるかを追跡します。完了の条件は、hugin を呼び出した時点で生成された画像が利用可能なままであり、報告されたエクスポートワークフローが正常に開くことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。