cypress: GLib-GIO-ERROR: Cannot start cypress on Ubuntu 24 - Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'

Current behavior

When I tried to start cypress, I am getting error(GLib-GIO-ERROR)

Desired behavior

(Cypress:8694): GLib-GIO-ERROR **: 21:52:36.746: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
The Test Runner unexpectedly exited via a exit event with signal SIGTRAP

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux-x64 (Ubuntu - 24.04)
Cypress Version: 13.14.1

Test code to reproduce

npx cypress run

Cypress Version

Cypress Version: 13.14.1

Node version

v21.7.2

Operating System

Platform: linux-x64 (Ubuntu - 24.04)

Debug Logs

No response

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (18 by maintainers)

Most upvoted comments

I could only reproduce if I run Cypress from inside a VSCode bash terminal. If I start a regular Ubuntu bash terminal I don’t get GLib-GIO-ERROR, instead I get cy.screenshot() timing out.

We’re getting a release out today for 13.14.1 that should resolve this.

I’m struggling to reproduce on docker Ubuntu 24.04, but I can reproduce on my Jammy Ubuntu 22 machine. I am unsure of the root cause, so we are going to back out https://github.com/cypress-io/cypress/pull/30109 and release 13.14.2 tomorrow EST.

also see https://github.com/cypress-io/cypress/issues/30172#issuecomment-2327383763

We’re looking into this and whether we need to roll back the Wayland fix from 13.14.0 or not.

@raygdev

  • I can confirm your research as you also pointed to the changes from PR #30109

@MikeMcC399 This may be way out of my depth, but I did a little research on this error. It seems to appear in the ubuntu 22.x distro on mulitple app platforms. AppImage seems to have a complication with supporting wayland. I noticed this change in 13.14.0. I’m not terribly familar with the flag, but it looks like it is meant to support wayland and defaults back to x11 if not found. Some users noted that setting the env variable:

GDK_BACKEND=x11 ~/path/to/whateverapp.AppImage

seems to get rid of the error from glib.

I’m curious if electron is running in AppImage. Some other users noted that using sudo with npx helped, but I’m really not sure how that may be relevant.

This could be a shot in the dark, but maybe worth investigating.