Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.67k stars 306 forks source link

RT always crashed the first time it is launched. Segmentation fault (core dumped). #6668

Open radumitrescu opened 1 year ago

radumitrescu commented 1 year ago

Short description Every time I launch RT it crashes the first time. Launch it again and it works.

Steps to reproduce

  1. Either click on bar, or lauch via CLI
  2. App launches and crashes immediately
  3. Launch it again
  4. OK

Error code rawtherapee

(rawtherapee:7521): GLib-GObject-CRITICAL **: 06:54:09.981: g_object_unref: assertion 'old_ref > 0' failed

(rawtherapee:7521): GLib-GObject-CRITICAL **: 06:54:09.982: g_object_unref: assertion 'old_ref > 0' failed Segmentation fault (core dumped)

Additional information Version: 5.9 Branch: releases Commit: 9b8583988 Commit date: 2022-11-27 Compiler: cc 12.2.0 Processor: x86_64 System: Linux Bit depth: 64 bits Gtkmm: V3.24.7 Lensfun: V0.3.3.0 Build type: Release Build flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -std=c++11 -ffp-contract=off -Werror=unused-label -Werror=delete-incomplete -fno-math-errno -Wno-attributes -Wall -Wuninitialized -Wcast-qual -Wno-deprecated-declarations -Wno-unused-result -Wunused-macros -fopenmp -Werror=unknown-pragmas -O3 -DNDEBUG -ftree-vectorize Link flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto OpenMP support: ON MMAP support: ON Build OS: Build date: UTC Build epoch: Build UUID:

Other useful information: System: Kernel: 6.1.6-arch1-3 arch: x86_64 bits: 64 compiler: gcc v: 12.2.1 parameters: BOOT_IMAGE=/vmlinuz-linux root=UUID=8f0fcf45-d28b-496a-96df-16b398c9f646 rw rootfstype=ext4 loglevel=3 ibt=off nowatchdog Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0 Distro: Arch Linux Machine: Type: Laptop System: LENOVO product: 82JM v: Legion 5 17ITH6H serial: Chassis: type: 10 v: Legion 5 17ITH6H serial: Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: UEFI: LENOVO v: H1CN49WW date: 08/16/2022 Battery: ID-1: BAT0 charge: 47.5 Wh (57.0%) condition: 83.4/80.0 Wh (104.3%) volts: 15.4 min: 15.4 model: Celxpert L20C4PC2 type: Li-poly serial: status: not charging cycles: 6 CPU: Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020 process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1 microcode: 0x42 Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB L3: 24 MiB desc: 1x24 MiB Speed (MHz): avg: 2141 high: 2300 min/max: 800/4600 scaling: driver: intel_pstate governor: performance cores: 1: 2300 2: 1314 3: 1959 4: 2300 5: 2300 6: 2300 7: 2300 8: 2196 9: 2300 10: 2300 11: 2300 12: 2300 13: 2300 14: 2300 15: 2300 16: 1188 bogomips: 73744 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Vulnerabilities: Type: itlb_multihit status: Not affected Type: l1tf status: Not affected Type: mds status: Not affected Type: meltdown status: Not affected Type: mmio_stale_data status: Not affected Type: retbleed status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence Type: srbds status: Not affected Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Lenovo driver: i915 v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, DP-5, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:9a60 class-ID: 0300 Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia v: 525.78.01 alternate: nouveau,nvidia_drm non-free: 525.xx+ status: current (as of 2022-12) arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.0 chip-ID: 10de:2560 class-ID: 0300 Device-3: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 3-6:3 chip-ID: 174f:2459 class-ID: fe01 serial: Display: x11 server: X.org v: 1.21.1.6 with: Xwayland v: 22.1.7 compositor: gnome-shell driver: X: loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :1 screens: 1 Screen-1: 0 s-res: 1920x1080 s-size: Monitor-1: eDP-1 model: AU Optronics 0x449d built: 2018 res: 1920x1080 hz: 144 dpi: 128 gamma: 1.2 size: 382x215mm (15.04x8.46") diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080 API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing. Audio: Device-1: Intel Tiger Lake-H HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:43c8 class-ID: 0403 Device-2: NVIDIA GA106 High Definition Audio driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403 Sound API: ALSA v: k6.1.6-arch1-3 running: yes Sound Server-1: JACK v: 1.9.21 running: no Sound Server-2: PulseAudio v: 16.1 running: yes Sound Server-3: PipeWire v: 0.3.64 running: yes Network: Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280 IF: wlan0 state: up mac: Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 58:00.0 chip-ID: 10ec:8168 class-ID: 0200 IF: enp88s0 state: up speed: 1000 Mbps duplex: full mac: Bluetooth: Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-14:6 chip-ID: 8087:0026 class-ID: e001 Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: disabled rfk-block: hardware: no software: no address: see --recommends Drives: Local Storage: total: 1.27 TiB used: 605.88 GiB (46.5%) ID-1: /dev/mmcblk0 maj-min: 179:0 model: SD128 size: 116.5 GiB block-size: physical: 512 B logical: 512 B type: SSD serial: scheme: MBR SMART Message: Unknown smartctl error. Unable to generate data. SMART Message: Unable to run smartctl. Root privileges required. ID-2: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 250GB size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: rev: 2B2QEXM7 temp: 36.9 C scheme: GPT ID-3: /dev/nvme1n1 maj-min: 259:3 vendor: SK Hynix model: HFS001TDE9X084N size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: rev: 41010C22 temp: 36.9 C scheme: GPT Partition: ID-1: / raw-size: 232.38 GiB size: 227.68 GiB (97.97%) used: 175.78 GiB (77.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 ID-2: /boot raw-size: 511 MiB size: 510 MiB (99.80%) used: 89 MiB (17.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default) ID-1: swap-1 type: zram size: 4 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0 Sensors: System Temperatures: cpu: 36.0 C mobo: N/A Fan Speeds (RPM): N/A Info: Processes: 357 Uptime: 15m wakeups: 2 Memory: 31.14 GiB used: 4.8 GiB (15.4%) Init: systemd v: 252 default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman pkgs: 1210 libs: 386 tools: gnome-software,pamac,yay pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.24

Lawrence37 commented 1 year ago

Can you elaborate on what "first time" is? First time after boot, first time after a while, first time after install/download, or something else?

radumitrescu commented 1 year ago

Can you elaborate on what "first time" is? First time after boot, first time after a while, first time after install/download, or something else?

First time after a boot I suppose is what I meant.

4fury-c3440d8 commented 1 year ago

First running e.g. after restart PC or start PC after poweroff normally. Or first running after reinstalling. OS: Pisi GNU/Linux Kernel: 5.15.86 GCC: 10.3.0 Glib2: 2.74.4 Gtkmm3: 3.24.7 Glibmm: 2.66.5 RawTherapee: 5.9 Build with ninja, cmake build type is debug

Log cmake configure:

CMAKE_BUILD_TYPE: debug
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtk+-3.0>=3.16'
--   Found gtk+-3.0, version 3.24.36
-- Checking for module 'gtkmm-3.0>=3.16'
--   Found gtkmm-3.0, version 3.24.7
-- Checking for module 'glib-2.0>=2.48'
--   Found glib-2.0, version 2.74.5
-- Checking for module 'glibmm-2.4>=2.48'
--   Found glibmm-2.4, version 2.66.5
-- Checking for module 'cairomm-1.0'
--   Found cairomm-1.0, version 1.14.3
-- Checking for module 'gio-2.0>=2.48'
--   Found gio-2.0, version 2.74.5
-- Checking for module 'giomm-2.4>=2.48'
--   Found giomm-2.4, version 2.66.5
-- Checking for module 'gthread-2.0>=2.48'
--   Found gthread-2.0, version 2.74.5
-- Checking for module 'gobject-2.0>=2.48'
--   Found gobject-2.0, version 2.74.5
-- Checking for module 'sigc++-2.0>=2.3.1'
--   Found sigc++-2.0, version 2.12.0
-- Checking for module 'lensfun>=0.2'
--   Found lensfun, version 0.3.3.0
-- Checking for module 'librsvg-2.0>=2.40'
--   Found librsvg-2.0, version 2.54.5
-- Checking for module 'lcms2>=2.6'
--   Found lcms2, version 2.14
-- Checking for module 'expat>=2.1'
--   Found expat, version 2.5.0
-- Checking for module 'fftw3f'
--   Found fftw3f, version 3.3.8
-- Checking for module 'libiptcdata'
--   Found libiptcdata, version 1.0.5
-- Found TIFF: /usr/lib/libtiff.so (found suitable version "4.4.0", minimum required is "4.0.4")  
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.12") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- Checking for module 'libcanberra-gtk3'
--   Found libcanberra-gtk3, version 0.30
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Performing Test _fftw3f_multithread
-- Performing Test _fftw3f_multithread - Failed
-- Performing Test LENSFUN_HAS_LOAD_DIRECTORY
-- Performing Test LENSFUN_HAS_LOAD_DIRECTORY - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_LD_FLAGS

-- Build files have been written to: /var/pisi/rawtherapee-5.9-2/work/rawtherapee-5.9/_build
-- Cache values
AUTO_GDK_FLUSH:BOOL=OFF
BUILD_SHARED:BOOL=OFF
CACHE_NAME_SUFFIX:STRING=
CMAKE_BUILD_TYPE:STRING=debug
CMAKE_INSTALL_PREFIX:PATH=/usr
ENABLE_TCMALLOC:BOOL=OFF
OPTION_OMP:BOOL=ON
OSX_DEV_BUILD:BOOL=OFF
OSX_NIGHTLY:BOOL=OFF
OSX_UNIVERSAL:BOOL=OFF
PROC_FLAGS:STRING=
PROC_LABEL:STRING=undefined
PROC_TARGET_10_FLAGS:STRING=-march=sandybridge -mtune=ivybridge
PROC_TARGET_10_LABEL:STRING=sandybridge-ivybridge
PROC_TARGET_1_FLAGS:STRING=-mtune=generic
PROC_TARGET_1_LABEL:STRING=generic;x86
PROC_TARGET_2_FLAGS:STRING=-march=native
PROC_TARGET_2_LABEL:STRING=native
PROC_TARGET_3_FLAGS:STRING=-march=pentium
PROC_TARGET_3_LABEL:STRING=pentium
PROC_TARGET_4_FLAGS:STRING=-march=pentium4
PROC_TARGET_4_LABEL:STRING=pentium4
PROC_TARGET_5_FLAGS:STRING=-march=core2
PROC_TARGET_5_LABEL:STRING=core2
PROC_TARGET_6_FLAGS:STRING=-march=corei7
PROC_TARGET_6_LABEL:STRING=corei7
PROC_TARGET_7_FLAGS:STRING=-march=athlon-4
PROC_TARGET_7_LABEL:STRING=athlon-4
PROC_TARGET_8_FLAGS:STRING=-march=athlon64
PROC_TARGET_8_LABEL:STRING=athlon64
PROC_TARGET_9_FLAGS:STRING=-march=amdfam10
PROC_TARGET_9_LABEL:STRING=phenomX4
PROC_TARGET_NUMBER:STRING=1
RTENGINE_CXX_FLAGS:STRING=-ftree-vectorize
STRICT_MUTEX:BOOL=ON
TCMALLOC_LIB_DIR:PATH=
TRACE_MYRWMUTEX:BOOL=OFF
USE_EXPERIMENTAL_LANG_VERSIONS:BOOL=OFF
USE_LIBCANBERRA:BOOL=ON
WITH_BENCHMARK:BOOL=OFF
WITH_LTO:BOOL=OFF
WITH_MYFILE_MMAP:BOOL=ON
WITH_PROF:BOOL=OFF
WITH_SAN:BOOL=OFF
WITH_SYSTEM_KLT:BOOL=OFF
_f:FILEPATH=/usr/lib/libfftw3f.so
_l:FILEPATH=/usr/lib/liblensfun.so
fftw3f_omp:FILEPATH=fftw3f_omp-NOTFOUND
DEBUG: return value for "cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="-mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC" -DCMAKE_CXX_FLAGS="-mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC" -DCMAKE_LD_FLAGS="-Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_TYPE=debug -DPROC_TARGET_NUMBER=1 -DCREDITSDIR=/usr/share/doc/rawtherapee -DLICENCEDIR=/usr/share/doc/rawtherapee -B_build -G Ninja -L ." is 0

gdb rawtherapee output:

(gdb) run
Starting program: /usr/bin/rawtherapee 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffe7071640 (LWP 28688)]
[New Thread 0x7fffe6870640 (LWP 28689)]
[New Thread 0x7fffe606f640 (LWP 28690)]
[New Thread 0x7fffe586e640 (LWP 28691)]
[New Thread 0x7fffe506d640 (LWP 28692)]
[New Thread 0x7fffe486c640 (LWP 28693)]
[New Thread 0x7fffe406b640 (LWP 28694)]
[New Thread 0x7fffe3733640 (LWP 28695)]
[New Thread 0x7fffe2f32640 (LWP 28696)]
[New Thread 0x7fffe2711640 (LWP 28697)]
[Thread 0x7fffe2711640 (LWP 28697) exited]
[New Thread 0x7fffe2711640 (LWP 28698)]
[New Thread 0x7fffe1aba640 (LWP 28699)]
[Thread 0x7fffe2711640 (LWP 28698) exited]
[New Thread 0x7fffe2711640 (LWP 28700)]
[New Thread 0x7fffe1145640 (LWP 28701)]
[Thread 0x7fffe1aba640 (LWP 28699) exited]
[Thread 0x7fffe2711640 (LWP 28700) exited]
[New Thread 0x7fffe2711640 (LWP 28702)]
[Thread 0x7fffe1145640 (LWP 28701) exited]
[New Thread 0x7fffe1145640 (LWP 28703)]
[New Thread 0x7fffe1aba640 (LWP 28704)]
[Thread 0x7fffe1145640 (LWP 28703) exited]
[New Thread 0x7fffe1145640 (LWP 28705)]
[New Thread 0x7fffdbbfe640 (LWP 28706)]
[Thread 0x7fffe1145640 (LWP 28705) exited]
[Thread 0x7fffe1aba640 (LWP 28704) exited]
[New Thread 0x7fffe1aba640 (LWP 28707)]
[New Thread 0x7fffe1145640 (LWP 28708)]
[Thread 0x7fffdbbfe640 (LWP 28706) exited]
[Thread 0x7fffe1aba640 (LWP 28707) exited]
[New Thread 0x7fffe1aba640 (LWP 28709)]
[New Thread 0x7fffdbbfe640 (LWP 28710)]
[Thread 0x7fffe1aba640 (LWP 28709) exited]
[Thread 0x7fffe1145640 (LWP 28708) exited]
[Thread 0x7fffdbbfe640 (LWP 28710) exited]
[New Thread 0x7fffdbbfe640 (LWP 28711)]
[New Thread 0x7fffe1145640 (LWP 28712)]
[Thread 0x7fffdbbfe640 (LWP 28711) exited]
[New Thread 0x7fffdbbfe640 (LWP 28713)]
[New Thread 0x7fffe1aba640 (LWP 28714)]
[Thread 0x7fffdbbfe640 (LWP 28713) exited]
[Thread 0x7fffe1145640 (LWP 28712) exited]
[Thread 0x7fffe1aba640 (LWP 28714) exited]
[New Thread 0x7fffe1aba640 (LWP 28715)]
[New Thread 0x7fffe1145640 (LWP 28716)]
[Thread 0x7fffe1aba640 (LWP 28715) exited]
[New Thread 0x7fffe1aba640 (LWP 28717)]
[New Thread 0x7fffdbbfe640 (LWP 28718)]
[Thread 0x7fffe1aba640 (LWP 28717) exited]
[Thread 0x7fffe1145640 (LWP 28716) exited]
[Thread 0x7fffdbbfe640 (LWP 28718) exited]
[New Thread 0x7fffdbbfe640 (LWP 28719)]
[New Thread 0x7fffe1145640 (LWP 28720)]
[New Thread 0x7fffe1aba640 (LWP 28721)]
[New Thread 0x7fffdb3fd640 (LWP 28722)]
[New Thread 0x7fffdabfc640 (LWP 28723)]
[New Thread 0x7fffda3fb640 (LWP 28724)]

(rawtherapee:28684): GLib-GObject-WARNING **: 21:27:15.774: instance of invalid non-instantiatable type '(null)'

(rawtherapee:28684): GLib-GObject-CRITICAL **: 21:27:15.774: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(rawtherapee:28684): GLib-GObject-CRITICAL **: 21:27:15.774: g_object_unref: assertion 'old_ref > 0' failed
[New Thread 0x7fffd9bfa640 (LWP 28725)]

Thread 34 "pool-rawtherape" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe1145640 (LWP 28720)]
0x00007ffff7506696 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0

BackTrace

(gdb) bt
#0  0x00007ffff7506696 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
#1  0x00007ffff74d537e in g_hash_table_new_full () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff74dd907 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff74deacf in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007ffff74deed1 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007ffff74df119 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x00007ffff74df438 in g_key_file_load_from_file () from /usr/lib/libglib-2.0.so.0
#7  0x00007ffff70c583d in Glib::KeyFile::load_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Glib::KeyFileFlags)
    () from /usr/lib/libglibmm-2.4.so.1
#8  0x00000000006d7116 in ?? ()
#9  0x00000000006dcb8e in ?? ()
#10 0x0000000000aed6d0 in ?? ()
#11 0x00007ffff70dd582 in ?? () from /usr/lib/libglibmm-2.4.so.1
#12 0x00007ffff75129c4 in ?? () from /usr/lib/libglib-2.0.so.0
#13 0x00007ffff751213d in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007ffff58d3643 in ?? () from /lib/libc.so.6
#15 0x00007ffff59609ac in ?? () from /lib/libc.so.6
(gdb) 
radumitrescu commented 1 year ago
[radu@archlinux ~]$ rawtherapee
Segmentation fault (core dumped)
[radu@archlinux ~]$ rawtherapee
Segmentation fault (core dumped)
[radu@archlinux ~]$ rawtherapee

(rawtherapee:2968): GLib-GObject-CRITICAL **: 18:36:53.273: g_object_unref: assertion 'old_ref > 0' failed
Segmentation fault (core dumped)[radu@archlinux ~]$ rawtherapee

(rawtherapee:4433): GLib-GObject-WARNING **: 18:38:12.492: instance of invalid non-instantiatable type '(null)'

(rawtherapee:4433): GLib-GObject-CRITICAL **: 18:38:12.492: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(rawtherapee:4433): GLib-GObject-CRITICAL **: 18:38:12.492: g_object_unref: assertion 'old_ref > 0' failed
Segmentation fault (core dumped)

Now it doesn't even launch at all anymore.

Lawrence37 commented 1 year ago

Try deleting your options file (make a backup first, or just rename it). Also try these steps of you haven't already: http://rawpedia.rawtherapee.com/How_to_fix_crashes_on_startup

4fury-c3440d8 commented 1 year ago

Resetting user settings only helps for a short time. After several starts, the segmentation faults resume. Rawtherapee starts and exit successfully if I run it from the debugger. Updated gdb 12.1

gdb rawtherapee || run

Maybe the problem is related to the properties of some images or images cache.

Lawrence37 commented 1 year ago

Ok, so the options file has something to do with the crash, at least in your case. Can you share a snapshot of the file that will lead to a crash?

4fury-c3440d8 commented 1 year ago
[General]
TabbedEditor=false
StoreLastProfile=true
StartupDirectory=last
StartupPath=/home/user/Pictures/subdir
DateFormat=%y-%m-%d
AdjusterMinDelay=100
AdjusterMaxDelay=200
MultiUser=true
Language=Russian
LanguageAutoDetect=false
Theme=RawTherapee-GTK3-20_
Version=5.9
DarkFramesPath=
FlatFieldsPath=
Verbose=false
Cropsleep=50
Reduchigh=0.84999999999999998
Reduclow=0.84999999999999998
Detectshape=true
Fftwsigma=true

[External Editor]
EditorKind=1
GimpDir=
PhotoshopDir=
CustomEditor=
OutputDir=0
CustomOutputDir=/tmp
Float32=false
BypassOutputProfile=false

[File Browser]
BrowseOnlyRaw=false
BrowserShowsDate=true
BrowserShowsExif=true
BrowserShowsExpComp=false
BrowserShowsHidden=false
ThumbnailSize=160
ThumbnailSizeTab=160
ThumbnailSizeQueue=160
SameThumbSize=0
MaxPreviewHeight=250
MaxPreviewWidth=800
MaxCacheEntries=20000
ParseExtensions=3fr;arw;arq;cr2;cr3;crf;crw;dcr;dng;fff;iiq;jpg;jpeg;kdc;mef;mos;mrw;nef;nrw;orf;ori;pef;png;raf;raw;rw2;rwl;rwz;sr2;srf;srw;tif;tiff;x3f;
ParseExtensionsEnabled=1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;1;1;1;1;1;1;1;1;1;1;1;1;1;
ThumbnailArrangement=2
ThumbnailInterpolation=1
FavoriteDirs=
RenameTemplates=
RenameUseTemplates=false
ThumbnailZoomRatios=0.20000000000000001;0.29999999999999999;0.45000000000000001;0.59999999999999998;0.80000000000000004;1;
OverlayedFileNames=false
FilmStripOverlayedFileNames=false
ShowFileNames=true
FilmStripShowFileNames=false
InternalThumbIfUntouched=true
menuGroupRank=true
menuGroupLabel=true
menuGroupFileOperations=true
menuGroupProfileOperations=true
menuGroupExtProg=true
MaxRecentFolders=15
RecentFolders=/home/user/Pictures/subdir1;/home/user/Pictures/subdir2;/home/user/Pictures/subdir3;/home/user/Pictures;/home/user;

[Clipping Indication]
HighlightThreshold=253
ShadowThreshold=8
BlinkClipped=false

[Performance]
RgbDenoiseThreadLimit=0
ClutCacheSize=8
MaxInspectorBuffers=2
InspectorDelay=0
PreviewDemosaicFromSidecar=1
SerializeTiffRead=true
Measure=0
ChunkSizeAMAZE=2
ChunkSizeRCD=2
ChunkSizeRGB=2
ChunkSizeXT=2
ChunkSizeCA=2
ThumbnailInspectorMode=0

[Output]
Format=jpg
JpegQuality=92
JpegSubSamp=2
PngBps=8
TiffBps=16
TiffFloat=false
TiffUncompressed=true
SaveProcParams=true
FormatBatch=jpg
JpegQualityBatch=92
JpegSubSampBatch=2
PngBpsBatch=8
TiffBpsBatch=16
TiffFloatBatch=false
TiffUncompressedBatch=true
SaveProcParamsBatch=true
PathTemplate=%p1/converted/%f
PathFolder=
AutoSuffix=true
ForceFormatOpts=true
SaveMethodNum=0
UsePathTemplate=true
LastSaveAsPath=
OverwriteOutputFile=false

[Profiles]
Directory=profiles
UseBundledProfiles=true
LoadSaveProfilePath=/home/user/.config/RawTherapee/profiles
RawDefault=${G}/Auto-Matched Curve - ISO Low
ImgDefault=Neutral
FilledProfile=false
SaveParamsWithFile=true
SaveParamsToCache=false
LoadParamsFromLocation=1
CustomProfileBuilderPath=
CustomProfileBuilderKeys=0

[GUI]
Favorites=
WindowWidth=1200
WindowHeight=680
WindowX=0
WindowY=26
WindowMonitor=0
MeowMonitor=-1
MeowMaximized=true
MeowWidth=1200
MeowHeight=680
MeowX=0
MeowY=0
WindowMaximized=true
DetailWindowWidth=-1
DetailWindowHeight=-1
DirBrowserWidth=260
DirBrowserHeight=350
SortType=0
PreferencesWidth=800
PreferencesHeight=600
SaveAsDialogWidth=920
SaveAsDialogHeight=680
ToolPanelWidth=436
BrowserToolPanelWidth=465
BrowserToolPanelHeight=569
BrowserToolPanelOpened=true
EditorFilmStripOpened=true
BrowserDirPanelOpened=true
HistoryPanelWidth=330
FontFamily=default
FontSize=10
CPFontFamily=default
CPFontSize=8
PseudoHiDPISupport=false
LastPreviewScale=5
LastShowAllExif=false
PanAccelFactor=5
RememberZoomAndPan=true
LastCropSize=1
ShowHistory=true
ShowFilePanelState=0
ShowInfo=false
MainNBVertical=true
ShowClippedHighlights=false
ShowClippedShadows=false
FrameColor=0
ProcessingQueueEnbled=false
ToolPanelsExpanded=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;0;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;
ToolPanelsExpandedAutoSave=true
MultiDisplayMode=0
CutOverlayBrush=0;0;0;0.66698710612649725;
NavGuideBrush=1;0;0;1;
HistogramPosition=1
HistogramRed=true
HistogramGreen=true
HistogramBlue=true
HistogramLuma=false
HistogramChroma=false
HistogramBar=true
HistogramHeight=200
HistogramDrawMode=0
HistogramScopeType=2
HistogramShowOptionButtons=false
HistogramTraceBrightness=1
NavigatorRGBUnit=0
NavigatorHSVUnit=0
ShowFilmStripToolBar=false
FileBrowserToolbarSingleRow=false
HideTPVScrollbar=false
HistogramWorking=false
CurveBBoxPosition=1
Showtooltip=false
Complexity=2
InspectorWindow=false
ZoomOnScroll=true

[Crop Settings]
PPI=600
GuidesMode=2
AutoFit=false

[Color Management]
PrinterProfile=
PrinterIntent=1
PrinterBPC=true
ICCDirectory=/usr/share/color/icc
MonitorProfile=
AutoMonitorProfile=false
Autocielab=false
RGBcurvesLumamode_Gamut=true
Intent=1
MonitorBPC=true
AdobeRGB=RTv2_Medium
ProPhoto=RTv2_Large
WideGamut=RTv2_Wide
DCIP3=RTv2_DCIP3
sRGB=RTv4_sRGB
Beta=RTv2_Beta
Best=RTv2_Best
Rec2020=RTv2_Rec2020
Bruce=RTv2_Bruce
ACES-AP0=RTv2_ACES-AP0
ACES-AP1=RTv2_ACES-AP1
WhiteBalanceSpotSize=8
GamutICC=true
GamutLch=true
ProtectRed=60
Amountchroma=40
JzAmountchroma=40
ProtectRedH=0.29999999999999999
CRI=0
DenoiseLabgamma=2
CBDLlevel0=0
CBDLlevel123=30
Itcwb_thres=34
Itcwb_sort=false
Itcwb_greenrange=0
Itcwb_greendeltatemp=2
Itcwb_forceextra=true
Itcwb_sizereference=3
Itcwb_delta=1
Itcwb_stdobserver10=true
Itcwb_precis=5
ClutsDirectory=./cluts
Previewselection=5
Cbdlsensi=1

[Wavelet]
Edghi=3
Edglo=0.5
Limrad=20

[ICC Profile Creator]
PimariesPreset=sRGB
RedPrimaryX=0.64000000000000001
RedPrimaryY=0.33000000000000002
GreenPrimaryX=0.29999999999999999
GreenPrimaryY=0.59999999999999998
BluePrimaryX=0.14999999999999999
BluePrimaryY=0.059999999999999998
GammaPreset=Custom
Gamma=2.3999999999999999
Slope=12.92
ProfileVersion=v4
Illuminant=DEF
Description=
Copyright=Copyright RawTherapee 2023, CC0
AppendParamsToDesc=false

[Batch Processing]
AdjusterBehavior=0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;

[Sounds]
Enable=true
BatchQueueDone=complete
LngEditProcDone=window-attention
LngEditProcDoneSecs=3

[Fast Export]
fastexport_bypass_sharpening=true
fastexport_bypass_sharpenEdge=true
fastexport_bypass_sharpenMicro=true
fastexport_bypass_defringe=true
fastexport_bypass_dirpyrDenoise=true
fastexport_bypass_dirpyrequalizer=true
fastexport_bypass_wavelet=true
fastexport_raw_bayer_method=fast
fastexport_bypass_raw_bayer_dcb_iterations=true
fastexport_bypass_raw_bayer_dcb_enhance=true
fastexport_bypass_raw_bayer_lmmse_iterations=true
fastexport_bypass_raw_bayer_linenoise=true
fastexport_bypass_raw_bayer_greenthresh=true
fastexport_raw_xtrans_method=fast
fastexport_bypass_raw_ccSteps=true
fastexport_bypass_raw_ca=true
fastexport_bypass_raw_df=true
fastexport_bypass_raw_ff=true
fastexport_icm_input=(camera)
fastexport_icm_working=ProPhoto
fastexport_icm_output=
fastexport_icm_output_intent=1
fastexport_icm_output_bpc=true
fastexport_resize_enabled=true
fastexport_resize_scale=1
fastexport_resize_appliesTo=Cropped area
fastexport_resize_method=Lanczos
fastexport_resize_dataspec=3
fastexport_resize_width=900
fastexport_resize_height=900
fastexport_resize_longedge=900
fastexport_resize_shortedge=900
fastexport_use_fast_pipeline=1

[Dialogs]
LastIccDir=/usr/share/color/icc
LastDarkframeDir=
LastFlatfieldDir=
LastRgbCurvesDir=/home/user/.config/RawTherapee/profiles
LastLabCurvesDir=/home/user/.config/RawTherapee/profiles
LastRetinexDir=/home/user/.config/RawTherapee/profiles
LastDenoiseCurvesDir=/home/user/.config/RawTherapee/profiles
LastWaveletCurvesDir=/home/user/.config/RawTherapee/profiles
LastlocalCurvesDir=/home/user/.config/RawTherapee/profiles
LastPFCurvesDir=/home/user/.config/RawTherapee/profiles
LastHsvCurvesDir=/home/user/.config/RawTherapee/profiles
LastBWCurvesDir=/home/user/.config/RawTherapee/profiles
LastToneCurvesDir=/home/user/.config/RawTherapee/profiles
LastVibranceCurvesDir=/home/user/.config/RawTherapee/profiles
LastProfilingReferenceDir=/home/user/.config/RawTherapee/profiles
LastLensProfileDir=
LastICCProfCreatorDir=/home/user/.config/RawTherapee/profiles
LastCopyMovePath=
GimpPluginShowInfoDialog=true

[Lensfun]
DBDirectory=
Lawrence37 commented 1 year ago

I don't notice anything suspicious in the options file. Does it consistently crash with those options? When you write "Resetting user settings", you are only resetting the options file, right? Do you have to do anything special after a reset to re-trigger the crash other than starting and stopping the application?

4fury-c3440d8 commented 1 year ago

I just remove or rename ~/.config/RawTherapee dir. Crashes resume after a while for no apparent reason.

Lawrence37 commented 1 year ago

So it can be anything in that directory. You need to narrow it down to a specific item. options is most suspect due to GDB showing Glib::KeyFile::load_from_file, but unfortunately I am not able to reproduce the crash using the file you supplied.

radumitrescu commented 1 year ago

This issue persists.

RT always needs to crash between once and three times, each fresh boot, before finally allowing me to use it.

[radu@archlinux ~]$ rawtherapee

(rawtherapee:3602): GLib-GObject-CRITICAL **: 18:09:11.594: g_object_unref: assertion 'old_ref > 0' failed

(rawtherapee:3602): GLib-GObject-CRITICAL **: 18:09:11.594: g_object_unref: assertion 'old_ref > 0' failed
Segmentation fault (core dumped)
[radu@archlinux ~]$ rawtherapee

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.941: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.941: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.953: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.954: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.956: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:3735): Gtk-CRITICAL **: 18:09:19.957: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

I tried deleting the options file, and it doesn't fix the issue. I did several fresh installs since I opened this (for various other, unrelated issues), I tried both KDE and Gnome on Arch, also Gnome Nobara (Fedora based) and the issue is present on all distros and DEs.

Lawrence37 commented 1 year ago

I have a feeling it is related to a resource that needs to be initialized after boot like a lazy mounted network drive. Any chance you can reproduce the crash with a debug build? Even running the release build through GDB may reveal something.

radumitrescu commented 1 year ago

reproduce the crash with a debug build? Even running the release build through GDB may reveal something.

I would love to do that, but I don't understand how to go around doing this. Care to walk me through?

Lawrence37 commented 1 year ago

You can refer to this section of RawPedia. We don't provide a debug Linux version yet, so try this with your release build first before attempting to compile it yourself or getting one from a trusted 3rd party.

radumitrescu commented 1 year ago

You can refer to this section of RawPedia. We don't provide a debug Linux version yet, so try this with your release build first before attempting to compile it yourself or getting one from a trusted 3rd party.

I ran my release build through gdb, as per instructions and it never crashed once. I tried three fresh reboots and it always ran just fine.

One time, it did throw this out:


(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.281: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.281: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.309: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.309: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.325: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(rawtherapee:2881): Gtk-CRITICAL **: 09:55:52.325: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

But it otherwise launched just fine.

Lawrence37 commented 1 year ago

Well, that's a dead end. Does the AppImage from rawtherapee.com crash?

radumitrescu commented 1 year ago

Well, that's a dead end. Does the AppImage from rawtherapee.com crash?

gdb rawtherapee
GNU gdb (GDB) 13.1
Copyright (C) 2023 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 rawtherapee...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /usr/bin/rawtherapee
(No debugging symbols found in rawtherapee)                                                                        
(gdb) r
Starting program: /usr/bin/rawtherapee 
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc8000                                          
Downloading separate debug info for /usr/lib/libsigc-2.0.so.0                                                      
Downloading separate debug info for /usr/lib/libpangomm-1.4.so.1                                                   
Downloading separate debug info for /usr/lib/libcairomm-1.0.so.1                                                   
Downloading separate debug info for /usr/lib/libiptcdata.so.0                                                      
[Thread debugging using libthread_db enabled]                                                                      
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Downloading separate debug info for /usr/lib/libvorbisfile.so.3                                                    
Downloading separate debug info for /usr/lib/libvorbis.so.0                                                        
Downloading separate debug info for /usr/lib/libogg.so.0                                                           
Downloading separate debug info for /usr/lib/liblz4.so.1                                                           
[New Thread 0x7ffff21ff6c0 (LWP 51960)]                                                                            
[New Thread 0x7ffff19fe6c0 (LWP 51961)]
[New Thread 0x7ffff11fd6c0 (LWP 51962)]
[New Thread 0x7ffff09fc6c0 (LWP 51963)]
[New Thread 0x7ffff01fb6c0 (LWP 51964)]
[New Thread 0x7fffef9fa6c0 (LWP 51965)]
[New Thread 0x7fffef1f96c0 (LWP 51966)]
[New Thread 0x7fffee9f86c0 (LWP 51967)]
[New Thread 0x7fffee1f76c0 (LWP 51968)]
[New Thread 0x7fffed9f66c0 (LWP 51969)]
[New Thread 0x7fffed1f56c0 (LWP 51970)]
[New Thread 0x7fffec9f46c0 (LWP 51971)]
[New Thread 0x7fffec1f36c0 (LWP 51972)]
[New Thread 0x7fffeb9f26c0 (LWP 51973)]
[New Thread 0x7fffeb1f16c0 (LWP 51974)]
[New Thread 0x7fffea8956c0 (LWP 51975)]                                                                            
[New Thread 0x7fffea0946c0 (LWP 51976)]
[New Thread 0x7fffe98936c0 (LWP 51977)]
[New Thread 0x7fffe90926c0 (LWP 51978)]                                                                            
[Thread 0x7fffe90926c0 (LWP 51978) exited]
[New Thread 0x7fffe90926c0 (LWP 51979)]
[New Thread 0x7fffe3fff6c0 (LWP 51980)]
[Thread 0x7fffe90926c0 (LWP 51979) exited]
[New Thread 0x7fffe90926c0 (LWP 51981)]
[Thread 0x7fffe3fff6c0 (LWP 51980) exited]
[New Thread 0x7fffe3fff6c0 (LWP 52021)]                                                                            
[New Thread 0x7fffe31fc6c0 (LWP 52022)]
[Thread 0x7fffe3fff6c0 (LWP 52021) exited]
[Thread 0x7fffe31fc6c0 (LWP 52022) exited]
[New Thread 0x7fffe31fc6c0 (LWP 52023)]
[New Thread 0x7fffe3fff6c0 (LWP 52024)]
[Thread 0x7fffe31fc6c0 (LWP 52023) exited]
[Thread 0x7fffe3fff6c0 (LWP 52024) exited]
[New Thread 0x7fffe3fff6c0 (LWP 52028)]                                                                            
[New Thread 0x7fffe31fc6c0 (LWP 52029)]
[New Thread 0x7fffe25ff6c0 (LWP 52030)]
[New Thread 0x7fffe1dfe6c0 (LWP 52031)]
[New Thread 0x7fffe15fd6c0 (LWP 52032)]
[New Thread 0x7fffe0dfc6c0 (LWP 52033)]
[New Thread 0x7fffdbfff6c0 (LWP 52034)]
[New Thread 0x7fffdb7fe6c0 (LWP 52035)]
[New Thread 0x7fffdaffd6c0 (LWP 52036)]
[New Thread 0x7fffda7fc6c0 (LWP 52037)]

Thread 23 "pool-rawtherape" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe90926c0 (LWP 51981)]
g_type_check_instance (type_instance=0x7fffa0025860) at ../glib/gobject/gtype.c:4272
Downloading source file /usr/src/debug/glib2/build/../glib/gobject/gtype.c
4272              TypeNode *node = lookup_type_node_I (type_instance->g_class->g_type); 
Lawrence37 commented 1 year ago

What does the backtrace show (following the steps in RawPedia)?

Hombre57 commented 11 months ago

I thought that I've introduced a bug consequently to the merge of PR #5435, but I have this same crash, as described here, when using the metadata-exiv2 branch, which doesn't include my PR yet.

So this hotfix from 2 days ago might have solved this issue. At least it did for me so far. The problem was that some Pixbuf static variable were initialized without being protected by a mutex in a paralleled operation. So I moved the initialization in a dedicated function (like other tools does).

@radumitrescu Can you confirm the fix ?

radumitrescu commented 11 months ago

I thought that I've introduced a bug consequently to the merge of PR #5435, but I have this same crash, as described here, when using the metadata-exiv2 branch, which doesn't include my PR yet.

So this hotfix from 2 days ago might have solved this issue. At least it did for me so far. The problem was that some Pixbuf static variable were initialized without being protected by a mutex in a paralleled operation. So I moved the initialization in a dedicated function (like other tools does).

@radumitrescu Can you confirm the fix ?

I haven't much used RT recently as I've been shooting a lot of jpegs with the Fuji. I'll install the git version and do some testing.