darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Crash with new Ubuntu 24.04

Open Suppenlaender opened this issue 1 year ago • 12 comments

Describe the bug

After installing the new Ubuntu version 24.04 LTS darktable crashes. darktable_bt_96IFN2.txt After launching everthing seems fine. I can also export the last imported pictures. But for example when I launch the 'preferences' or want open the 'darkroom' the application crashes completly

Steps to reproduce

  1. launch darktable
  2. select "preferences" button
  3. darktable crashes

Expected behavior

No response

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

distro packaging

darktable version

4.6.1

What OS are you using?

Linux

What is the version of your OS?

Ubuntu 24.04 LTS

Describe your system?

AMD Phenom(tm) II X4 955 Processor RX570 12 GB RAM

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

RX570

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Suppenlaender avatar Apr 30 '24 12:04 Suppenlaender

Looks like something to do with font handling.

The first trouble-shooting step is to run darktable with default configuration. Rename darktablerc (in ~/.config/darktable if a native install, somewhere under ~/.var if a flatpak) to something like darktablerc.bak, then try running darktable.

ralfbrown avatar Apr 30 '24 14:04 ralfbrown

I've built master on 24.04 (in a VM)_ and it runs without problems, including editing images and opening/closing/changing preferences.

wpferguson avatar Apr 30 '24 15:04 wpferguson

Looks like something to do with font handling.

The first trouble-shooting step is to run darktable with default configuration. Rename darktablerc (in ~/.config/darktable if a native install, somewhere under ~/.var if a flatpak) to something like darktablerc.bak, then try running darktable.

I tried your proposal. The only thing what changed is that I can start the preferences dialog. If I start editing(darkroom) then then application crashes completly. Btw., I used v4.6.1 in ubuntu 23.10 whitout any problems (version 4.6.1). Since 24.04 I have this problems. I tried the version which comes which the ubuntu install packages (v4.6.1), also the version from the ppa https://ppa.launchpadcontent.net/ubuntuhandbook1/darktable (v4.6.1), and also self compiled versions 4.6.1 and darktable-nightly from https://github.com/darktable-org/darktable. I also start the application w/o opencl, always the same result.

Suppenlaender avatar May 01 '24 07:05 Suppenlaender

and also self compiled

I updated the package install commands on the wiki (https://github.com/darktable-org/darktable/wiki/Build-instructions-for-Ubuntu) to work with 24.04

wpferguson avatar May 01 '24 14:05 wpferguson

Looks like something to do with font handling.

The first trouble-shooting step is to run darktable with default configuration. Rename darktablerc (in ~/.config/darktable if a native install, somewhere under ~/.var if a flatpak) to something like darktablerc.bak, then try running darktable.

Nothing todo with font handling. After the crash syslog reports

kernel: darktable[44520]: segfault at 0 ip 0000000000000000 sp 00007fffa5a15a88 error 14 likely on CPU 1 (core 1, socket 0 kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd6

Suppenlaender avatar May 02 '24 08:05 Suppenlaender

and also self compiled

I updated the package install commands on the wiki (https://github.com/darktable-org/darktable/wiki/Build-instructions-for-Ubuntu) to work with 24.04

What do you want to tell me? This has nothing to do with the failure!

Suppenlaender avatar May 02 '24 12:05 Suppenlaender

darktable -d common

Okay, attached the output after selecting darkroom/editing. dt.txt

Suppenlaender avatar May 02 '24 12:05 Suppenlaender

Both of your backtraces show that the crash happens in pango_coverage_get inside libpango, which "is a library for layout and rendering of text, with an emphasis on internationalization", while trying to compute a Gtk widget's width. That's due to either the font in use or some very odd text being used in the widget.

Since resetting darktablerc cleared up the crash in the preferences dialog but not darkroom view, it's likely that you have a corrupted edit history on the crashing image(s). Do you still get a crash when you start with a completely fresh setup with a newly-imported image that doesn't have a sidecar? Copy some raw image to /tmp/foo.{ext}, then run darktable --configdir /tmp/dt-test /tmp/foo.{ext} (assuming /tmp/dt-test doesn't exist or at least is completely empty).

If that works without crashing, then you should try resetting the edit histories for any images that cause a crash when you start darktable normally -- select them in lighttable view, then use discard history in the history stack module in the right pane.

ralfbrown avatar May 02 '24 14:05 ralfbrown

darktable --configdir /tmp/dt-test /tmp/foo.

If I run 'darktable --configdir /tmp/dt-test /tmp/foo.nef' the application crash immediately after launching darktable_bt_FEB0M2.txt

For now I helped me with installing the flatpak app for finishing my image developing. But this is terrible slow, no opencl support.

Suppenlaender avatar May 02 '24 15:05 Suppenlaender

I have had exactely the same problem. Solved by going in Settings>Apps>Darktable where i have disabled opengl, and Darktable wors fine. NO more crashes !

GateaD avatar May 12 '24 07:05 GateaD

I forgot to say, my Darktable is a snap version, installed via App Center.

GateaD avatar May 12 '24 07:05 GateaD

I have had exactely the same problem. Solved by going in Settings>Apps>Darktable where i have disabled opengl, and Darktable wors fine. NO more crashes !

Obvisealy you mean "opencl". But as I described before it has nothing to do with that for my system

Suppenlaender avatar May 14 '24 06:05 Suppenlaender

Now I has found a workaround for my problem. The note for a font-libpango-libgtk3 problem left me no peace. So I deinstalled all fonts-noto (in one of the crash reports I see a note to this font family) from my system and now darktable doesnt crash anymore. Curiously enough at other systems that I have running these problems are not exists with istalled noto fonts. So I think the deinstallation of a font group only bypasses the true problem. I think it have to do with the quantity of installed fonts at all.

Suppenlaender avatar May 14 '24 06:05 Suppenlaender