Project

General

Profile

Bug #10647

Darktable falls and closes itself - all work disappear

Added by Jiri Valnoha over 4 years ago. Updated over 4 years ago.

Status:
Incomplete
Priority:
Low
Assignee:
-
Category:
Lighttable
Target version:
-
Start date:
09/30/2015
Due date:
% Done:

20%

Estimated time:
Affected Version:
1.6.8
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Hi,

during cleaning of my photo collection (I worked in LightRoom where I removed blurry pictures) Darktable fell. I tried to run it under debug mode but it doesn't work. So I found this:

% darktable -d camctl 2>1 >camctl.log
*** Error in `darktable': realloc(): invalid old size: 0x00007ff74c0110c0 ***
*** Error in `darktable[1]    29274 abort (core dumped)  darktable -d camctl 2> 1 > camctl.log
darktable -d camctl 2> 1 > camctl.log  273.65s user 30.10s system 38% cpu 12:58.88 total

% cat camctl.log
[camera_control] creating new context 0x1b13640
[camera_control] loaded 2105 camera drivers.
[camera_control] registering listener 0x20a5c00
[export_job] exported to `/run/media/waldauf/walda_disk/__fotos/_INDIE_20150709-0801/__RAW_VYBER_JPG__/2015-07-20/indie_20150720-092623___7201530.jpg'
[camera_control] unregistering listener 0x20a5c00
[camera_control] registering listener 0x2197720
[camera_control] unregistering listener 0x2197720
[camera_control] registering listener 0x21dc2b0
[camera_control] unregistering listener 0x21dc2b0
[camera_control] registering listener 0x28aa600
[camera_control] unregistering listener 0x28aa600
[camera_control] registering listener 0x20f4dd0
[camera_control] unregistering listener 0x20f4dd0
[camera_control] registering listener 0x25bf400
[camera_control] unregistering listener 0x25bf400
[camera_control] registering listener 0x29afd10

I work with ORF files from Olympus camera.
It happend sometimes in Lighttable and sometimes in Darktable.
Laptop: Lenovo X240, i5, 8GB RAM
System: Linux 4.0.7-2-ARCH #1 SMP PREEMPT Tue Jun 30 07:50:21 UTC 2015 x86_64 GNU/Linux

darktable_bt_SWV95X.txt (24.5 KB) darktable_bt_SWV95X.txt Jiri Valnoha, 10/07/2015 09:07 PM

History

#1 Updated by Tobias Ellinghaus over 4 years ago

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

Could you make sure that debug symbols are installed (most distributions put them in a package like "darktable-dbg" or "darktable-debug") and then run darktable under gdb like this:

gdb darktable
r

then wait for it to crash. The GUI should just freeze but stay open. Then go to your terminal and type

bt full

and paste the output here. You can quit gdb afterwards with

q
y

#2 Updated by Jiri Valnoha over 4 years ago

Hello Tobias,

I did like you asked me.

% gdb darktable
GNU gdb (GDB) 7.10
Copyright (C) 2015 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-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from darktable...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/darktable 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
~
~
[New Thread 0x7fff5ffff700 (LWP 3217)]
[Thread 0x7fff68289700 (LWP 3216) exited]
[Thread 0x7fff6bfff700 (LWP 3215) exited]
[Thread 0x7fff5ffff700 (LWP 3217) exited]
[Thread 0x7fffe1a60700 (LWP 3059) exited]
[image_cache_allocate] failed to open image 2584 from database: unknown error
[cache] write_get: bucket not found!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe08f3700 (LWP 2833)]
0x00007ffff7960700 in dt_grouping_remove_from_group () from /usr/bin/../lib/darktable/libdarktable.so
(gdb) bt full
#0  0x00007ffff7960700 in dt_grouping_remove_from_group () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#1  0x00007ffff7967af7 in dt_image_remove () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#2  0x00007ffff799bb73 in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#3  0x00007ffff799a53d in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#4  0x00007ffff769f4a4 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#5  0x00007ffff73dd12d in clone () from /usr/lib/libc.so.6
No symbol table info available.
(gdb) 
#0  0x00007ffff7960700 in dt_grouping_remove_from_group () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#1  0x00007ffff7967af7 in dt_image_remove () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#2  0x00007ffff799bb73 in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#3  0x00007ffff799a53d in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#4  0x00007ffff769f4a4 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#5  0x00007ffff73dd12d in clone () from /usr/lib/libc.so.6
No symbol table info available.
(gdb) 
#0  0x00007ffff7960700 in dt_grouping_remove_from_group () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#1  0x00007ffff7967af7 in dt_image_remove () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#2  0x00007ffff799bb73 in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#3  0x00007ffff799a53d in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#4  0x00007ffff769f4a4 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#5  0x00007ffff73dd12d in clone () from /usr/lib/libc.so.6
No symbol table info available.
(gdb) 
#0  0x00007ffff7960700 in dt_grouping_remove_from_group () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#1  0x00007ffff7967af7 in dt_image_remove () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#2  0x00007ffff799bb73 in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#3  0x00007ffff799a53d in ?? () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#4  0x00007ffff769f4a4 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#5  0x00007ffff73dd12d in clone () from /usr/lib/libc.so.6
No symbol table info available.

I have to say another critical error which occure wery often during work with Darktable (maybe it relateds with DT crashing). During my work are some ORF (RAW) files corrupted (I think it is caused by crashes). These files have modified file size (shrinked) and cannot be loaded anymore. Only solution is to replace them from origin copy.

#3 Updated by Jiri Valnoha over 4 years ago

Duplicated message was removed.

#4 Updated by Jiri Valnoha over 4 years ago

I tried it again - I alternately switched between Ligttable and Darkroom and now I got this error:

Thread 0x7fff737fe700 (LWP 10613) exited]
[Thread 0x7fffae1b3700 (LWP 10614) exited]
**
Gdk:ERROR:gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2)

Program received signal SIGABRT, Aborted.
0x00007ffff73275f8 in raise () from /usr/lib/libc.so.6
(gdb) 
(gdb) bt full
#0  0x00007ffff73275f8 in raise () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ffff7328a7a in abort () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00007ffff7055825 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff70558ba in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff6b109cd in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#5  0x00007ffff6b11db6 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#6  0x00007ffff6b12435 in gdk_region_union () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#7  0x00007ffff6b1ce50 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#8  0x00007ffff66e55dd in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#9  0x00007ffff66e9da7 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#10 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#11 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#12 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#13 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#14 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#15 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#16 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#17 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#18 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#19 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#20 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#21 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0x00007ffff6569432 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#23 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#24 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#25 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#26 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#27 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#28 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#29 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#30 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#31 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#32 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#33 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#34 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#35 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#36 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#37 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#38 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#39 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#40 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#41 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#42 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#43 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#44 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#45 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#46 0x00007ffff6515ebe in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#47 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#48 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#49 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#50 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#51 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#52 0x00007ffff6654211 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#53 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#54 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#55 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#56 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#57 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#58 0x00007ffff651fa38 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#59 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#60 0x00007ffff6da5472 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#61 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#62 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#63 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#64 0x00007ffff66f34aa in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#65 0x00007ffff6da82ae in g_cclosure_marshal_VOID__BOXEDv () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#66 0x00007ffff6da5524 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#67 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#68 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#69 0x00007ffff66e9c15 in gtk_widget_size_allocate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#70 0x00007ffff66f459e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#71 0x00007ffff6da5524 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#72 0x00007ffff6dbef97 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#73 0x00007ffff6dbf8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#74 0x00007ffff6552970 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#75 0x00007ffff6afd577 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#76 0x00007ffff702f90d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#77 0x00007ffff702fce0 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#78 0x00007ffff7030002 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#79 0x00007ffff65cc467 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#80 0x00007ffff7a1b00c in dt_gui_gtk_run () from /usr/bin/../lib/darktable/libdarktable.so
No symbol table info available.
#81 0x000000000040083a in main ()
No symbol table info available.

#5 Updated by Jiri Valnoha over 4 years ago

Hello Tobias,

can I ask you if my debug does help you?

Regard

#6 Updated by Tobias Ellinghaus over 4 years ago

Not really, you didn't install the debug symbols.

#7 Updated by Jiri Valnoha over 4 years ago

Tobias Ellinghaus wrote:

Not really, you didn't install the debug symbols.

I'm running on Arch Linux and it doesn't have darktable-dbg/debug package. :/ So I tried it with already installed dbg. If is missing some another package please tell me its name and I'm going to find him in my repo.

#8 Updated by Jiri Valnoha over 4 years ago

Is this helpful for you?

% darktable
[image_cache_allocate] failed to open image 2870 from database: unknown error
[cache] write_get: bucket not found!
[New LWP 21738]
[New LWP 21737]
[New LWP 21736]
[New LWP 21502]
[New LWP 21501]
[New LWP 21500]
[New LWP 21487]
[New LWP 21486]
[New LWP 21485]
[New LWP 21429]
[New LWP 21428]
[New LWP 21427]
[New LWP 21385]
[New LWP 21384]
[New LWP 21383]
[New LWP 21370]
[New LWP 21368]
[New LWP 21367]
[New LWP 21366]
[New LWP 21365]
[New LWP 21364]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00007f9aa43e88e9 in ?? () from /usr/lib/libpixman-1.so.0
backtrace written to /tmp/darktable_bt_SWV95X.txt
[1]    21363 segmentation fault (core dumped)  darktable
darktable  299.63s user 24.31s system 58% cpu 9:13.46 total

#9 Updated by Tobias Ellinghaus over 4 years ago

Sorry, still no debug symbols. I have no idea about Arch and don't know how to get them there.

Also available in: Atom PDF

Go to top