darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.91k stars 1.15k forks source link

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

Open LucasGGamerM opened 5 months ago

LucasGGamerM commented 5 months ago

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

paperdigits commented 5 months ago

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

LucasGGamerM commented 5 months ago

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?

paperdigits commented 5 months ago

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

LucasGGamerM commented 5 months ago

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

paperdigits commented 5 months ago

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: @.***>

LucasGGamerM commented 5 months ago

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

paperdigits commented 5 months ago

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: @.***>

LucasGGamerM commented 5 months ago

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.

paperdigits commented 5 months ago

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: @.***>

LucasGGamerM commented 5 months ago

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.

github-actions[bot] commented 3 months ago

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.

robyquin commented 2 months ago

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 commented 2 months ago

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

paperdigits commented 2 months ago

@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

robyquin commented 2 months ago

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.)

github-actions[bot] commented 3 weeks ago

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.