Help -> About Sublime Text reports I’m using version: Stable Channel, Build 4143. I’m on Ubuntu 22.04.2, using an AMD GPU. I keep the system relatively up to date so things like graphics drivers are near their latest versions if not the latest versions.
Sublime Text has been crashing on me regularly, meaning 6+ times per day if I use it all day. By “crash” I mean the user interface disappears and no Sublime Text processes are left running. I see errors like this in the kernel log around the time of each crash:
[1298027.903443] traps: sublime_text[1601827] trap int3 ip:7faa3d4accef sp:7fff74aef0a0 error:0 in libglib-2.0.so.0.7200.4[7faa3d46d000+8f000]
[1298056.598911] traps: sublime_text[1603566] trap int3 ip:7ff6812c5cef sp:7fffe1518400 error:0 in libglib-2.0.so.0.7200.4[7ff681286000+8f000]
I can reliably generate a crash if I start Sublime Text and immediately start folding code blocks. If I wait a few minutes before starting to use ST after a restart, crashes are much less common but do still happen. In regular usage I haven’t noticed much of a pattern to when it crashes. Last time I was scrolling. It will sometimes run for hours at a time, then crash seemingly out of nowhere.
I suspect something about the AMD GPU might be to blame, because I recently upgraded from an Nvidia GPU. I hadn’t encountered any problems while using Sublime Text with the Nvidia GPU; the problems started after the GPU change.
I once saw
[ 1366.578602] traps: sublime_text[185060] general protection fault ip:94cabe sp:7ffc52fa96a0 error:0 in sublime_text[4e4000+5a2000]
reported after a crash as well.
Does anyone have ideas about what I can do to stop this crashing? I’m happy to supply more information if it helps. Thanks!