Project

General

Profile

Bug #9399

Crash when live view is not supported

Added by David Stoner over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Medium
Assignee:
-
Category:
Tethering
Target version:
-
Start date:
04/28/2013
Due date:
% Done:

0%

Affected Version:
git development version
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

i can take pictures in tethered mode, but when i hit the eye button to start live mode, DT crashes.

% darktable

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffb51fe000
backtrace written to /tmp/darktable_bt_TKU2VW.txt
zsh: segmentation fault (core dumped)  darktable
david@mango ~ % env LANG=C gphoto2 --port usb: --abilities
Abilities for camera             : Nikon DSC D3100 (PTP mode)                  
Serial port support              : no
USB support                      : yes
Capture choices                  :
                                 : Image
Configuration support            : yes
Delete selected files on camera  : yes
Delete all files on camera       : no
File preview (thumbnail) support : yes
File upload support              : yes
david@mango ~ % env LANG=C gphoto2 --port usb: --capture-image-and-download
New file is in location /store_00010001/DCIM/101D3100/DSC_2198.NEF on the camera
Downloading 'DSC_2198.NEF' from folder '/store_00010001/DCIM/101D3100'...
Saving file as DSC_2198.NEF                                                    
Deleting file /store_00010001/DCIM/101D3100/DSC_2198.NEF on the camera
Deleting 'DSC_2198.NEF' from folder '/store_00010001/DCIM/101D3100'...
david@mango ~ % env LANG=C gphoto2 --port usb: --capture-tethered
Waiting for events from camera. Press Ctrl-C to abort.                         
Downloading 'DSC_2199.NEF' from folder '/store_00010001/DCIM/101D3100'...
Saving file as DSC_2199.NEF                                                    
Deleting 'DSC_2199.NEF' from folder '/store_00010001/DCIM/101D3100'...
UNKNOWN PTP Event 400c, Param1 00010001

^C
Cancelling...

i wonder if the "Unknown PTP Event" from gphoto2 is causing trouble. the picture get's taken fine tethered.
i could make a debug build if that helps.

distro: arch 64bit
DT version: 1.2

darktable_bt_TKU2VW.txt Magnifier (21.1 KB) David Stoner, 04/28/2013 04:46 PM

darktable_bt_BG5CWW.txt Magnifier (23.9 KB) David Stoner, 04/28/2013 05:35 PM

History

#1 Updated by David Stoner over 5 years ago

with debug symbols:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4bcdf01 in pthread_join () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff4bcdf01 in pthread_join () from /usr/lib/libpthread.so.0
#1  0x00007ffff7abfb6b in dt_camctl_camera_stop_live_view (c=0x65e690)
    at /home/david/src/apps/darktable-1.2/src/common/camera_control.c:469
#2  0x00007ffff746e3d2 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3  0x00007ffff747f40d in ?? () from /usr/lib/libgobject-2.0.so.0
#4  0x00007ffff7487219 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#5  0x00007ffff7487462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#6  0x00007ffff746e458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0x00007ffff747f40d in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0x00007ffff7487219 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#9  0x00007ffff7487462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff6d76f4d in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x00007ffff746e458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff747ec27 in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff7487219 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff7487462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff6c0b349 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007ffff6cb4229 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff746e458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff747f1cb in ?? () from /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff7486e52 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff7487462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff6dcc3ee in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007ffff6cb2594 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007ffff6cb28fb in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff720853c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#25 0x00007ffff76f4f06 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007ffff76f5258 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007ffff76f565a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#28 0x00007ffff6cb18f7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#29 0x00007ffff7a9b835 in dt_gui_gtk_run (gui=<optimized out>) at /home/david/src/apps/darktable-1.2/src/gui/gtk.c:992
#30 0x0000000000400a48 in main (argc=<optimized out>, argv=<optimized out>) at /home/david/src/apps/darktable-1.2/src/main.c:25

#2 Updated by Tobias Ellinghaus over 5 years ago

  • % Done changed from 0 to 20
  • Status changed from New to Incomplete

What does
gphoto2 --capture-preview
do?

#3 Updated by David Stoner over 5 years ago

  • Status changed from Incomplete to Closed: invalid
  • % Done changed from 20 to 0

i guess that answers it :/

% gphoto2 --capture-preview

*** Error ***              
Sorry, your Nikon camera does not support LiveView mode
*** Error (-6: 'Unsupported operation') ***

#4 Updated by Tobias Ellinghaus over 5 years ago

  • Affected Version changed from 1.2 to git development version
  • Subject changed from Enabling Live view crashes DT to Crash when live view is not supported
  • Status changed from Closed: invalid to New

That's a pity, but still darktable shouldn't crash. Maybe someone with a non-supported camera and some coding skills can help out.

Also available in: Atom PDF