darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Selecting tether shooting with a Fuji X-H1 plugged (with camera in tether mode) crashes Darktable

Open LucasGGamerM opened this issue 1 year ago • 10 comments

Describe the bug

Trying to activate a tether connection makes the program crash.

Steps to reproduce

Plug camera into computer (with the camera being in tether mode), open Darktable, unmount the camera from the filesystem, click on the start tethering button, and see the crash.

Expected behavior

Darktable should start a tethering connection.

Logfile | Screenshot | Screencast

I couldn't find them on the flatpak, but I am willing to give it once I find the backtrace.

Commit

No response

Where did you obtain darktable from?

flatpak

darktable version

4.6.1

What OS are you using?

Linux

What is the version of your OS?

PopOS 22.04

Describe your system?

No response

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

Nvidia 3050, using latest available driver

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

LucasGGamerM avatar Jun 18 '24 16:06 LucasGGamerM

Have you made sure that the flatpak has the proper permissions to access the tethered camera?

paperdigits avatar Jun 21 '24 17:06 paperdigits

Have you made sure that the flatpak has the proper permissions to access the tethered camera?

I am not sure. How can I check that?

LucasGGamerM avatar Jun 21 '24 17:06 LucasGGamerM

Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak.

paperdigits avatar Jun 21 '24 23:06 paperdigits

Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak.

It has access to all devices, and copy and import works. But not tethered shooting

LucasGGamerM avatar Jun 21 '24 23:06 LucasGGamerM

Is the camera storage mounted by your desktop environment automatically when it is connected?

Also is your camera supported by libgphoto2?

On June 21, 2024 4:30:59 PM PDT, LucasGGamerM @.***> wrote:

Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak.

It has access to all devices, and copy and import works. But not tethered shooting

-- Reply to this email directly or view it on GitHub: https://github.com/darktable-org/darktable/issues/17018#issuecomment-2183579246 You are receiving this because you commented.

Message ID: @.***>

paperdigits avatar Jun 21 '24 23:06 paperdigits

Is the camera storage mounted by your desktop environment automatically when it is connected? Also is your camera supported by libgphoto2? On June 21, 2024 4:30:59 PM PDT, LucasGGamerM @.> wrote: > Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak. It has access to all devices, and copy and import works. But not tethered shooting -- Reply to this email directly or view it on GitHub: #17018 (comment) You are receiving this because you commented. Message ID: @.>

Yes, as per https://github.com/gphoto/libgphoto2/wiki/List-of-cameras it is.

And I always unmount the camera from the desktop, otherwise darktable won't detect it

LucasGGamerM avatar Jun 21 '24 23:06 LucasGGamerM

Alright, how about the first question?

On June 21, 2024 4:59:14 PM PDT, LucasGGamerM @.***> wrote:

Is the camera storage mounted by your desktop environment automatically when it is connected? Also is your camera supported by libgphoto2? On June 21, 2024 4:30:59 PM PDT, LucasGGamerM @.> wrote: > Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak. It has access to all devices, and copy and import works. But not tethered shooting -- Reply to this email directly or view it on GitHub: #17018 (comment) You are receiving this because you commented. Message ID: @.>

Yes, as per https://github.com/gphoto/libgphoto2/wiki/List-of-cameras it is.

-- Reply to this email directly or view it on GitHub: https://github.com/darktable-org/darktable/issues/17018#issuecomment-2183592116 You are receiving this because you commented.

Message ID: @.***>

paperdigits avatar Jun 22 '24 01:06 paperdigits

Alright, how about the first question? On June 21, 2024 4:59:14 PM PDT, LucasGGamerM @.> wrote: > Is the camera storage mounted by your desktop environment automatically when it is connected? Also is your camera supported by libgphoto2? > > On June 21, 2024 4:30:59 PM PDT, LucasGGamerM @.> wrote: > Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak. It has access to all devices, and copy and import works. But not tethered shooting -- Reply to this email directly or view it on GitHub: [#17018 (comment)](#17018 (comment)) You are receiving this because you commented. Message ID: @.> Yes, as per https://github.com/gphoto/libgphoto2/wiki/List-of-cameras it is. -- Reply to this email directly or view it on GitHub: #17018 (comment) You are receiving this because you commented. Message ID: @.>

Yes.

LucasGGamerM avatar Jun 22 '24 10:06 LucasGGamerM

Can you unmount it and forbid your desktop from mounting it?

Secondly, if you install gphoto2 and try using it from the command line, does it work?

On June 22, 2024 3:15:16 AM PDT, LucasGGamerM @.***> wrote:

Alright, how about the first question? On June 21, 2024 4:59:14 PM PDT, LucasGGamerM @.> wrote: > Is the camera storage mounted by your desktop environment automatically when it is connected? Also is your camera supported by libgphoto2? > > On June 21, 2024 4:30:59 PM PDT, LucasGGamerM @.> wrote: > Get the application "Flatseal" its an easy GUI to inspect the sandbox permissions of a flatpak. It has access to all devices, and copy and import works. But not tethered shooting -- Reply to this email directly or view it on GitHub: [#17018 (comment)](#17018 (comment)) You are receiving this because you commented. Message ID: @.> Yes, as per https://github.com/gphoto/libgphoto2/wiki/List-of-cameras it is. -- Reply to this email directly or view it on GitHub: #17018 (comment) You are receiving this because you commented. Message ID: @.>

Yes.

-- Reply to this email directly or view it on GitHub: https://github.com/darktable-org/darktable/issues/17018#issuecomment-2183970030 You are receiving this because you commented.

Message ID: @.***>

paperdigits avatar Jun 22 '24 13:06 paperdigits

I can unmount it, but I am not sure how to forbid it.

And yes, yesterday I was messing around with gphoto2 in the command line and the live view feature and taking a picture directly from the command line worked fine.

LucasGGamerM avatar Jun 22 '24 13:06 LucasGGamerM

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Aug 22 '24 00:08 github-actions[bot]

Same thing with Nikon D7500+DarkTable 4.8.1 (windows10)

I attach debug log (darktable -d camctl) log_20240906_1.txt

NOTE: if I use gphoto2 directly, I can capture images without problems

robyquin avatar Sep 06 '24 18:09 robyquin

I compiled last version from github, and this version also crashes! (Nikon D7500+darktable 4.9.0+421~gdb0990bfed - windows10)

log_20240906_4.9.0+421~gdb0990bfed.txt

robyquin avatar Sep 06 '24 19:09 robyquin

@robyquin you need to have your DE not mount it, this is from your log:

36,3377 [camera_control] remove Nikon DSC D7500 on port usb:001,011 from ununsed camera list as mounted

paperdigits avatar Sep 08 '24 20:09 paperdigits

This weekend I did some tests with different settings, Here are log files log:

log_20240906_4.9.0+421~gdb0990bfed_magik.txt log_20240906_4.9.0+421~gdb0990bfed_noCL.txt log_20240906_4.9.0+421~gdb0990bfed_OutofFocus.txt log_20240906_4.9.0+421~gdb0990bfed-dirty.txt log_20240906_4.9.0+421~gdb0990bfed.txt

in this log, I added new log messages to understand the flow of function calls: log_20240907_4.9.0+421~gdb0990bfed-dirty_robyquin-log.txt

An interesting thing, I hope to help you

I had to finish a photographic work, and as a workaround, I used "copy & import from camera" button: It works fine! (I have no log files of this last attempt.)

robyquin avatar Sep 09 '24 07:09 robyquin

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Nov 09 '24 00:11 github-actions[bot]

This issue was closed because it has been inactive for 300 days since being marked as stale. Please check if the newest release or nightly build has it fixed. Please, create a new issue if the issue is not fixed.

github-actions[bot] avatar Sep 05 '25 00:09 github-actions[bot]