Mesa-core22 updates broke my Snap?

I made a game Snap in october 2024 (Floating Sandbox). It’s a game not made by me, the snap ran on all IGPs (Intel, AMD), on Ubuntu 22.04 and 24.04

Since mid 2025, the game does not launch any more (can’t find OpenGL … ‘Failed to initialize GLAD’) on any Ubuntu. Strangely the Snap does still run on the laptop on which I made the snap (laptop has a Nvidia GPU + Intel IGP).

I wonder what changed, and how to fix my snap:

# Snap by Dadu042 13/10/2024
#
#

name: floating-sandbox
base: core22
version: '1.18.0'
summary: Interactive physics simulator
description: |
  Interactive physics simulator where you can sink ships (boats), throw them around, bend them, and burn them. There are many different ways that you can destroy a ship in Floating Sandbox, what's your way?. This software is donationware, this unofficial snap is made to let it known to more players.
  
  Note: in the ship editor the GUI is not display correctly.

grade: stable # 'devel' -> 'stable' to release into candidate/stable channels
confinement: strict  # devmode/strict

architectures:
  - build-on: amd64

parts:
  desktop-glib-only:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: glib-only
    plugin: make
    build-packages:
      - libglib2.0-dev
    stage-packages:
      - libglib2.0-bin


  floating-sandbox:
    after:
    - desktop-glib-only
    plugin: dump
    source: .
    stage-packages:
      - libopenal1
      - libglu1-mesa
    override-stage: |
      snapcraftctl stage
      chmod 777 FloatingSandbox  # If this line is removed, next line does crash Snapcraft 8.3.2.
      chmod 777 -R .

apps:
  floating-sandbox:
    # command-chain: ["snap/command-chain/alsa-launch"]
    command: FloatingSandbox
    extensions:
      - gnome
    plugs:
      - home  # to allow loading more boats
      - desktop
      - desktop-legacy
      - opengl
#      - network
#      - network-bind
#      - alsa
      - pulseaudio
      - audio-playback
#      - audio-record
      - wayland
      - x11
      - unity7
#      - joystick

You probably should report the issue to the issue tracker of the mesa-core22 snap:

Issues · canonical/mesa-core22

Why do you think mesa-core22 has affected your snap? Your yaml does not mention the graphics-core22 interface.

Thanks Alan_g, I tought ‘Mesa-core22’ is involve, because I thought it is automatically build into the snap.

I’m ignorant about ‘graphics-core22’ (by the way it is missing from Snap documentation | Snapcraft documentation ). I will learn about it and look if it may help me.

Not for base: core22:

You can check your final snap with snapcraft expand.

It’s here, because it’s not specific to Snapcraft, but I can see there should be a path from the above.

https://canonical.com/mir/docs/the-graphics-core22-snap-interface