Project

General

Profile

Bug #9236

Crash on startup when camera disconnected

Added by Kevin Gilbert over 6 years ago.

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

0%

Estimated time:
Affected Version:
git development version
System:
Fedora/RHEL
bitness:
64-bit
hardware architecture:
amd64/x86

Description

DT hangs on startup when my Android phone is connected. I think it does eventually timeout but I have gotten into the habit of just disconnecting the phone. Lately this has started to produced a (repeatable) crash. The backtrace is as follows - slightly edited for security.

this is darktable 1.1+1004~gae6b3b0 reporting a segfault:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00000031b76e56c0 in _read_nocancel () from /lib64/libc.so.6
#0 0x00000031b76e56c0 in __read_nocancel () from /lib64/libc.so.6
#1 0x00000031b7677e78 in __GI
_IO_file_underflow () from /lib64/libc.so.6
#2 0x00000031b7678e1e in _GI_IO_default_uflow () from /lib64/libc.so.6
#3 0x00000031b766cab4 in _GI_IO_getline_info () from /lib64/libc.so.6
#4 0x00000031b766b94f in fgets () from /lib64/libc.so.6
#5 0x00007fc25cac581b in _dt_sigsegv_handler (param=11) at .../darktable/src/common/darktable.c:148
#6 <signal handler called>
#7 0x0000003fa4a44a43 in g_list_first () from /lib64/libglib-2.0.so.0
#8 0x00007fc25cb7c377 in _dispatch_camera_error (c=0x7fff75049258, camera=0x7fff75049360, error=CAMERA_CONNECTION_BROKEN) at .../darktable/src/common/camera_control.c:1518
#9 0x00007fc25cb7c436 in _error_func_dispatch (context=<optimized out>, format=<optimized out>, args=<optimized out>, data=0x7fff75049258) at .../darktable/src/common/camera_control.c:158
#10 0x0000003f4040f8f7 in gp_context_error () from /lib64/libgphoto2.so.6
#11 0x00007fc25be0b532 in report_result () from /usr/lib64/libgphoto2/2.5.0/ptp2.so
#12 0x00007fc25be11665 in camera_summary () from /usr/lib64/libgphoto2/2.5.0/ptp2.so
#13 0x0000003f4040eb01 in gp_camera_get_summary () from /lib64/libgphoto2.so.6
#14 0x00007fc25cb7ac94 in dt_camctl_detect_cameras (c=c@entry=0x8410f0) at .../darktable/src/common/camera_control.c:616
#15 0x00007fc25cb7ae2c in dt_camctl_new () at .../darktable/src/common/camera_control.c:487
#16 0x00007fc25cac7106 in dt_init (argc=5, argv=0x7fff7504ad88, init_gui=init_gui@entry=1) at .../darktable/src/common/darktable.c:648
#17 0x0000000000400a3e in main (argc=<optimized out>, argv=<optimized out>) at .../darktable/src/main.c:24

Thread 1 (Thread 0x7fc25ca26a80 (LWP 4995)):
#0 0x00000031b76e56c0 in _read_nocancel () from /lib64/libc.so.6
No symbol table info available.
#1 0x00000031b7677e78 in __GI
_IO_file_underflow () from /lib64/libc.so.6
No symbol table info available.
#2 0x00000031b7678e1e in _GI_IO_default_uflow () from /lib64/libc.so.6
No symbol table info available.
#3 0x00000031b766cab4 in _GI_IO_getline_info () from /lib64/libc.so.6
No symbol table info available.
#4 0x00000031b766b94f in fgets () from /lib64/libc.so.6
No symbol table info available.
#5 0x00007fc25cac581b in _dt_sigsegv_handler (param=11) at .../darktable/src/common/darktable.c:148
read_something = <optimized out>
fd = 0x8fc810
buf = "r\320\000\000\000\000\000\000\204\211\342[\302\177\000\000s\320\000\000\000\000\000\000\220\211\342[\302\177\000\000t\320\000\000\000\000\000\000\246\211\342[\302\177\000\000u\320\000\000\000\000\000\000\270\211\342[\302\177\000\000v\320\000\000\000\000\000\000\273\216\342[\302\177\000\000w\320\000\000\000\000\000\000̉\342[\302\177\000\000x\320\000\000\000\000\000\000ۉ\342[\302\177\000\000y\320\000\000\000\000\000\000\347\211\342[\302\177\000\000z\320\000\000\000\000\000\000\376\211\342[\302\177\000\000{\320\000\000\000\000\000\000\f\212\342[\302\177\000\000|\320\000\000\000\000\000\000#\212\342[\302\177\000\000\200\320\000\000\000\000\000\000=\212\342[\302\177\000\000\201\320\000\000\000\000\000\000Y\212\342[\302\177\000\000\202\320\000\000\000\000\000\000u\212\342[\302\177\000\000\203\320\000\000\000\000\000\000\203\212\342[\302\177\000\000\204\320\000\000\000\000\000\000\230\212\342[\302\177\000\000\205\320\000\000\000\000\000\000\254\212\342[\302\177\000\000\206\320\000\000\000\000\000\000Ċ\342[\302\177\000\000\207\320\000\000\000\000\000\000"...
name_used = <optimized out>
fout = 21
delete_file = 0
datadir = "/usr/local/share/darktable\000[\302\177\000\000%\320\000\000\000\000\000\000\345\205\342[\302\177\000\000&\320\000\000\000\000\000\000\002\206\342[\302\177\000\000'\320\000\000\000\000\000\000\037\206\342[\302\177\000\000(\320\000\000\000\000\000\000<\206\342[\302\177\000\000)\320\000\000\000\000\000\000Y\206\342[\302\177\000\000*\320\000\000\000\000\000\000v\206\342[\302\177\000\000+\320\000\000\000\000\000\000\201\206\342[\302\177\000\000,\320\000\000\000\000\000\000\223\206\342[\302\177\000\000-\320\000\000\000\000\000\000\237\206\342[\302\177\000\000.\320\000\000\000\000\000\000\256\206\342[\302\177\000\000/\320\000\000\000\000\000\000\020\304\342[\302\177\000\000\060\320\000\000\000\000\000\000+n\343[\302\177\000\000\061\320\000\000\000\000\000\000ʆ\342[\302\177\000\000\062\320\000\000\000\000\000\000\342\206\342[\302\177\000\000\063\320\000\000\000\000\000\000\356"...
command = 0x8fc7a0 "gdb /usr/local/bin/darktable 4995 -batch -x /usr/local/share/darktable/gdb_commands"
#6 <signal handler called>
No symbol table info available.
#7 0x0000003fa4a44a43 in g_list_first () from /lib64/libglib-2.0.so.0
No symbol table info available.
#8 0x00007fc25cb7c377 in _dispatch_camera_error (c=0x7fff75049258, camera=0x7fff75049360, error=CAMERA_CONNECTION_BROKEN) at .../darktable/src/common/camera_control.c:1518
camctl = 0x7fff75049258
listener = <optimized out>
#9 0x00007fc25cb7c436 in _error_func_dispatch (context=<optimized out>, format=<optimized out>, args=<optimized out>, data=0x7fff75049258) at .../darktable/src/common/camera_control.c:158
ci = <optimized out>
camctl = 0x7fff75049258
buffer = "PTP I/O error\000\000\000\000\000\000\000\004", '\000' <repeats 263 times>, "\002\000\000\000\016\000\000\000\350\004\000\000`h", '\000' <repeats 14 times>, "/usr/lib64/libgphoto2/2.5.0/ptp2", '\000' <repeats 992 times>, "PTP", '\000' <repeats 757 times>"\300, \221\004u\377\177\000\000\260\221\004u\377\177\000\000\067N\343[\302\177\000\000H\223\004u\377\177\000\000\065N\343[\302\177\000\000\063kd\267\061\000\000\000\r\325\342[\302\177\000\000\356\223d\267\061\000\000\000\r", '\000' <repeats 23 times>, "\r\000\000\000\000\000\000\000 \222\004u\377\177\000\000\020\222\004u\377\177\000\000\033\000\000\000\000\000\000\000\230\223\004u\377\177\000\000U\325\342[\302"...
#10 0x0000003f4040f8f7 in gp_context_error () from /lib64/libgphoto2.so.6
No symbol table info available.
#11 0x00007fc25be0b532 in report_result () from /usr/lib64/libgphoto2/2.5.0/ptp2.so
No symbol table info available.
#12 0x00007fc25be11665 in camera_summary () from /usr/lib64/libgphoto2/2.5.0/ptp2.so
No symbol table info available.
#13 0x0000003f4040eb01 in gp_camera_get_summary () from /lib64/libgphoto2.so.6
No symbol table info available.
#14 0x00007fc25cb7ac94 in dt_camctl_detect_cameras (c=c@entry=0x8410f0) at .../darktable/src/common/camera_control.c:616
camera = 0x8ce370
s = 0x8c6870 "usb:003,005"
citem = <optimized out>
i = 0
camctl = 0x8410f0
available_cameras = 0x803bb0
#15 0x00007fc25cb7ae2c in dt_camctl_new () at .../darktable/src/common/camera_control.c:487
camctl = 0x8410f0
#16 0x00007fc25cac7106 in dt_init (argc=5, argv=0x7fff7504ad88, init_gui=init_gui@entry=1) at .../darktable/src/common/darktable.c:648
dbfilename_from_command = <optimized out>
datadirFromCommand = <optimized out>
moduledirFromCommand = <optimized out>
tmpdirFromCommand = <optimized out>
configdirFromCommand = <optimized out>
cachedirFromCommand = <optimized out>
images_to_load = <optimized out>
datadir = "$HOME/.config/darktable", '\000' <repeats 53 times>, "/proc/4995/exe", '\000' <repeats 378 times>"\224, \000\341\266\061", '\000' <repeats 11 times>, ";ba\267\061\000\000\000\310\024\245\\\302\177\000\000\262\202\340\266\061", '\000' <repeats 11 times>"\224, \000\341\266\061", '\000' <repeats 11 times>, "\005A`\271\061\000\000\000\000`\244\\\302\177\000\000\262\202\340\266\061\000\000\000\001\000\000\000\000\000\000\000\224\000\341\266\061", '\000' <repeats 11 times>"\373, `\271\061\000\000\000\000\000\000\000\302\177\000\000\262\202\340\266\061\000\000\000\001\000\000\000\000\000\000\000\224\000\341\266\061", '\000' <repeats 11 times>"\360, `\271\061\000\000\000\000\000\000\000\302\177\000\000\262\202\340\266\061\000\000\000\001"...
filename = "$HOME/.config/darktable/darktablerc", '\000' <repeats 97 times>, "e\000\341\266\061", '\000' <repeats 11 times>"\224, \000\341\266\061\000\000\000\000\370\033]\302\177\000\000,Ы)5\000\000\000\000\370\033]\302\177\000\000\262\202\340\266\061", '\000' <repeats 35 times>, "\002", '\000' <repeats 15 times>, "\002", '\000' <repeats 87 times>"\224, \000\341\266\061", '\000' <repeats 11 times>"\307, ի)5\000\000\000\000\370\033]\302\177\000\000\262\202\340\266\061", '\000' <repeats 51 times>, "\002", '\000' <repeats 55 times>, "p\245\004u\377\177\000\000Х\004u\377\177", '\000' <repeats 18 times>"\310, \024\245\\\302\177\000\000;ba\267\061\000\000\000\342\314\340\266\061", '\000' <repeats 11 times>"\306"...
#17 0x0000000000400a3e in main (argc=<optimized out>, argv=<optimized out>) at .../darktable/src/main.c:24
No locals.

Also available in: Atom PDF

Go to top