I’ve postet this issue to the Sublime Text forum here, but as it it turned out it seems to be caused by GTK.
Whenever the monitor layout changes (insert/remove Notebook into/from docking station), some Sublime Text windows freeze and about the lower third of the frozen window is either black or shows the desktop wallpaper (even if there are other windows behind it). The issue has been there for quite some time and Sublime Text is the only application that shows it.
I have two external screens connected to the notebook (with the notebook screen off), the first one and the notebook have the same resolution, the second screen has a different one. It seems that the problem only occurs when I have a Sublime Text window on this second screen.
Sublime Text 4 (installed from AUR) on Manjaro Linux with KDE Plasma desktop. GTK3 version is 1:3.24.38-1.
Is it indeed caused by a bug in GTK?
Here is a backtrace captured with gdb:
Thread 1 "sublime_text" received signal SIGSEGV, Segmentation fault.
0x00007ffff6326402 in cairo_surface_unmap_image () from /usr/lib/libcairo.so
(gdb) bt
#0 0x00007ffff6326402 in cairo_surface_unmap_image () at /usr/lib/libcairo.so
#1 0x00007ffff5b26a6a in gdk_gl_texture_from_surface (surface=0x7ffff63bc040, region=0x7fffbe24a4a0)
at ../gtk/gdk/gdkgl.c:809
#2 0x00007ffff5b30e5a in gdk_window_end_paint_internal (window=window@entry=0x7fffeee90500)
at ../gtk/gdk/gdkwindow.c:3060
#3 0x00007ffff5b30f77 in gdk_window_end_draw_frame (context=0x7fffd7b5c1f0, window=0x7fffeee90500)
at ../gtk/gdk/gdkwindow.c:3311
#4 gdk_window_end_draw_frame (window=0x7fffeee90500, context=0x7fffd7b5c1f0) at ../gtk/gdk/gdkwindow.c:3294
#5 0x00007ffff515991b in gtk_main_do_event (event=0x7fffffffd1b0) at ../gtk/gtk/gtkmain.c:1844
#6 gtk_main_do_event (event=<optimized out>) at ../gtk/gtk/gtkmain.c:1691
#7 0x00007ffff5b1bb87 in _gdk_event_emit (event=0x7fffffffd1b0) at ../gtk/gdk/gdkevents.c:73
#8 _gdk_event_emit (event=0x7fffffffd1b0) at ../gtk/gdk/gdkevents.c:67
#9 0x00007ffff5b2d982 in _gdk_window_process_updates_recurse_helper
(window=0x7fffeee90500, expose_region=<optimized out>) at ../gtk/gdk/gdkwindow.c:3874
#10 0x00007ffff5b31fd8 in gdk_window_process_updates_internal (window=0x7fffeee90500)
at ../gtk/gdk/gdkwindow.c:4020
#11 0x00007ffff5b321f5 in gdk_window_process_updates_with_mode
(recurse_mode=<optimized out>, window=<optimized out>) at ../gtk/gdk/gdkwindow.c:4215
#12 gdk_window_process_updates_with_mode (window=<optimized out>, recurse_mode=<optimized out>)
at ../gtk/gdk/gdkwindow.c:4186
#13 0x00007ffff7f45b73 in () at /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff7f45c77 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff7f45d34 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff5b28e69 in _gdk_frame_clock_emit_paint (frame_clock=0x7fffef0680f0)
at ../gtk/gdk/gdkframeclock.c:657
#17 gdk_frame_clock_paint_idle (data=0x7fffef0680f0) at ../gtk/gdk/gdkframeclockidle.c:597
#18 0x00007ffff5b156ae in gdk_threads_dispatch (data=0x7fffbe253240) at ../gtk/gdk/gdk.c:769
#19 0x00007ffff7e2139e in () at /usr/lib/libglib-2.0.so.0
#20 0x00007ffff7e1ff19 in () at /usr/lib/libglib-2.0.so.0
#21 0x00007ffff7e7e2b7 in () at /usr/lib/libglib-2.0.so.0
#22 0x00007ffff7e20b47 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#23 0x00007ffff5156f6f in gtk_main () at ../gtk/gtk/gtkmain.c:1329
#24 0x0000555555b1eacb in ()
#25 0x0000555555952d15 in ()
#26 0x00007ffff794ecd0 in __libc_start_call_main
(main=main@entry=0x55555594f61b, argc=argc@entry=3, argv=argv@entry=0x7fffffffe138)
at ../sysdeps/nptl/libc_start_call_main.h:58
#27 0x00007ffff794ed8a in __libc_start_main_impl
(main=0x55555594f61b, argc=3, argv=0x7fffffffe138, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe128) at ../csu/libc-start.c:360
#28 0x00005555558a623a in ()
It’s impossible to say: people familiar with Sublime will have to investigate.
Just because a backtrace includes GTK symbols doesn’t mean GTK is at fault: GTK3 doesn’t draw with GL by default, that’s something in the application’s realm.
That’s pretty much what I did and how I got the backtrace in my initial post, I just used bt instead of bt full. Let me know if it is important to use bt full.
I thought only the last part was relevant, but here is the full output.
And sorry for the late reply, somehow I didn’t get notified.
Part 1 (because of forum character limit):
gdb --args /opt/sublime_text/sublime_text --multiinstance --debug
GNU gdb (GDB) 13.2
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 /opt/sublime_text/sublime_text...
(No debugging symbols found in /opt/sublime_text/sublime_text)
(gdb) r
Starting program: /opt/sublime_text/sublime_text --multiinstance --debug
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 /lib64/ld-linux-x86-64.so.2
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc8000
Downloading separate debug info for /usr/lib/librt.so.1
Downloading separate debug info for /usr/lib/libdl.so.2
Downloading separate debug info for /usr/lib/libgobject-2.0.so.0
Downloading separate debug info for /usr/lib/libglib-2.0.so.0
Downloading separate debug info for /usr/lib/libGL.so.1
Downloading separate debug info for /usr/lib/libX11.so.6
Downloading separate debug info for /usr/lib/libm.so.6
Downloading separate debug info for /usr/lib/libpthread.so.0
Downloading separate debug info for /usr/lib/libc.so.6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Downloading separate debug info for /usr/lib/libffi.so.8
Downloading separate debug info for /usr/lib/libpcre2-8.so.0
Downloading separate debug info for /usr/lib/libGLdispatch.so.0
Downloading separate debug info for /usr/lib/libGLX.so.0
Downloading separate debug info for /usr/lib/libxcb.so.1
Downloading separate debug info for /usr/lib/libXau.so.6
Downloading separate debug info for /usr/lib/libXdmcp.so.6
Downloading separate debug info for /usr/lib/libcurl.so
Downloading separate debug info for /usr/lib/libnghttp2.so.14
Downloading separate debug info for /usr/lib/libidn2.so.0
Downloading separate debug info for /usr/lib/libssh2.so.1
Downloading separate debug info for /usr/lib/libpsl.so.5
Downloading separate debug info for /usr/lib/libssl.so.3
Downloading separate debug info for /usr/lib/libcrypto.so.3
Downloading separate debug info for /usr/lib/libgssapi_krb5.so.2
Downloading separate debug info for /usr/lib/libzstd.so.1
Downloading separate debug info for /usr/lib/libbrotlidec.so.1
Downloading separate debug info for /usr/lib/libz.so.1
Downloading separate debug info for /usr/lib/libunistring.so.5
Downloading separate debug info for /usr/lib/libkrb5.so.3
Downloading separate debug info for /usr/lib/libk5crypto.so.3
Downloading separate debug info for /usr/lib/libcom_err.so.2
Downloading separate debug info for /usr/lib/libkrb5support.so.0
Downloading separate debug info for /usr/lib/libkeyutils.so.1
Downloading separate debug info for /usr/lib/libresolv.so.2
Downloading separate debug info for /usr/lib/libbrotlicommon.so.1
Downloading separate debug info for /usr/lib/libcairo.so
Downloading separate debug info for /usr/lib/libpng16.so.16
Downloading separate debug info for /usr/lib/libfontconfig.so.1
Downloading separate debug info for /usr/lib/libfreetype.so.6
Downloading separate debug info for /usr/lib/libXext.so.6
Downloading separate debug info for /usr/lib/libXrender.so.1
Downloading separate debug info for /usr/lib/libxcb-render.so.0
Downloading separate debug info for /usr/lib/libxcb-shm.so.0
Downloading separate debug info for /usr/lib/libpixman-1.so.0
Downloading separate debug info for /usr/lib/libexpat.so.1
Downloading separate debug info for /usr/lib/libbz2.so.1.0
Downloading separate debug info for /usr/lib/libharfbuzz.so.0
Downloading separate debug info for /usr/lib/libgraphite2.so.3
Downloading separate debug info for /usr/lib/libpango-1.0.so
Downloading separate debug info for /usr/lib/libgio-2.0.so.0
Downloading separate debug info for /usr/lib/libfribidi.so.0
Downloading separate debug info for /usr/lib/libthai.so.0
Downloading separate debug info for /usr/lib/libgmodule-2.0.so.0
Downloading separate debug info for /usr/lib/libmount.so.1
Downloading separate debug info for /usr/lib/libdatrie.so.1
Downloading separate debug info for /usr/lib/libblkid.so.1
Downloading separate debug info for /usr/lib/libpangocairo-1.0.so
Downloading separate debug info for /usr/lib/libpangoft2-1.0.so.0
Downloading separate debug info for /usr/lib/libgdk-3.so
Downloading separate debug info for /usr/lib/libgdk_pixbuf-2.0.so.0
Downloading separate debug info for /usr/lib/libcairo-gobject.so.2
Downloading separate debug info for /usr/lib/libepoxy.so.0
Downloading separate debug info for /usr/lib/libxkbcommon.so.0
Downloading separate debug info for /usr/lib/libwayland-client.so.0
Downloading separate debug info for /usr/lib/libwayland-cursor.so.0
Downloading separate debug info for /usr/lib/libwayland-egl.so.1
Downloading separate debug info for /usr/lib/libXi.so.6
Downloading separate debug info for /usr/lib/libXcursor.so.1
Downloading separate debug info for /usr/lib/libXdamage.so.1
Downloading separate debug info for /usr/lib/libXfixes.so.3
Downloading separate debug info for /usr/lib/libXcomposite.so.1
Downloading separate debug info for /usr/lib/libXrandr.so.2
Downloading separate debug info for /usr/lib/libXinerama.so.1
Downloading separate debug info for /usr/lib/libjpeg.so.8
Downloading separate debug info for /usr/lib/libtiff.so.6
Downloading separate debug info for /usr/lib/liblzma.so.5
Downloading separate debug info for /usr/lib/libjbig.so.2.1
Downloading separate debug info for /usr/lib/libgtk-3.so
Downloading separate debug info for /usr/lib/libatk-1.0.so.0
Downloading separate debug info for /usr/lib/libatk-bridge-2.0.so.0
Downloading separate debug info for /usr/lib/libcloudproviders.so.0
Downloading separate debug info for /usr/lib/libtracker-sparql-3.0.so.0
Downloading separate debug info for /usr/lib/libatspi.so.0
Downloading separate debug info for /usr/lib/libdbus-1.so.3
Downloading separate debug info for /usr/lib/libjson-glib-1.0.so.0
Downloading separate debug info for /usr/lib/libxml2.so.2
Downloading separate debug info for /usr/lib/libsqlite3.so.0
Downloading separate debug info for /usr/lib/libsystemd.so.0
Downloading separate debug info for /usr/lib/libicuuc.so.73
Downloading separate debug info for /usr/lib/libcap.so.2
Downloading separate debug info for /usr/lib/libgcrypt.so.20
Downloading separate debug info for /usr/lib/liblz4.so.1
Downloading separate debug info for /usr/lib/libicudata.so.73
Downloading separate debug info for /usr/lib/libgpg-error.so.0
[New Thread 0x7ffff24d96c0 (LWP 452614)]
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libxapp-gtk3-module.so
Downloading separate debug info for /usr/lib/libxapp.so.1
Downloading separate debug info for /usr/lib/libgnomekbdui.so.8
Downloading separate debug info for /usr/lib/libgnomekbd.so.8
Downloading separate debug info for /usr/lib/libxklavier.so.16
Downloading separate debug info for /usr/lib/libxkbfile.so.1
[Thread 0x7ffff24d96c0 (LWP 452614) exited]
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libcanberra-gtk-module.so
Downloading separate debug info for /usr/lib/libcanberra-gtk3.so.0
Downloading separate debug info for /usr/lib/libcanberra.so.0
Downloading separate debug info for /usr/lib/libvorbisfile.so.3
Downloading separate debug info for /usr/lib/libtdb.so.1
Downloading separate debug info for /usr/lib/libltdl.so.7
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/gio/modules/libgvfsdbus.so
Downloading separate debug info for /usr/lib/gvfs/libgvfscommon.so
[New Thread 0x7ffff24d96c0 (LWP 452615)]
[New Thread 0x7ffff0e806c0 (LWP 452616)]
[New Thread 0x7ffff065c6c0 (LWP 452617)]
(sublime_text:452608): Gtk-WARNING **: 08:48:46.699: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libcolorreload-gtk-module.so
Downloading separate debug info for /usr/lib/libKF5Plasma.so.5
Downloading separate debug info for /usr/lib/libQt5Sql.so.5
Downloading separate debug info for /usr/lib/libKF5XmlGui.so.5
Downloading separate debug info for /usr/lib/libKF5GlobalAccel.so.5
Downloading separate debug info for /usr/lib/libKF5Notifications.so.5
Downloading separate debug info for /usr/lib/libKF5Package.so.5
Downloading separate debug info for /usr/lib/libKF5KIOGui.so.5
Downloading separate debug info for /usr/lib/libKF5KIOCore.so.5
Downloading separate debug info for /usr/lib/libKF5Service.so.5
Downloading separate debug info for /usr/lib/libKF5IconThemes.so.5
Downloading separate debug info for /usr/lib/libQt5Svg.so.5
Downloading separate debug info for /usr/lib/libKF5Archive.so.5
Downloading separate debug info for /usr/lib/libKF5ConfigWidgets.so.5
Downloading separate debug info for /usr/lib/libKF5GuiAddons.so.5
Downloading separate debug info for /usr/lib/libKF5I18n.so.5
Downloading separate debug info for /usr/lib/libKF5ConfigGui.so.5
Downloading separate debug info for /usr/lib/libKF5ConfigCore.so.5
Downloading separate debug info for /usr/lib/libKF5CoreAddons.so.5
Downloading separate debug info for /usr/lib/libQt5DBus.so.5
Downloading separate debug info for /usr/lib/libKF5WindowSystem.so.5
Downloading separate debug info for /usr/lib/libQt5X11Extras.so.5
Downloading separate debug info for /usr/lib/libQt5Widgets.so.5
Downloading separate debug info for /usr/lib/libQt5Gui.so.5
Downloading separate debug info for /usr/lib/libQt5Core.so.5
Downloading separate debug info for /usr/lib/libQt5Network.so.5
Downloading separate debug info for /usr/lib/libQt5PrintSupport.so.5
Downloading separate debug info for /usr/lib/libKF5ItemViews.so.5
Downloading separate debug info for /usr/lib/libQt5Xml.so.5
Downloading separate debug info for /usr/lib/libKF5WidgetsAddons.so.5
Downloading separate debug info for /usr/lib/libQt5TextToSpeech.so.5
Downloading separate debug info for /usr/lib/libXtst.so.6
Downloading separate debug info for /usr/lib/libdbusmenu-qt5.so.2
Downloading separate debug info for /usr/lib/libKF5Crash.so.5
Downloading separate debug info for /usr/lib/libKF5AuthCore.so.5
Downloading separate debug info for /usr/lib/libacl.so.1
Downloading separate debug info for /usr/lib/libKF5DBusAddons.so.5
Downloading separate debug info for /usr/lib/libKF5Codecs.so.5
Downloading separate debug info for /usr/lib/libQt5WaylandClient.so.5
Downloading separate debug info for /usr/lib/libudev.so.1
Downloading separate debug info for /usr/lib/libxcb-keysyms.so.1
Downloading separate debug info for /usr/lib/libmd4c.so.0
Downloading separate debug info for /usr/lib/libdouble-conversion.so.3
Downloading separate debug info for /usr/lib/libicui18n.so.73
Downloading separate debug info for /usr/lib/libpcre2-16.so.0
Downloading separate debug info for /usr/lib/libproxy.so.1
Downloading separate debug info for /usr/lib/libproxy/libpxbackend-1.0.so
Downloading separate debug info for /usr/lib/libduktape.so.207
:0 startup, version: 4152 linux x64 channel: stable
:0 executable: /opt/sublime_text/sublime_text
:0 application: /opt/sublime_text
:0 working dir: /home/simon
:0 packages path: /home/simon/.config/sublime-text-3/Packages
:0 state path: /home/simon/.config/sublime-text-3/Local
[New Thread 0x7fffee0ff6c0 (LWP 452626)]
[New Thread 0x7fffed3ff6c0 (LWP 452627)]
[New Thread 0x7fffec5ff6c0 (LWP 452628)]
[New Thread 0x7fffeb7ff6c0 (LWP 452629)]
[Thread 0x7fffee0ff6c0 (LWP 452626) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452630)]
[Thread 0x7fffec5ff6c0 (LWP 452628) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452631)]
[New Thread 0x7fffea9ff6c0 (LWP 452632)]
[Thread 0x7fffee0ff6c0 (LWP 452630) exited]
[Thread 0x7fffeb7ff6c0 (LWP 452629) exited]
[Thread 0x7fffed3ff6c0 (LWP 452627) exited]
[New Thread 0x7fffed3ff6c0 (LWP 452633)]
[New Thread 0x7fffeb7ff6c0 (LWP 452634)]
[New Thread 0x7fffee0ff6c0 (LWP 452635)]
[Thread 0x7fffea9ff6c0 (LWP 452632) exited]
[New Thread 0x7fffea9ff6c0 (LWP 452636)]
[New Thread 0x7fffea1fe6c0 (LWP 452637)]
[Thread 0x7fffec5ff6c0 (LWP 452631) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452638)]
[Thread 0x7fffeb7ff6c0 (LWP 452634) exited]
[New Thread 0x7fffeb7ff6c0 (LWP 452639)]
[Thread 0x7fffec5ff6c0 (LWP 452638) exited]
[Thread 0x7fffea9ff6c0 (LWP 452636) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452640)]
[New Thread 0x7fffea9ff6c0 (LWP 452641)]
[Thread 0x7fffec5ff6c0 (LWP 452640) exited]
[Thread 0x7fffea1fe6c0 (LWP 452637) exited]
[Thread 0x7fffee0ff6c0 (LWP 452635) exited]
[Thread 0x7fffed3ff6c0 (LWP 452633) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452642)]
[New Thread 0x7fffed3ff6c0 (LWP 452643)]
[New Thread 0x7fffee0ff6c0 (LWP 452644)]
[Thread 0x7fffec5ff6c0 (LWP 452642) exited]
[Thread 0x7fffea9ff6c0 (LWP 452641) exited]
[Thread 0x7fffeb7ff6c0 (LWP 452639) exited]
[New Thread 0x7fffea9ff6c0 (LWP 452645)]
[New Thread 0x7fffec5ff6c0 (LWP 452646)]
[Thread 0x7fffed3ff6c0 (LWP 452643) exited]
[New Thread 0x7fffed3ff6c0 (LWP 452647)]
[Thread 0x7fffee0ff6c0 (LWP 452644) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452648)]
[Thread 0x7fffec5ff6c0 (LWP 452646) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452649)]
[New Thread 0x7fffeb7ff6c0 (LWP 452650)]
[Thread 0x7fffee0ff6c0 (LWP 452648) exited]
[Thread 0x7fffea9ff6c0 (LWP 452645) exited]
[New Thread 0x7fffea9ff6c0 (LWP 452651)]
[New Thread 0x7fffee0ff6c0 (LWP 452652)]
[Thread 0x7fffeb7ff6c0 (LWP 452650) exited]
[Thread 0x7fffed3ff6c0 (LWP 452647) exited]
[Thread 0x7fffec5ff6c0 (LWP 452649) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452653)]
[New Thread 0x7fffed3ff6c0 (LWP 452654)]
[New Thread 0x7fffeb7ff6c0 (LWP 452655)]
[Thread 0x7fffed3ff6c0 (LWP 452654) exited]
[Thread 0x7fffee0ff6c0 (LWP 452652) exited]
[Thread 0x7fffea9ff6c0 (LWP 452651) exited]
[Thread 0x7fffec5ff6c0 (LWP 452653) exited]
[New Thread 0x7fffec5ff6c0 (LWP 452656)]
[New Thread 0x7fffed3ff6c0 (LWP 452657)]
[New Thread 0x7fffea9ff6c0 (LWP 452658)]
:0 zip path: /opt/sublime_text/Packages
:0 zip path: /home/simon/.config/sublime-text-3/Installed Packages
[New Thread 0x7fffee0ff6c0 (LWP 452659)]
[New Thread 0x7fffe93ff6c0 (LWP 452660)]
:0 ignored_packages: ["Vintage"]
[New Thread 0x7fffe8bfe6c0 (LWP 452661)]
[New Thread 0x7fffe83fd6c0 (LWP 452662)]
[Thread 0x7fffee0ff6c0 (LWP 452659) exited]
[Thread 0x7fffeb7ff6c0 (LWP 452655) exited]
Downloading separate debug info for /usr/lib/gio/modules/libdconfsettings.so
[New Thread 0x7fffeb7ff6c0 (LWP 452663)]
:0 pre session restore time: 21.7414
[New Thread 0x7fffee0ff6c0 (LWP 452664)]
[New Thread 0x7fffe71fc6c0 (LWP 452665)]
[Thread 0x7fffee0ff6c0 (LWP 452664) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452666)]
[New Thread 0x7fffe69fb6c0 (LWP 452667)]
[Thread 0x7fffe71fc6c0 (LWP 452665) exited]
[Thread 0x7fffee0ff6c0 (LWP 452666) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452668)]
[New Thread 0x7fffe71fc6c0 (LWP 452669)]
[Thread 0x7fffee0ff6c0 (LWP 452668) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452670)]
[New Thread 0x7fffe61fa6c0 (LWP 452671)]
[Thread 0x7fffee0ff6c0 (LWP 452670) exited]
[Thread 0x7fffe69fb6c0 (LWP 452667) exited]
[Thread 0x7fffe71fc6c0 (LWP 452669) exited]
[Thread 0x7fffe61fa6c0 (LWP 452671) exited]
[New Thread 0x7fffe61fa6c0 (LWP 452672)]
[New Thread 0x7fffe71fc6c0 (LWP 452673)]
[Thread 0x7fffe61fa6c0 (LWP 452672) exited]
[Thread 0x7fffe71fc6c0 (LWP 452673) exited]
[New Thread 0x7fffe71fc6c0 (LWP 452674)]
[New Thread 0x7fffe61fa6c0 (LWP 452675)]
[New Thread 0x7fffee0ff6c0 (LWP 452676)]
[Thread 0x7fffe61fa6c0 (LWP 452675) exited]
[Thread 0x7fffee0ff6c0 (LWP 452676) exited]
[New Thread 0x7fffee0ff6c0 (LWP 452677)]
[New Thread 0x7fffe61fa6c0 (LWP 452678)]
[Thread 0x7fffee0ff6c0 (LWP 452677) exited]
[Thread 0x7fffe61fa6c0 (LWP 452678) exited]
Downloading separate debug info for /usr/lib/libGLX_mesa.so.0
Downloading separate debug info for /usr/lib/libglapi.so.0
Downloading separate debug info for /usr/lib/libdrm.so.2
Downloading separate debug info for /usr/lib/libxcb-glx.so.0
Downloading separate debug info for /usr/lib/libX11-xcb.so.1
Downloading separate debug info for /usr/lib/libxcb-dri2.so.0
Downloading separate debug info for /usr/lib/libXxf86vm.so.1
Downloading separate debug info for /usr/lib/libxshmfence.so.1
Downloading separate debug info for /usr/lib/libxcb-randr.so.0
Downloading separate debug info for /usr/lib/libxcb-dri3.so.0
Downloading separate debug info for /usr/lib/libxcb-present.so.0
Downloading separate debug info for /usr/lib/libxcb-sync.so.1
Downloading separate debug info for /usr/lib/libxcb-xfixes.so.0
Downloading separate debug info for /usr/lib/dri/iris_dri.so
Downloading separate debug info for /usr/lib/libLLVM-16.so
Downloading separate debug info for /usr/lib/libsensors.so.5
Downloading separate debug info for /usr/lib/libdrm_radeon.so.1
Downloading separate debug info for /usr/lib/libelf.so.1
Downloading separate debug info for /usr/lib/libdrm_amdgpu.so.1
Downloading separate debug info for /usr/lib/libdrm_nouveau.so.2
Downloading separate debug info for /usr/lib/libdrm_intel.so.1
Downloading separate debug info for /usr/lib/libedit.so.0
Downloading separate debug info for /usr/lib/libncursesw.so.6
Downloading separate debug info for /usr/lib/libpciaccess.so.0
[Thread 0x7fffe71fc6c0 (LWP 452674) exited]
[New Thread 0x7fffe71fc6c0 (LWP 452682)]
[New Thread 0x7fffe61fa6c0 (LWP 452683)]
[New Thread 0x7fffee0ff6c0 (LWP 452684)]
[New Thread 0x7fffe69fb6c0 (LWP 452685)]
[New Thread 0x7fffdb3226c0 (LWP 452686)]
[New Thread 0x7fffdab216c0 (LWP 452687)]
[New Thread 0x7fffda3206c0 (LWP 452688)]
[New Thread 0x7fffd9b1f6c0 (LWP 452689)]
:0 OpenGL Context Information:
:0 GL API Version: 4.6 (Core Profile) Mesa 23.1.9-manjaro1.1
:0 GLSL Version: 4.60
:0 Vendor: Intel
:0 Renderer: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
[New Thread 0x7fffd771e6c0 (LWP 452690)]
[New Thread 0x7fffd5f1d6c0 (LWP 452691)]
[New Thread 0x7fffd571c6c0 (LWP 452692)]
[New Thread 0x7fffd4f1b6c0 (LWP 452693)]
[New Thread 0x7fffd471a6c0 (LWP 452694)]
[New Thread 0x7fffd2af96c0 (LWP 452695)]
[New Thread 0x7fffd22d86c0 (LWP 452696)]
[New Thread 0x7fffd1ab76c0 (LWP 452697)]
[New Thread 0x7fffd12946c0 (LWP 452698)]
[New Thread 0x7fffcf1446c0 (LWP 452699)]
[New Thread 0x7fffce9436c0 (LWP 452700)]
[Thread 0x7fffcf1446c0 (LWP 452699) exited]
[Thread 0x7fffce9436c0 (LWP 452700) exited]
[New Thread 0x7fffce9436c0 (LWP 452701)]
[New Thread 0x7fffcf1446c0 (LWP 452702)]
[New Thread 0x7fffce0f06c0 (LWP 452703)]
[New Thread 0x7fffcd8cd6c0 (LWP 452704)]
[New Thread 0x7fffcb4a96c0 (LWP 452705)]
[New Thread 0x7fffcaca86c0 (LWP 452706)]
[Thread 0x7fffcb4a96c0 (LWP 452705) exited]
[New Thread 0x7fffcb4a96c0 (LWP 452707)]
[New Thread 0x7fffca4a76c0 (LWP 452708)]
[Thread 0x7fffcb4a96c0 (LWP 452707) exited]
[New Thread 0x7fffcb4a96c0 (LWP 452709)]
Ah, this time it’s a Floating Point exception! Should be quite easy to fix…
Anyway, it seems that GDB is not picking source line informations for Cairo. Most likely it’s because debuginfod was enabled when launching GDB:
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
Can you try lanching again LD_PRELOAD=src/libcairo.so gdb --args /opt/sublime_text/sublime_text --multiinstance --debug (from the same working directory), only this time say n (no) when GDB asks “Enable debuginfod for this session”
https://share.mailbox.org/ajax/share/0daa3d6c0d736548de754bcd73654715aed365de90719ceb/1/8/NDI/NDIvMjQ1
(Sorry, for some reason I was not allowed to post the link)
Hi @51mon! Indeed, that’s because libcairo.so is loaded from the system (/usr/lib):
Thread 1 "sublime_text" received signal SIGFPE, Arithmetic exception.
0x00007ffff5ddd372 in ?? () from /usr/lib/libcairo.so
meson compile should have produced a file with the same name in the cairo-dbg directory: /path/to/cairo-dbg/src/libcairo.so. Can you check if it exists and then adjust the value of LD_PRELOAD? See c - What is the LD_PRELOAD trick? - Stack Overflow
Of course it would be great to fix the issue, but at the same time you can try a few workarounds:
Run LIBGL_DRI3_DISABLE=true /opt/sublime_text/sublime_text from the terminal
Thread 1 "sublime_text" received signal SIGFPE, Arithmetic exception.
0x00007ffff5ddd372 in ?? () from /usr/lib/libcairo.so
(gdb) bt full
#0 0x00007ffff5ddd372 in () at /usr/lib/libcairo.so
#1 0x00007ffff5d11a5b in () at /usr/lib/libcairo.so
Disable OpenGL acceleration: GPU Rendering
OpenGL was disable by default, it was just an option I’ve tried when searching for a solution. I enabled it again for the backtrace because it produced a crash instead of a freeze.
Run LIBGL_DRI3_DISABLE=true /opt/sublime_text/sublime_text from the terminal
Run LIBGL_ALWAYS_SOFTWARE=1 /opt/sublime_text/sublime_text from the terminal
Both of these options don’t work unfortunately.
Do you think it could have something to do with my system in particular, because I’m surely not the only one who uses Sublime Text on Linux and switches monitor setup regularly.
Also please don’t feel obligated to write, you’ve tried to help me a lot already, so if you rather not further look into this that’s totally fine.