Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
sean-workman opened this issue Jan 12, 2025 · 4 comments
Open
1 task done

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

sean-workman opened this issue Jan 12, 2025 · 4 comments
Assignees
Labels

Comments

@sean-workman
Copy link

Is there an existing issue for this?

  • 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.

@d-loose
Copy link
Member

d-loose commented Jan 13, 2025

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.

@sean-workman
Copy link
Author

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

@robert-ancell
Copy link

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.

@sean-workman
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants