app-center icon indicating copy to clipboard operation
app-center copied to clipboard

snap-store - "Unable to create a GL context"

Open sean-workman opened this issue 11 months ago • 18 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and found none matching what I'm reporting.

Bug Description

When I try to open the App Center I am met with a blank screen with faint text that says "Unable to create a GL context". If I run snap-store from the terminal I am met with the following errors. The last line of the error repeats over and over.

(snap-store:45825): Gtk-WARNING **: 20:21:19.846: GTK+ module /snap/snap-store/1248/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 20:21:19.846: Failed to load module "canberra-gtk-module"

(snap-store:45825): Gtk-WARNING **: 20:21:19.846: GTK+ module /snap/snap-store/1248/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 20:21:19.846: Failed to load module "canberra-gtk-module"

(snap-store:45825): Gdk-CRITICAL **: 20:21:19.860: gdk_gl_context_make_current: assertion 'GDK_IS_GL_CONTEXT (context)' failed

** (snap-store:45825): WARNING **: 20:21:19.860: Failed to initialize GLArea: Unable to create a GL context

** (snap-store:45825): CRITICAL **: 20:21:20.381: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager *, guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed

Steps to reproduce the behavior

I open a fresh terminal session in Alacritty and run:

snap-store

Expected behavior

I expected the App Center to open.

Ubuntu release

24.10

What architecture are you using?

amd64

System info

6.11.0-13-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Sat Nov 30 23:51:51 UTC 2024
name:    snap-store
summary: Snap Store is a graphical desktop application for discovering, installing and managing
  snaps on Linux.
publisher: Canonicalâś“
store-url: https://snapcraft.io/snap-store
contact:   https://bugs.launchpad.net/snap-store/
license:   unset
description: |
  Snap Store showcases featured and popular applications with useful descriptions, ratings, reviews
  and screenshots.

  Applications can be found either through browsing categories or by searching.

  Snap Store can also be used to switch channels, view and alter snap permissions and view and
  submit reviews and ratings.

  Snap Store is based on GNOME Software, optimized for the Snap experience.
commands:
  - snap-store.show-updates
  - snap-store
snap-id:      gjf3IPXoRiipCu9K0kVu52f0H56fIksg
tracking:     latest/edge
refresh-date: today at 20:11 CST
channels:
  2/stable:          0+git.7a3a49a6   2024-12-19 (1248) 11MB -
  2/candidate:       ↑
  2/beta:            ↑
  2/edge:            0+git.7a3a49a6   2024-12-18 (1248) 11MB -
  latest/stable:     41.3-72-g80e7130 2024-09-22 (1216) 12MB -
  latest/candidate:  ↑
  latest/beta:       ↑
  latest/edge:       0+git.7a3a49a6   2024-12-18 (1248) 11MB -
  preview/stable:    –
  preview/candidate: 0.2.7-alpha      2023-02-02  (864) 10MB -
  preview/beta:      ↑
  preview/edge:      0.3.0-alpha      2023-08-14 (1017) 11MB -
  1/stable:          41.3-72-g80e7130 2024-09-22 (1216) 12MB -
  1/candidate:       ↑
  1/beta:            ↑
  1/edge:            41.3-72-g80e7130 2024-09-16 (1216) 12MB -
installed:           0+git.7a3a49a6              (1248) 11MB -
---
name:      snapd
summary:   Daemon and tooling that enable snap packages
publisher: Canonicalâś“
store-url: https://snapcraft.io/snapd
contact:   https://github.com/snapcore/snapd/issues
license:   GPL-3.0
description: |
  Install, configure, refresh and remove snap packages. Snaps are
  'universal' packages that work across many different Linux systems,
  enabling secure distribution of the latest apps and utilities for
  cloud, servers, desktops and the internet of things.

  Start with 'snap list' to see installed snaps.
type:         snapd
snap-id:      PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
tracking:     latest/stable
refresh-date: today at 20:08 CST
channels:
  latest/stable:    2.67                 2025-01-11 (23545) 46MB -
  latest/candidate: 2.67                 2024-12-17 (23545) 46MB -
  latest/beta:      2.67                 2024-12-04 (23545) 46MB -
  latest/edge:      2.67+git127.g58fadb6 2025-01-10 (23709) 50MB -
installed:          2.67                            (23545) 46MB snapd

Additional context

I found some other issues like mine but I've tried what has fixed things for them and it hasn't done it for me.

sean-workman avatar Jan 12 '25 02:01 sean-workman

Thanks for the report - could you please provide some information about your graphics card and drivers in use by running

glxinfo -B

and

lspci -nn -k | grep -A2 VGA

@robert-ancell I'd appreciate it if you could have a look at this.

d-loose avatar Jan 13 '25 09:01 d-loose

No worries, outputs are below:

❯ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 24564 MB
    Total available memory: 24564 MB
    Currently available dedicated video memory: 23758 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 4090/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 560.35.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

and

❯ lspci -nn -k | grep -A2 VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device [1458:40bf]
	Kernel driver in use: nvidia

sean-workman avatar Jan 13 '25 21:01 sean-workman

Could you also run gtk3-demo and double-click on "OpenGL Area" to confirm that is working? (sudo apt install gtk-3-examples).

Also try flutter-gallery (snap install flutter-gallery).

The above will help work out if it's a driver issue or a snap issue.

robert-ancell avatar Jan 14 '25 00:01 robert-ancell

The "OpenGL Area" worked fine. It rendered the triangle and I was able to spin it around with the x/y/z sliders.

flutter-gallery was less successful. The window opens and stays completely blank grey/white and this is what I see in the terminal:

❯ flutter-gallery

** (flutter_gallery:11468): WARNING **: 18:58:28.838: Failed to start Flutter renderer: Unable to create a GL context

** (flutter_gallery:11468): WARNING **: 18:58:53.846: atk-bridge: get_device_events_reply: unknown signature

sean-workman avatar Jan 14 '25 01:01 sean-workman

Hi there,

I just wanted to check in to see if there were any further thoughts with this? I seem to be running into problems installing a couple of .deb packages via dpkg and was wondering if the App Center worked any better.

Thanks, I really appreciate the help you've given so far!

sean-workman avatar Jan 20 '25 20:01 sean-workman

news?

edge7 avatar Feb 24 '25 15:02 edge7

I ended up changing the version of Wayland I was using at the login screen and it seemed to fix things.

sean-workman avatar Feb 24 '25 16:02 sean-workman

cf https://bugs.launchpad.net/snap-store-desktop/+bug/2081206

romwriter avatar Mar 16 '25 19:03 romwriter

I'm experiencing the same issue, and it only occurs when I'm using the Xorg session. Some applications, like the file manager, fail to start when I try to open them. I believe these problems are related to the same underlying issue.

glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 6144 MB
    Total available memory: 6144 MB
    Currently available dedicated video memory: 5053 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 560.35.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

and

lspci -nn -k | grep -A2 VGA

00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-H GT2 [UHD Graphics] [8086:9bc4] (rev 05)
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:12bc]
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] [10de:1f15] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:12bc]
	Kernel driver in use: nvidia

refaatcrafts avatar Apr 05 '25 05:04 refaatcrafts

Same issue here.

hg0428 avatar Apr 17 '25 22:04 hg0428

I have the same experience. When using X.org, I encounter issues, but everything works perfectly with Wayland.

YousefAK009 avatar Apr 19 '25 13:04 YousefAK009

Same issue here with X11 and Nvidia 570.

luisalvarado avatar Apr 21 '25 12:04 luisalvarado

The issue happen if we using nvidia gpu, everything worked well if using integrated Intel GPU

inyong1 avatar May 04 '25 02:05 inyong1

Started working after I updated the snap snapd to version 2.69, that still on edge channel.

mhalano avatar May 04 '25 11:05 mhalano

Or (as temporary solution), we ca use old app center sudo apt install gnome-software

inyong1 avatar May 04 '25 13:05 inyong1

Started working after I updated the snap snapd to version 2.69, that still on edge channel.

Working as well on my side after upgrading with edge channel.

sudo snap refresh snapd --edge
sudo snap refresh snap-store --edge
sudo snap refresh snapd-desktop-integration --edge

ltetrel avatar May 14 '25 10:05 ltetrel

I think we could close this issue after the 2.69 version becomes a stable release. What do you think?

mhalano avatar May 14 '25 11:05 mhalano

Where may I find the changelog for snapd 2.69.

luisalvarado avatar May 14 '25 14:05 luisalvarado