Digging into a crash on Ubuntu 24.04 / kernel 6.17 with slack snap rev 224 (4.47.69, promoted to stable channel last week around when this bug was reported) and rev 243 (4.49.84, beta), I’m fairly sure this is the same underlying bug — just with a different-looking symptom, the AppArmor thing may be a red herring.
Normally silent because bin/electron-launch redirects stderr to /dev/null. With sudo snap set slack debugmode=true:
ERROR:ui/gtk/gtk_ui.cc:257] Schema org.gnome.desktop.interface does not have key font-antialiasing
...
Segmentation fault (core dumped)
Under gdb, both revisions segfault at identical instruction patterns — a null-pointer virtual dispatch (mov (%rax),%rcx with rax=0; subsequent call *0x68(%rcx)) right after a GTK factory returns nullptr from the failed schema lookup. The previous rev 216 (4.46.99) isn’t affected.
Root cause: the snap declares default-provider: gnome-3-38-2004 (GNOME 3.38, ~2020), but font-antialiasing was added to org.gnome.desktop.interface in GNOME 42. The bundled Chromium queries it and the fallback path isn’t null-safe. Discord and Signal don’t hit this because they’re on newer gnome-* content slots.
Workaround that survives across restarts (but gets wiped on each snap refresh):
sudo snap set slack debugmode=true
snap run slack # crashes; populates .last_revision
cp /usr/share/glib-2.0/schemas/gschemas.compiled \
~/snap/slack/current/.local/share/glib-2.0/schemas/
snap run slack # now launches normally
Works because desktop-launch prepends $XDG_DATA_HOME to XDG_DATA_DIRS, so the injected file wins schema resolution over the stale gnome-3-38 copy. Single-XML injection does not work: the schema references enums in sibling schemas that glib-compile-schemas can’t resolve standalone — copying the host’s already-linked binary sidesteps that.
--ozone-platform=x11 likely “fixed” this for folks upthread by sidestepping the GTK settings bridge entirely rather than addressing the missing schema key.
Real fix is for Slack to bump the content plug to gnome-46-2404 in their snapcraft.yaml. Their snap recipe isn’t public so can’t PR it — emailing feedback@slack.com in parallel.