darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.55k stars 1.13k forks source link

Scrolling in Lightable crashes darktable #10389

Closed marcsitkin closed 2 years ago

marcsitkin commented 2 years ago

darktable consistently crashing when scrolling through large selections of images on lighttable.

Darktable 3.6.1 downloaded from Manjaro Repository

$ darktable PANIC: unprotected error in call to Lua API (error in __gc metamethod (Destroying a widget which is still parented, this should never happen (box at 0x557dd377fba0) )) Aborted (core dumped)

$ inxi -F System: Host: marc-hpenvydesktop79500xx Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 Desktop: Xfce 4.16.0 Distro: Manjaro Linux Machine: Type: Desktop System: HP product: HP ENVY Desktop 795-00xx v: N/A serial: <superuser required> Mobo: HP model: 844C v: 00 serial: <superuser required> UEFI: AMI v: F.40 date: 11/21/2019 CPU: Info: 6-Core model: Intel Core i7-8700 bits: 64 type: MT MCP cache: L2: 12 MiB Speed: 900 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 9: 3594 10: 3670 11: 1096 12: 2755 Graphics: Device-1: AMD Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] driver: amdgpu v: kernel Device-2: Sunplus Innovation Full HD webcam type: USB driver: snd-usb-audio,uvcvideo Display: x11 server: X.Org 1.20.13 driver: loaded: amdgpu,ati unloaded: modesetting resolution: 2560x1600~60Hz OpenGL: renderer: Radeon RX550/550 Series (POLARIS12 DRM 3.42.0 5.14.10-1-MANJARO LLVM 12.0.1) v: 4.6 Mesa 21.2.3 Audio: Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] driver: snd_hda_intel Device-3: Sunplus Innovation Full HD webcam type: USB driver: snd-usb-audio,uvcvideo Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes Sound Server-2: PulseAudio v: 15.0 running: yes Sound Server-3: PipeWire v: 0.3.38 running: yes Network: Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter driver: rtw_8821ce IF: wlp59s0 state: down mac: ae:59:bd:04:ed:d0 Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 IF: enp60s0 state: up speed: 1000 Mbps duplex: full mac: 10:62:e5:11:97:25 Drives: Local Storage: total: 10.71 TiB used: 3.81 TiB (35.6%) ID-1: /dev/nvme0n1 vendor: A-Data model: SX8200PNP size: 476.94 GiB ID-2: /dev/sda vendor: Micron model: MTFDDAV256TBN-1AR1ZABHA size: 238.47 GiB ID-3: /dev/sdb vendor: Seagate model: ST1500DL003-9VT16L size: 1.36 TiB ID-4: /dev/sdc vendor: Western Digital model: WD30EZRX-00SPEB0 size: 2.73 TiB ID-5: /dev/sdd type: USB vendor: Western Digital model: WD40EZRZ-22GXCB0 size: 3.64 TiB ID-6: /dev/sde type: USB vendor: Western Digital model: WD15EARS-00MVWB0 size: 1.36 TiB ID-7: /dev/sdf type: USB vendor: Hitachi model: HDT721010SLA360 size: 931.51 GiB Partition: ID-1: / size: 468.16 GiB used: 145.24 GiB (31.0%) fs: ext4 dev: /dev/nvme0n1p2 ID-2: /boot/efi size: 299.4 MiB used: 300 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 Swap: Alert: No swap data was found. Sensors: System Temperatures: cpu: 60.0 C mobo: 27.8 C gpu: amdgpu temp: 35.0 C Fan Speeds (RPM): N/A gpu: amdgpu fan: 2283 Info: Processes: 373 Uptime: 6d 9h 59m Memory: 31.22 GiB used: 4.11 GiB (13.2%) Shell: Bash inxi: 3.3.08 Lua Scripts -gimp running, all others stopped.

AlicVB commented 2 years ago

I continue the discussion here in order to avoid hijacking @dopro17 issue #10575 : your issues seem different, Considering your output, there's 2 issues in one here : one with autapplied presets and one with lua...

Can you report how it works for you in the following cases :

  1. remove completely .config/darktable (backup first) if you don't have crash anymore, then
  2. restore the problematic config dir and try to remove (backup) your luarc file
  3. in dt prefs, remove all autoapplied presets

Hopefully that will point us to the root cause of the issue (pango is not involved as the issue was with 1.50) Thanks !

marcsitkin commented 2 years ago

I'll give that a try. However, on Wm Ferguson's advice, I've already removed my luarc file and installed from git hub a new one with updated scripts. It might be a day or so before I get back to you. Thanks.

On Thu, Dec 9, 2021 at 5:27 PM AlicVB @.***> wrote:

I continue the discussion here in order to avoid hijacking @dopro17 https://github.com/dopro17 issue #10575 https://github.com/darktable-org/darktable/issues/10575 : your issues seem different, Considering your output, there's 2 issues in one here : one with autapplied presets and one with lua...

Can you report how it works for you in the following cases :

  1. remove completely .config/darktable (backup first) if you don't have crash anymore, then
  2. restore the problematic config dir and try to remove (backup) your luarc file
  3. in dt prefs, remove all autoapplied presets

Hopefully that will point us to the root cause of the issue (pango is not involved as the issue was with 1.50) Thanks !

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/10389#issuecomment-990350884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN64KKR7LRHHA7GN437IZNTUQEUMBANCNFSM5H3TGKEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Marc Sitkin 50 images from Iceland 2021 https://marcsitkin.smugmug.com/Iceland/Iceland-2021-50-Images/ Marc Sitkin Photography Web Site http://marcsitkin.smugmug.com Instagram https://www.instagram.com/marcsitkin/

marcsitkin commented 2 years ago

Ok, here's what I've done:

  1. renamed my .conf/darktable folder
  2. launched darktable
  3. set up some basic preferences (none to auto apply)
  4. checked that there were no auto apply presets
  5. installed the lua scripts via the script manager
  6. turned on openCL
  7. re-imported about 15,000 images, including folders from pre-dt days (full of lightroom xmps)
  8. spent 6 hours total in 3 sessions editing metadata, images and exporting
  9. recreated some of my presets (watermarks, module presets, export presets
  10. used dt while other programs were running in the background, such as firefox, nemo, backintime, timeshift, blobBU (for cloud BU), shortwave-in other words, my usual workaday activities
  11. Exported over 200 files to jpg in one operation.

So far, no crashes. Only issues raised in the terminal output were liek this: [rawspeed] (P2030206-Edit.tif) virtual rawspeed::RawImage rawspeed::OrfDecoder::decodeRawInternal(), line 107: Unsupported compression Magick: Sorry, can not handle image with PhotometricInterpretation=34892. (). [dt_imageio_large_thumbnail GM] thumbnail not found? [rawspeed] (P2030250-Edit.tif) virtual rawspeed::RawImage rawspeed::OrfDecoder::decodeRawInternal(), line 107: Unsupported compression

So I'd say that my system is once again stable. Assuming one of the config or db files was corrupt, and knowing my lua install was broken, I'll rebuild the necessary presets I need and continue forward.

I still have the renamed .config/darktable folder if you think it is of any help, but I don't plan on reverting back to it.

Thanks for you're help. I wonder if this reset is something I should writ up for the manual, in case someone else runs into these issues. I'll bring it up with Mica on the pixl.us forum

Thanks again for your help, it's nice to be up and running again! Let me know if you need any follow up from me.

ptilopteri commented 2 years ago

w/o observing any "crashes"/segfaults ???

marcsitkin commented 2 years ago

I finished up my post after hitting return by mistake. No segfaults or crashes whatsoever.

On Sat, Dec 11, 2021 at 10:55 AM ptilopteri @.***> wrote:

w/o observing any "crashes"/segfaults ???

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/10389#issuecomment-991691974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN64KKUMSEOMPZGFOOCMKPLUQNX5ZANCNFSM5H3TGKEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Marc Sitkin 50 images from Iceland 2021 https://marcsitkin.smugmug.com/Iceland/Iceland-2021-50-Images/ Marc Sitkin Photography Web Site http://marcsitkin.smugmug.com Instagram https://www.instagram.com/marcsitkin/