You are not logged in.

#1 2022-05-16 23:28:00

iterator
Member
Registered: 2015-04-16
Posts: 12

[SOLVED] Meld crash with i3

I'm having an issue getting meld to run on my Arch install. I'm using i3-gaps on lightdm.

The error I'm receiving is a coredump:

Trace/breakpoint trap (core dumped)

Nothing else is displayed (graphical or stdout/stderr).

I suspect there is some dependency I don't have due to using i3, but I'm not sure what. The only related issue I've seen is Meld is displaying horribly in i3. From that post I experimented with changing the icon set around, and ultimately back to the Adwaita default - to no avail.

Any suggestions would be much appreciated!

GTK settings

[Settings]
gtk-application-prefer-dark-theme=0
gtk-theme-name=Adwaita-dark
gtk-icon-theme-name=Adwaita
gtk-font-name=Cantarell 11
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb

Version

5.17.6-arch1-1

Packages

meld 3.20.4-2
lightdm 1:1.30.0-4
i3-gaps 4.20.1-2
i3blocks 1.5-3
i3lock 2.13-1
i3status 2.14-1
picom 9.1-3

Last edited by iterator (2022-05-20 23:12:44)

Offline

#2 2022-05-17 05:52:57

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Meld crash with i3

The error I'm receiving is a coredump:

Well, I guess it would be helpful to look at it.
https://wiki.archlinux.org/title/Core_d … _core_dump

Offline

#3 2022-05-17 18:50:14

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] Meld crash with i3

seth wrote:

The error I'm receiving is a coredump:

Well, I guess it would be helpful to look at it.
https://wiki.archlinux.org/title/Core_d … _core_dump

Thank you. I'm used to a much more manual effort with coredumps. Very impressed with coredumpctl. That being said, I'm not sure what to look at from here.

Stack trace

(gdb) bt
#0  0x00007f6cf9e2d540 in g_log_structured_array () at /usr/lib/libglib-2.0.so.0
#1  0x00007f6cf9e2d80a in g_log_default_handler () at /usr/lib/libglib-2.0.so.0
#2  0x00007f6cf9e2ecdd in g_logv () at /usr/lib/libglib-2.0.so.0
#3  0x00007f6cf9e2efe4 in g_log () at /usr/lib/libglib-2.0.so.0
#4  0x00007f6cf9be2adb in  () at /usr/lib/libgio-2.0.so.0
#5  0x00007f6cf9d7196f in  () at /usr/lib/libgobject-2.0.so.0
#6  0x00007f6cf9d71dbc in  () at /usr/lib/libgobject-2.0.so.0
#7  0x00007f6cf9d73503 in g_object_new_valist () at /usr/lib/libgobject-2.0.so.0
#8  0x00007f6cf9d73a6e in g_object_new () at /usr/lib/libgobject-2.0.so.0
#9  0x00007f6cf9d49536 in  () at /usr/lib/libffi.so.8
#10 0x00007f6cf9d46037 in  () at /usr/lib/libffi.so.8
#11 0x00007f6cf9f58785 in  () at /usr/lib/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so
#12 0x00007f6cf9f592fb in  () at /usr/lib/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so
#13 0x00007f6cf9f571c6 in  () at /usr/lib/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so
#14 0x00007f6cf9f4b99e in  () at /usr/lib/python3.10/site-packages/gi/_gi.cpython-310-x86_64-linux-gnu.so
#15 0x00007f6cfab84ddb in _PyObject_MakeTpCall () at /usr/lib/libpython3.10.so.1.0
#16 0x00007f6cfab801c5 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.10.so.1.0
#17 0x00007f6cfab8b8cc in _PyFunction_Vectorcall () at /usr/lib/libpython3.10.so.1.0
#18 0x00007f6cfab7ab43 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.10.so.1.0
#19 0x00007f6cfab8b8cc in _PyFunction_Vectorcall () at /usr/lib/libpython3.10.so.1.0
#20 0x00007f6cfab7f95b in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.10.so.1.0
#21 0x00007f6cfab8b8cc in _PyFunction_Vectorcall () at /usr/lib/libpython3.10.so.1.0
#22 0x00007f6cfab7ab43 in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.10.so.1.0
#23 0x00007f6cfab79752 in  () at /usr/lib/libpython3.10.so.1.0
#24 0x00007f6cfac30f64 in PyEval_EvalCode () at /usr/lib/libpython3.10.so.1.0
#25 0x00007f6cfac40df4 in  () at /usr/lib/libpython3.10.so.1.0
#26 0x00007f6cfac3c7bb in  () at /usr/lib/libpython3.10.so.1.0
#27 0x00007f6cfaad8c13 in  () at /usr/lib/libpython3.10.so.1.0
#28 0x00007f6cfaad8893 in _PyRun_SimpleFileObject () at /usr/lib/libpython3.10.so.1.0
#29 0x00007f6cfaad9228 in _PyRun_AnyFileObject () at /usr/lib/libpython3.10.so.1.0
#30 0x00007f6cfac4d6ab in Py_RunMain () at /usr/lib/libpython3.10.so.1.0
#31 0x00007f6cfac2198d in Py_BytesMain () at /usr/lib/libpython3.10.so.1.0
#32 0x00007f6cfa85c290 in __libc_start_call_main () at /usr/lib/libc.so.6
#33 0x00007f6cfa85c34a in __libc_start_main_impl () at /usr/lib/libc.so.6
#34 0x000055d461a42045 in _start ()

Last frame

(gdb) i f 0
Stack frame at 0x7fff59418c00:
 rip = 0x7f6cf9e2d540 in g_log_structured_array; saved rip = 0x7f6cf9e2d80a
 called by frame at 0x7fff59418c80
 Arglist at 0x7fff59418ba8, args: 
 Locals at 0x7fff59418ba8, Previous frame's sp is 0x7fff59418c00
 Saved registers:
  rbx at 0x7fff59418bc8, rbp at 0x7fff59418bd0, r12 at 0x7fff59418bd8, r13 at 0x7fff59418be0, r14 at 0x7fff59418be8, r15 at 0x7fff59418bf0, rip at 0x7fff59418bf8

Offline

#4 2022-05-17 19:29:32

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Meld crash with i3

Looks like https://gitlab.gnome.org/GNOME/meld/-/issues/610
glib certainly wants to print some message (that'd not be the sigtrap) - did you install any python packages w/ pip?
The system is completely updated (no old python packages) - "pacman -Syu"?

strace -fo /tmp/meld.strace /usr/bin/meld

might provide further insight into what files are being tried here (assuming this fits the linked bug)

Offline

#5 2022-05-19 16:30:52

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] Meld crash with i3

Thank you, that did provide some insight. It looks like it's failing to find a glib-2 file (gschemas.compiled).

703152 openat(AT_FDCWD, "glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 openat(AT_FDCWD, "/home/user/.local/share/flatpak/exports/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 openat(AT_FDCWD, "/var/lib/flatpak/exports/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 openat(AT_FDCWD, "/home/user/.local/share/flatpak/exports/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 openat(AT_FDCWD, "/var/lib/flatpak/exports/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 openat(AT_FDCWD, "/home/user/.local/share/glib-2.0/schemas/gschemas.compiled", O_RDONLY) = -1 ENOENT (No such file or directory)
703152 futex(0x7f76c6c130a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
703152 --- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
703152 +++ killed by SIGTRAP (core dumped) +++

That file does exist under /usr/share/glib-2.0/schemas/gschemas.compiled, so I linked it into /home/user/.local/share/glib-2.0/schemas/gschemas.compiled to see if that would resolve the issue. Now it's getting beyond that point, unable to find some locale files that I have confirmed don't exist.

795155 futex(0x7f5e6e7f10a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
795155 newfstatat(AT_FDCWD, "/home/user/.local/share/icons/hicolor/index.theme", 0x7ffeb78ac030, 0) = -1 ENOENT (No such file or directory)
795155 newfstatat(AT_FDCWD, "/home/user/.icons/hicolor/index.theme", 0x7ffeb78ac030, 0) = -1 ENOENT (No such file or directory)
795155 newfstatat(AT_FDCWD, "/var/lib/flatpak/exports/share/icons/hicolor/index.theme", {st_mode=S_IFREG|0644, st_size=55507, ...}, 0) = 0
795155 futex(0x7f5e6e7f10a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
795155 futex(0x7f5e6e7f10a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
795155 openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/gdk-pixbuf.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
795155 write(2, "**\nGtk:ERROR:../gtk/gtk/gtkiconh"..., 232) = 232
795155 newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x5), ...}, AT_EMPTY_PATH) = 0
795155 write(1, "Bail out! Gtk:ERROR:../gtk/gtk/g"..., 239) = 239
795155 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
795155 gettid()                         = 795155
795155 getpid()                         = 795155
795155 tgkill(795155, 795155, SIGABRT)  = 0
795155 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=795155, si_uid=1000} ---
795157 <... poll resumed>)              = ? <unavailable>
795163 <... futex resumed>)             = ? <unavailable>
795164 <... futex resumed>)             = ?
795158 <... poll resumed> <unfinished ...>) = ?
795159 <... poll resumed> <unfinished ...>) = ?
795164 +++ killed by SIGABRT (core dumped) +++
795163 +++ killed by SIGABRT (core dumped) +++
795159 +++ killed by SIGABRT (core dumped) +++
795158 +++ killed by SIGABRT (core dumped) +++
795157 +++ killed by SIGABRT (core dumped) +++
795155 +++ killed by SIGABRT (core dumped) +++

Offline

#6 2022-05-19 18:44:58

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Meld crash with i3

% pacman -F gdk-pixbuf.mo
extra/gdk-pixbuf2

What meld is this?
https://aur.archlinux.org/packages/meld-git or some flatschpak?

Offline

#7 2022-05-20 15:28:17

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] Meld crash with i3

This was using the meld package, but not meld-git

Name            : meld
Version         : 3.20.4-2
Description     : Compare files, directories and working copies
Architecture    : any
URL             : https://meldmerge.org/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : python-gobject  python-cairo  gtksourceview3  gsettings-desktop-schemas  dconf
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.77 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : Thu 02 Dec 2021 04:37:09 PM MST
Install Date    : Fri 20 May 2022 09:10:46 AM MDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I tried the aur package and had the same result.

Name            : meld-git
Version         : 3.21.1.102.g59a3cddd-1
Description     : Visual diff and merge tool
Architecture    : any
URL             : http://meldmerge.org/
Licenses        : GPL
Groups          : None
Provides        : meld
Depends On      : dconf  glib2  gsettings-desktop-schemas  gtk3  gtksourceview4  python-cairo
                  python-gobject
Optional Deps   : python-dbus: open a new tab in an already running instance [installed]
Required By     : None
Optional For    : None
Conflicts With  : meld  meld-dev
Replaces        : None
Installed Size  : 3.09 MiB
Packager        : Unknown Packager
Build Date      : Fri 20 May 2022 09:16:44 AM MDT
Install Date    : Fri 20 May 2022 09:17:26 AM MDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
% pacman -F gdk-pixbuf.mo | grep usr/share/locale/en
    usr/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo
    usr/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo
    usr/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo

My locale is set to en_US.UTF-8.

Offline

#8 2022-05-20 15:50:13

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Meld crash with i3

I guess the pixbuf message object isn't the critical element (you'd get the untranslated message which is US english)

795155 write(2, "**\nGtk:ERROR:../gtk/gtk/gtkiconh"..., 232) = 232
795155 newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x5), ...}, AT_EMPTY_PATH) = 0
795155 write(1, "Bail out! Gtk:ERROR:../gtk/gtk/g"..., 239) = 239

There should be some error message when starting meld now?

Offline

#9 2022-05-20 19:08:28

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] Meld crash with i3

Yes, I thought I had included that :-/.

**
Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

Interestingly, if I try to start meld from PATH, or using `dmenu_run` from the CLI and then meld, I get the above error. However, if I use dmenu through the Alt + d shortcut, Meld opens fine. It also opens fine if I use `sudo meld`, but when I do that the theme is different (light) than when it's opened through dmenu.


I ran through the permissions changes you mentioned in this seemingly related post. I also updated the mime database, to no avail.

Last edited by iterator (2022-05-20 19:14:59)

Offline

#10 2022-05-20 21:04:58

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] Meld crash with i3

Some environment, possibly even indeed the PATH

diff -pru <(tr '\0' '\n' < /proc/$(pidof i3)/environ | sort) <(printenv | sort)

Offline

#11 2022-05-20 22:47:48

iterator
Member
Registered: 2015-04-16
Posts: 12

Re: [SOLVED] Meld crash with i3

seth wrote:

Some environment, possibly even indeed the PATH

diff -pru <(tr '\0' '\n' < /proc/$(pidof i3)/environ | sort) <(printenv | sort)

Diffing the environment pointed out that XDG_DATA_DIRS was exported in my environment. Fault being from an rsync of a home directory on a different system.

Meld has returned to me, and this is solved! Thank you very much for sticking with me through the journey.

Last edited by iterator (2022-05-20 22:48:32)

Offline

#12 2022-05-20 23:08:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Meld crash with i3

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB