darktable-org / darktable-org/darktable
Importing from camera blocks the UI and makes application unresponsive
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.1k
- Forks
- 1.4k
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 198
Description
Is there an existing issue for this?
- I checked and did not find my issue in the already reported ones
Describe the bug
In GNOME, whenever an app blocks on I/O for some time, it's shown as unresponsive. That easily happens in darkable when importing images from a camera, specially if there are many new files and/or the camera access is not very fast.
Every time I want to import files from my camera, the unresponsive application dialog is shown.
Steps to reproduce
- Click on "Copy and import from camera"
- Import dialog is shown
Expected behavior
App keeps being responsive, i/O must happen in another thread
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
distro packaging
darktable version
5.4.1
What OS are you using?
Linux
What is the version of your OS?
Debian testing
Describe your system
Laptop running GNOME on Wayland with 32GB of RAM
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
NVIDIA Quadro M1200
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the camera import flow invoked by "Copy and import from camera" and reproduce the issue with many files or slow camera access on GNOME. The work is done when importing keeps the application responsive and no unresponsive-application dialog appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100