Project

General

Profile

Bug #10264

DT does not start after last merge

Added by Paolo Astengo over 4 years ago. Updated over 4 years ago.

Status:
Closed: invalid
Priority:
Medium
Assignee:
-
Category:
General
Target version:
-
Start date:
01/02/2015
Due date:
% Done:

0%

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

Description

Darktable does not start after last merge with cache2 branch.
The main windows opens without anything in it. The closing button has no effect. The only way to close the window is to hit CTRL-C in the terminal window.

Nothing changed even after clean of the DT main directory

darktablerc.old (17.5 KB) Paolo Astengo, 01/03/2015 04:08 PM

valgrind output.txt Magnifier (5.86 KB) thokster ., 01/03/2015 04:20 PM

dt_blank_window_bt_2015-01-04.txt Magnifier (21.6 KB) Philipp Christ, 01/04/2015 11:23 PM

darktablerc (19.7 KB) Philipp Christ, 01/04/2015 11:32 PM

History

#1 Updated by Roman Lebedev over 4 years ago

  • Status changed from New to Confirmed
  • Priority changed from Low to Medium
  • % Done changed from 0 to 10

Please start DT from gdb, and do:

thread apply all bt full

#2 Updated by Mikko Ruohola over 4 years ago

thread apply all bt fullpolarfox@polartop:~/Build/darktable/build$ gdb /opt/darktable/bin/darktable
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/darktable/bin/darktable...done.
(gdb) thread apply all bt full
(gdb) r
Starting program: /opt/darktable/bin/darktable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeab28700 (LWP 28421)]
[New Thread 0x7fffea327700 (LWP 28422)]
[New Thread 0x7fffe9b26700 (LWP 28423)]
[New Thread 0x7fffe9325700 (LWP 28424)]
[New Thread 0x7fffe8b24700 (LWP 28425)]
[New Thread 0x7fffdbfff700 (LWP 28426)]

  • (darktable:28417): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-fDOevU48c7: Yhteys torjuttu
    [New Thread 0x7fffdb17d700 (LWP 28427)]
    [New Thread 0x7fffc4166700 (LWP 28429)]
    [New Thread 0x7fffb5cfc700 (LWP 28430)]
    [Thread 0x7fffc4166700 (LWP 28429) exited]
    [Thread 0x7fffb5cfc700 (LWP 28430) exited]
    [New Thread 0x7fffb5cfc700 (LWP 28431)]
    [New Thread 0x7fffc4166700 (LWP 28433)]
    [Thread 0x7fffc4166700 (LWP 28433) exited]
    [New Thread 0x7fffc4166700 (LWP 28434)]
    [Thread 0x7fffc4166700 (LWP 28434) exited]
    [New Thread 0x7fffc4166700 (LWP 28435)]
    [Thread 0x7fffc4166700 (LWP 28435) exited]
    [New Thread 0x7fffc4166700 (LWP 28436)]
    [New Thread 0x7fffa4350700 (LWP 28437)]
    [Thread 0x7fffa4350700 (LWP 28437) exited]
    ^C
    Program received signal SIGINT, Interrupt.
    lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    135 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Tiedostoa tai hakemistoa ei ole.
    (gdb) bt full
    #0 _lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    No locals.
    #1 0x00007ffff774556a in _L_lock_913 () from /lib/x86_64-linux-gnu/libpthread.so.0
    No symbol table info available.
    #2 0x00007ffff7745390 in __GI
    _pthread_mutex_lock (mutex=0x61cbf0) at ../nptl/pthread_mutex_lock.c:79
    PRETTY_FUNCTION = "
    _pthread_mutex_lock"
    type = 4294966784
    #3 0x00007fffa517ab28 in dt_conf_get_string (name=0x7fffa517b2b0 "plugins/lighttable/geotagging/offset")
    at /home/polarfox/Build/darktable/src/control/conf.h:192
    No locals.
    #4 gui_init (self=0xd558a0) at /home/polarfox/Build/darktable/src/libs/geotagging.c:594
    d = 0x1019d10
    hbox = 0x1023270
    button = <optimised out>
    label = <optimised out>
    button_box = <optimised out>
    #5 0x00007ffff7ad10b4 in dt_view_manager_switch (vm=0x9b5c10, k=k@entry=0) at /home/polarfox/Build/darktable/src/views/view.c:315
    w = <optimised out>
    plugin = 0xd558a0
    plugins = 0x882c80
    v = 0x9b5af0
    endmarker = <optimised out>
    error = <optimised out>
    newv = <optimised out>
    nv = <optimised out>
    #6 0x00007ffff7a296c9 in dt_ctl_switch_mode_to (mode=DT_LIBRARY) at /home/polarfox/Build/darktable/src/control/control.c:639
    oldmode = <optimised out>
    widget = <optimised out>
    buf = "vaihda tilaan\000\000\260u\377\367\377\177\000\000\357w\227\367\377\177\000\000 X\227\367\377\177\000\000\310\023\227\367\377\177\000\000\000\000\000\000\005\000\000\000\254\f\000\000\001", '\000' <repeats 11 times>, "(\231\377\377\377\177\000\000\000\231\377\377\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\by\377\367\377\177\000\000\260u\377\367\377\177\000\000\221I\336\367\377\177", '\000' <repeats 18 times>, "\005\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\260u\377\367\377\177\000\000\000\212\000\320\377\177\000\000I\036\370\364\377\177\000\000\320C/\365\377\177", '\000' <repeats 18 times>...
    i_own_lock = 0
    ---Type <return> to continue, or q <return> to quit---
    error = <optimised out>
    #7 0x00007ffff79d200c in dt_init (argc=-1, argv=0x882e60, init_gui=0, init_gui@entry=1, L=0xffffffffffffffff, L@entry=0x0)
    at /home/polarfox/Build/darktable/src/common/darktable.c:874
    keyfile = "/home/polarfox/.config/darktable/keyboardrc\000default", '\000' <repeats 4044 times>
    id = -1
    datadir_from_command = 0x7fffffffceb0 "/home/polarfox/.config/darktable/keyboardrc_default_tmp"
    datadir = "/home/polarfox/.config/darktable", '\000' <repeats 4063 times>
    filename = "/home/polarfox/.config/darktable/darktablerc", '\000' <repeats 4051 times>
    #8 0x00000000004007e0 in main (argc=<optimised out>, argv=<optimised out>) at /home/polarfox/Build/darktable/src/main.c:24
    No locals.

#3 Updated by Paolo Astengo over 4 years ago

I'm not used to run gdb, but I've tried to do it.

Here is what displayed on the terminal:

(gdb) thread apply all bt full
(gdb) r
Starting program: /usr/bin/darktable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9603700 (LWP 5327)]
[New Thread 0x7fffe8e02700 (LWP 5328)]
[New Thread 0x7fffe3fff700 (LWP 5329)]
[New Thread 0x7fffe37fe700 (LWP 5330)]
[New Thread 0x7fffe2ffd700 (LWP 5331)]
[New Thread 0x7fffe21d8700 (LWP 5332)]
[New Thread 0x7fffe1568700 (LWP 5333)]
[New Thread 0x7fffcb9c5700 (LWP 5334)]

(darktable:5323): Json-CRITICAL **: json_node_get_object: assertion 'node != NULL' failed
[New Thread 0x7fffad6da700 (LWP 5336)]
[Thread 0x7fffad6da700 (LWP 5336) exited]
[New Thread 0x7fffad6da700 (LWP 5337)]
[Thread 0x7fffad6da700 (LWP 5337) exited]
[New Thread 0x7fffad6da700 (LWP 5338)]
[New Thread 0x7fffa3fff700 (LWP 5339)]
[Thread 0x7fffa3fff700 (LWP 5339) exited]
[Thread 0x7fffcb9c5700 (LWP 5334) exited]
^C
Program received signal SIGINT, Interrupt.
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
135 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: File o directory non esistente.
(gdb)

Hope this helps

#4 Updated by Roman Lebedev over 4 years ago

Paolo Astengo wrote:

I'm not used to run gdb, but I've tried to do it.

Here is what displayed on the terminal:

(gdb) thread apply all bt full
(gdb) r
Starting program: /usr/bin/darktable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9603700 (LWP 5327)]
[New Thread 0x7fffe8e02700 (LWP 5328)]
[New Thread 0x7fffe3fff700 (LWP 5329)]
[New Thread 0x7fffe37fe700 (LWP 5330)]
[New Thread 0x7fffe2ffd700 (LWP 5331)]
[New Thread 0x7fffe21d8700 (LWP 5332)]
[New Thread 0x7fffe1568700 (LWP 5333)]
[New Thread 0x7fffcb9c5700 (LWP 5334)]

(darktable:5323): Json-CRITICAL **: json_node_get_object: assertion 'node != NULL' failed
[New Thread 0x7fffad6da700 (LWP 5336)]
[Thread 0x7fffad6da700 (LWP 5336) exited]
[New Thread 0x7fffad6da700 (LWP 5337)]
[Thread 0x7fffad6da700 (LWP 5337) exited]
[New Thread 0x7fffad6da700 (LWP 5338)]
[New Thread 0x7fffa3fff700 (LWP 5339)]
[Thread 0x7fffa3fff700 (LWP 5339) exited]
[Thread 0x7fffcb9c5700 (LWP 5334) exited]
^C
Program received signal SIGINT, Interrupt.
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
135 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: File o directory non esistente.
(gdb)

Hope this helps

I should have been more clear what i wanted:
1. $ gdb darktable
2. r
3. wait some time, no GUI is shown
4. Ctrl+C
5. thread apply all bt full

#5 Updated by Paolo Astengo over 4 years ago

Here we are

Paolo@PlinuxNB:~$ gdb /usr/bin/darktable
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/darktable...done.
(gdb) r
Starting program: /usr/bin/darktable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9603700 (LWP 5491)]
[New Thread 0x7fffe8e02700 (LWP 5492)]
[New Thread 0x7fffe3fff700 (LWP 5493)]
[New Thread 0x7fffe37fe700 (LWP 5494)]
[New Thread 0x7fffe2ffd700 (LWP 5495)]
[New Thread 0x7fffe21d8700 (LWP 5496)]
[New Thread 0x7fffe1568700 (LWP 5497)]
[New Thread 0x7fffcb9c5700 (LWP 5498)]

(darktable:5487): Json-CRITICAL **: json_node_get_object: assertion 'node != NULL' failed
[New Thread 0x7fffad4d4700 (LWP 5500)]
[Thread 0x7fffad4d4700 (LWP 5500) exited]
[New Thread 0x7fffad4d4700 (LWP 5501)]
[Thread 0x7fffad4d4700 (LWP 5501) exited]
[New Thread 0x7fffad4d4700 (LWP 5502)]
[New Thread 0x7fffa3fff700 (LWP 5504)]
[Thread 0x7fffcb9c5700 (LWP 5498) exited]
[Thread 0x7fffa3fff700 (LWP 5504) exited]
^C
Program received signal SIGINT, Interrupt.
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
135 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: File o directory non esistente.
(gdb) thread apply all bt full

Thread 12 (Thread 0x7fffad4d4700 (LWP 5502)):
#0 0x00007ffff74643dd in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x00007ffff511bee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007ffff511bffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3 0x00007ffff511c039 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4 0x00007ffff5142925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#5 0x00007ffff77410a5 in start_thread (arg=0x7fffad4d4700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffad4d4700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736100910848, -7824573496339811087, 1, 140737018615616, 140736100911552, 140736100910848, 7824684699614885105, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#6 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 8 (Thread 0x7fffe1568700 (LWP 5497)):
#0 0x00007ffff74643dd in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x00007ffff511bee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007ffff511c272 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3 0x00007ffff54bbef6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#4 0x00007ffff5142925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#5 0x00007ffff77410a5 in start_thread (arg=0x7fffe1568700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe1568700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736973932288, 7824573496339811087, 1, 0, 140736973932992, 140736973932288, 7824517752088605937, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
---Type <return> to continue, or q <return> to quit--

sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#6 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 7 (Thread 0x7fffe21d8700 (LWP 5496)):
#0 0x00007ffff74643dd in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x00007ffff511bee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007ffff511bffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3 0x00007fffe21e027d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
No symbol table info available.
#4 0x00007ffff5142925 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#5 0x00007ffff77410a5 in start_thread (arg=0x7fffe21d8700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe21d8700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736986973952, -7824573496339811087, 1, 0, 140736986974656, 140736986973952, 7824516059871491313, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#6 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 6 (Thread 0x7fffe2ffd700 (LWP 5495)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1 0x00007ffff7a2abee in dt_control_work_res (ptr=<optimized out>) at /home/paolo/darktable/src/control/jobs.c:438
old = 0
params = <optimized out>
s = 0x6d56e0
#2 0x00007ffff77410a5 in start_thread (arg=0x7fffe2ffd700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe2ffd700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737001805568, 7824573496339811087, 1, 0, 140737001806272, 140737001805568, 7824514121230628081, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
---Type <return> to continue, or q <return> to quit--

pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#3 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 5 (Thread 0x7fffe37fe700 (LWP 5494)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1 0x00007ffff7a2abee in dt_control_work_res (ptr=<optimized out>) at /home/paolo/darktable/src/control/jobs.c:438
old = 0
params = <optimized out>
s = 0x6d56e0
#2 0x00007ffff77410a5 in start_thread (arg=0x7fffe37fe700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe37fe700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737010198272, -7824573496339811087, 1, 0, 140737010198976, 140737010198272, 7824513022255871217, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#3 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 4 (Thread 0x7fffe3fff700 (LWP 5493)):
#0 0x00007ffff743599d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x00007ffff7435834 in sleep (seconds=0, seconds@entry=2) at ../sysdeps/unix/sysv/linux/sleep.c:137
ts = {tv_sec = 1, tv_nsec = 68368424}
set = {__val = {65536, 0 <repeats 15 times>}}
oset = {__val = {0, 140737347301530, 4294967295, 0, 140737344944128, 140737354103440, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
result = <optimized out>
#2 0x00007ffff7a2a82a in dt_control_worker_kicker (ptr=0x6d56e0) at /home/paolo/darktable/src/control/jobs.c:451
control = 0x6d56e0
#3 0x00007ffff77410a5 in start_thread (arg=0x7fffe3fff700) at pthread_create.c:309
__res = <optimized out>
pd = 0x7fffe3fff700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737018590976, 7824573496339811087, 1, 0, 140737018591680, 140737018590976, 7824511923281114353, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
---Type <return> to continue, or q <return> to quit--

pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#4 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 3 (Thread 0x7fffe8e02700 (LWP 5492)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1 0x00007ffff7a2b7c6 in dt_control_work (ptr=<optimized out>) at /home/paolo/darktable/src/control/jobs.c:476
params = <optimized out>
control = 0x6d56e0
#2 0x00007ffff77410a5 in start_thread (arg=0x7fffe8e02700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe8e02700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737100392192, -7824573496339811087, 1, 0, 140737100392896, 140737100392192, 7824536084082767089, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#3 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 2 (Thread 0x7fffe9603700 (LWP 5491)):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
No locals.
#1 0x00007ffff515f9a9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2 0x00007ffff7a282ee in dt_control_gdk_lock () at /home/paolo/darktable/src/control/control.c:772
No locals.
#3 0x00007ffff7a3213d in dt_control_signal_raise (ctlsig=0x617060, signal=signal@entry=DT_SIGNAL_CAMERA_DETECTED) at /home/paolo/darktable/src/control/signal.c:148
extra_args = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fffe9602b50, reg_save_area = 0x7fffe9602a80}}
i_own_lock = <optimized out>
#4 0x00007ffff7ad8de7 in dt_camctl_detect_cameras (c=0xcde290) at /home/paolo/darktable/src/common/camera_control.c:740
camctl = 0xcde290
available_cameras = 0x7fffe4001230
#5 0x00007ffff7ad8ef1 in _detect_cameras_callback (job=<optimized out>) at /home/paolo/darktable/src/common/camera_control.c:746
c = <optimized out>
#6 0x00007ffff7a2b67e in dt_control_run_job (control=0x6d56e0) at /home/paolo/darktable/src/control/jobs.c:274
No locals.
#7 dt_control_work (ptr=<optimized out>) at /home/paolo/darktable/src/control/jobs.c:472
---Type <return> to continue, or q <return> to quit---
params = <optimized out>
control = 0x6d56e0
#8 0x00007ffff77410a5 in start_thread (arg=0x7fffe9603700) at pthread_create.c:309
res = <optimized out>
pd = 0x7fffe9603700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737108784896, -7824573496339811087, 1, 0, 140737108785600, 140737108784896, 7824534985108010225, 7824557077470164209},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION
= "start_thread"
#9 0x00007ffff746e88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.

Thread 1 (Thread 0x7ffff7f9ca40 (LWP 5487)):
#0 lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
No locals.
#1 0x00007ffff774356a in L_lock_913 () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#2 0x00007ffff7743390 in __GI
_pthread_mutex_lock (mutex=0x621230) at ../nptl/pthread_mutex_lock.c:79
PRETTY_FUNCTION = "
_pthread_mutex_lock"
type = 4294966784
#3 0x00007fffa9b45b28 in dt_conf_get_string (name=0x7fffa9b462a8 "plugins/lighttable/geotagging/offset") at /home/paolo/darktable/src/control/conf.h:192
No locals.
#4 gui_init (self=0xd294c0) at /home/paolo/darktable/src/libs/geotagging.c:594
d = 0xe96f70
hbox = 0xe63f90
button = <optimized out>
label = <optimized out>
button_box = <optimized out>
#5 0x00007ffff7acff14 in dt_view_manager_switch (vm=0x923800, k=k@entry=0) at /home/paolo/darktable/src/views/view.c:315
w = <optimized out>
plugin = 0xd294c0
plugins = 0x847740
v = 0x9236e0
endmarker = <optimized out>
error = <optimized out>
newv = <optimized out>
nv = <optimized out>
#6 0x00007ffff7a28509 in dt_ctl_switch_mode_to (mode=DT_LIBRARY) at /home/paolo/darktable/src/control/control.c:639
oldmode = <optimized out>
widget = <optimized out>
buf = "switch to mode\000\230u\377\367\377\177\000\000\217Z\227\367\377\177\000\000\300:\227\367\377\177\000\000P\366\226\367\377\177\000\000\000\000\000\000\005\000\000\000\306\f\000---Type <return> to continue, or q <return> to quit---
\000\001", '\000' <repeats 11 times>, "X\235\377\377\377\177\000\000\060\235\377\377\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\360x\377\367\377\177\000\000\230u\377\367\377\177\000\000\221I\336\367\377\177", '\000' <repeats 18 times>, "\005", '\000' <repeats 15 times>, "\001\000\000\000\000\000\000\000\230u\377\367\377\177\000\000\300\034\207\000\000\000\000\000I\016\017\365\377\177\000\000\320\063F\365\377\177", '\000' <repeats 18 times>...
i_own_lock = 0
error = <optimized out>
#7 0x00007ffff79d09cc in dt_init (argc=-1, argv=0x848360, init_gui=0, init_gui@entry=1, L=0xffffffffffffffff, L@entry=0x0) at /home/paolo/darktable/src/common/darktable.c:874
keyfile = "/home/paolo/.config/darktable/keyboardrc\000default", '\000' <repeats 4047 times>
id = -1
datadir_from_command = 0x7fffffffd2e0 "/home/paolo/.config/darktable/keyboardrc_default_tmp"
datadir = "/home/paolo/.config/darktable", '\000' <repeats 4066 times>
filename = "/home/paolo/.config/darktable/darktablerc", '\000' <repeats 4054 times>
#8 0x00000000004007d0 in main (argc=<optimized out>, argv=<optimized out>) at /home/paolo/darktable/src/main.c:24
No locals.

#6 Updated by thokster . over 4 years ago

Same problem here, gdb output very similar.
Do you need it?

#7 Updated by Johannes Hanika over 4 years ago

does anyone of you have a darktablerc file to share? maybe it's some option that is different to my setup?

#8 Updated by Paolo Astengo over 4 years ago

Hi Johannes,

actually I've made a lot of tries, even without any darktablerc file, even starting with a absolutely fresh installation. No way to get DT working.

In any case, I'm attaching my darktablerc file. Hope this could help

#9 Updated by thokster . over 4 years ago

Attached the valgrind output.

How long do I have to run this?
Stopped it after a long time nothing happened and got the following summary:

^C==19027==
19027 HEAP SUMMARY:
19027 in use at exit: 218,316,541 bytes in 121,779 blocks
19027 total heap usage: 1,097,746 allocs, 975,967 frees, 4,564,433,963 bytes allocated
19027
19027 LEAK SUMMARY:
19027 definitely lost: 39,251 bytes in 127 blocks
19027 indirectly lost: 174,280 bytes in 3,719 blocks
19027 possibly lost: 12,488,457 bytes in 10,644 blocks
19027 still reachable: 204,865,881 bytes in 104,154 blocks
19027 suppressed: 0 bytes in 0 blocks

#10 Updated by Johannes Hanika over 4 years ago

valgrind log looks clean.

i'd be interested to see who holds the lock on our config hash table that the first thread waits on.. but that would require some dev work (changing #ifdef _DEBUG to #if 1 in dtpthread.h:30 and reading out the function name darktable->conf.lock->top_locked_name in gdb at the time of the deadlock). i suspect nobody holds it and we're going over memory somewhere, flipping this lock bit.

another wild guess. are you running opencl? could you try darktable --disable-opencl ?

#11 Updated by Paolo Astengo over 4 years ago

My DT is currently running without OpenCl extensions, since I had no possibility to use opencl with my videocard.
However, I've just tried to run it even with --disable-opencl flag with no results.

If you give me some hints, I will try to follow it

#12 Updated by Philipp Christ over 4 years ago

I have the same happening here.
gdb log as suggested by Roman is attached.

This is run against today's g1d3f80c.

System is Kubuntu 14.10/64

#13 Updated by thokster . over 4 years ago

What about this warnings during building? There are a couple of them more.

/home/fritz/darktable/src/control/control.c: In function ‘dt_control_shutdown’:
/home/fritz/darktable/src/control/control.c:397:3: warning: ‘gdk_threads_leave’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
gdk_threads_leave();
^
/home/fritz/darktable/src/control/control.c:407:3: warning: ‘gdk_threads_enter’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46) [-Wdeprecated-declarations]
gdk_threads_enter();
^
/home/fritz/darktable/src/control/control.c: In function ‘dt_control_gdk_lock’:
/home/fritz/darktable/src/control/control.c:772:3: warning: ‘gdk_threads_enter’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46) [-Wdeprecated-declarations]
gdk_threads_enter();
^
/home/fritz/darktable/src/control/control.c: In function ‘dt_control_gdk_unlock’:
/home/fritz/darktable/src/control/control.c:787:5: warning: ‘gdk_threads_leave’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48) [-Wdeprecated-declarations]
gdk_threads_leave();

#14 Updated by Rob Dean over 4 years ago

I'm getting the same fault as well. System is also Kubuntu 14.10/64

#15 Updated by Roman Lebedev over 4 years ago

Have you tried cleaning build/ ?

#16 Updated by Rob Dean over 4 years ago

What commands do I use to do that?

#17 Updated by Roman Lebedev over 4 years ago

I'm guessing, you are using build.sh script?
Look at the path after "Building directory: "
and then remove it (rm -rf build/)

#18 Updated by Rob Dean over 4 years ago

I removed "build/src/" and did another git pull which made it do another build but still the same result,the main windows opens without anything in it.

#19 Updated by thokster . over 4 years ago

Same here.
Also removed all and made complete new checkout, same result

#20 Updated by Rob Dean over 4 years ago

As per Pascal Obry's suggestion on the mailing list, removing the install directory /opt/darktable and then rebuilding and installing has resolved this for me.

#21 Updated by thokster . over 4 years ago

Rob Dean wrote:

As per Pascal Obry's suggestion on the mailing list, removing the install directory /opt/darktable and then rebuilding and installing has resolved this for me.

+1

#22 Updated by Roman Lebedev over 4 years ago

  • % Done changed from 10 to 0
  • Status changed from Confirmed to Closed: invalid

Solution: uninstall old DT build before installing new one.
e.g. rm -rf /opt/darktable

#23 Updated by Paolo Astengo over 4 years ago

I'm using the /usr prefix (I known, I know that this is not a "best practice").

I've already tried deleting /usr/bin/darktable*, /usr/share/darktable/ without results. I've tried also to completely rebuild the git environment with no effects.

When I've deleted the /usr/lib/darktable directory, the problem is solved!

Thank you very much for your support and for this great piece of software!

Also available in: Atom PDF