cypress: ERROR:object_proxy.cc(590) Failed to call method: org.freedesktop.portal.Settings.Read

Current behavior

When Cypress is run in a CI environment where there is no physical GPU available, an error message similar to the following is output:

[266:1014/183729.600834:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:

This is new in Cypress 13.3.1 and is a regression from Cypress 13.3.0.

It affects for instance:

  • GitHub Actions with Ubuntu 22.04 / Node.js 20.8.0
  • CircleCI Ubuntu 22.04 in Docker / Node.js 20.6.1

The error message occurs in CI where it uses Xvfb (X virtual framebuffer) when there is no other X11 server available due to missing hardware graphic.

Desired behavior

The only message output when starting Cypress in CI should be similar to the following:

DevTools listening on ws://127.0.0.1:35223/devtools/browser/18023e84-028d-4b1e-a9d3-afb174f8232f

There should be no message with the following text output:

ERROR:object_proxy.cc

Test code to reproduce

Workflows from Cypress repos show the issue since the update to Cypress 13.3.1:

  1. https://github.com/cypress-io/github-action/actions/workflows/example-cron.yml
  2. https://github.com/cypress-io/cypress-example-kitchensink/blob/master/.github/workflows/single.yml
  3. https://github.com/cypress-io/cypress-docker-images/blob/master/circle.yml for example “test-image-medium-factory-test-factory-cypress-included-electron” on https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images

Cypress Version

First reported on version: 13.3.1 Reproducible also on version: 13.6.4

Node version

20.8.0 / 20.6.1

Operating System

Ubuntu 22.04

Debug Logs

Workflow Cypress 13.3.0 Cypress 13.3.1
GitHub Actions Job 17616845243 Job 17685117337
CircleCI Job 48307 Job 48982

Other

Error history

[443:1014/182211.580014:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

  • Cypress 13.2.0 and 13.3.0 were free from ERROR codes on starting

  • Cypress 13.3.1 -> 13.6.0 show:

[266:1014/183729.600834:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Reactions: 62
  • Comments: 60 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Can people with this issue confirm it actually BREAKS something? I am getting it but the tests are still passing as usual.

Having same for Cypress 13.3.1 in CI, but no errors on OSX

Anyone found the solution?

Try running the build with ubuntu-latest name: Cypress Regression runs-on: ubuntu-latest

Confirming that we can no longer reproduce this on Cypress 13.6.6 in CI

@noshiro-pf

It’s very likely that the message

[8956:0115/181526.210849:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:

is not related to the following error:

node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
TypeError [Error]: value.replace is not a function
    at normalizeSlashes (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/util.js:62:18)
    at Object.getExtendsConfigPath (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/ts-internals.js:24:54)
    at readConfig (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/configuration.js:127:64)
    at findAndReadConfig (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/configuration.js:50:84)
    at create (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/index.js:146:69)
    at register (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/index.js:127:19)
    at Object.registerAndCreateEsmHooks (/home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/dist/esm.js:25:49)
    at file:///home/xxx/.cache/Cypress/13.6.2/Cypress/resources/app/node_modules/ts-node/esm/transpile-only.mjs:8:7
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)

I would agree with @MikeMcC399 that this is likely not the cause of anyones hanging/failures, but the last message you see in the terminal before it fails in some people’s cases.

We’d need to do a git bisect to narrow down when this was introduced in 13.3.1. That would help since nothing obvious comes out as the problem looking at the changes.

(This is happening in Firefox and Chrome, so not related to our Chrome manifest v3 upgrade)

Seeing the same error when running Cypress 13.4.0 in CI

Confirming this on Cypress 13.4.0 running in CI mode on an Amazon Linux 2023 Docker image (Nodejs 18). Same code works fine on OSX (M1 Pro).

This issue no longer occurs after updating to cypress@13.3.5 (released Feb 20, 204).

@MikeMcC399 @ojemuyiwa Thank you for your advice! Sorry, my problem was that I was using an array in the tsconfig.json that cypress reads.

Related issue: https://github.com/cypress-io/cypress/issues/27466

@ojemuyiwa / @jerrychong25

Have you run Cypress with debug enabled in CI/CD? For instance in GitHub Actions you would set the environment variable DEBUG with:

  env:
    DEBUG: 'cypress:*'

Did that last night and you were absolutely right the first time the error is in "@cypress/code-coverage": "^3.12.14" I downgraded to "@cypress/code-coverage": "3.12.5" and errors all gone. I believe ther error is internal maybe in istanbul-lib-coverage

It also occurs on Github Actions with node 18 and Cypress 13.5.1, 13.6.0

@cimak

I was getting this exact error when running cypress under WSL2/win11. Installing XServer on windows worked for me, I’m not sure if it is a final solution but I’m leaving this here, maybe someone will find it helpful.

You didn’t say which of the Stack Overflow solutions you used. WSLg would be the preferred one.

  1. Windows Subsystem for Linux GUI (WSLg) provides a GUI environment for WSL2 out-of-the-box.

    Installation information for WSLg is available on

    Existing WSL installations can be updated to use WSLg. New WSL installations automatically use WSLg. See https://github.com/cypress-io/cypress-documentation/issues/5353).

  2. Note that according to https://github.com/cypress-io/cypress/issues/27858#issuecomment-1729598898 Cypress does not currently support WSL2. See also https://github.com/cypress-io/cypress-documentation/issues/5489.

I was getting this exact error when running cypress under WSL2/win11. Installing XServer on windows worked for me, I’m not sure if it is a final solution but I’m leaving this here, maybe someone will find it helpful.

Having same error when running Cypress 12.17.4 in Jenkins:

Opening Cypress… [493:1115/040124.736155:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 646: Permission denied (13) [493:1115/040124.746972:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:

@MikeMcC399 It’s very unlikely that your problem with @cypress/code-coverage is stopping this from working. All the CircleCI workflows on https://app.circleci.com/pipelines/github/cypress-io/code-coverage?branch=master for @cypress/code-coverage succeed even though they also show the message ERROR:object_proxy.cc.

You are correct. After looking into this further this issue was caused because coverage was attempting to run against a production build, while my NYC config was not set to instrument in a prod environment. Thanks for the response though 👍

@ojemuyiwa / @jerrychong25

Have you run Cypress with debug enabled in CI/CD? For instance in GitHub Actions you would set the environment variable DEBUG with:

  env:
    DEBUG: 'cypress:*'

Maybe a fix in cypress/browsers:node-18.16.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1 cypress recommended CI/CD images? cypress 13.6.1 works locally on mac book pro but almost every image I’ve tried has this error and fails everything thereafter i.e. coverage tasks, runners, tests etc.

Same Problem… latest version

Going by previous similar messages, the message

ERROR:object_proxy.cc(590) Failed to call method: org.freedesktop.portal.Settings.Read

is probably not causing test failures, HOWEVER if your test is failing, then this may be the last message you see, so it looks as though it IS the cause.

If you are seeing issues, then you should be following the Troubleshooting steps in the documentation.

Anyone found the solution?

Try running the build with ubuntu-latest name: Cypress Regression runs-on: ubuntu-latest

Am currently running on ubuntu-latest and still having this problem 😦

Are you stuck with that error or it proceed with the Cypress test along with this error? I didn’t face the issue after updating all the runs-on: ubuntu-latest in the YAML file.

I think you’re onto something as I reverted to 13.0 and still got the hanging issues. My problem is at least 1 test will hang on a white screen or a page that says “default blank page” in the test replay (seems to always be a failing test). I’ve read elsewhere it’s a problem with retries so will maybe try turning retries off for now.

Kindly get this issue fixed. I am so badly stuck

Anyone found the solution?

Try running the build with ubuntu-latest name: Cypress Regression runs-on: ubuntu-latest

Am currently running on ubuntu-latest and still having this problem 😦

Confirming the same error after upgrading to Cypress v13.5.1. Docker in Jenkins CI on Ubuntu 16.04

ci
NODE_PATH=./cypress cypress run --env cfg=dev --record --group Adm --browser chrome --spec cypress/e2e/adm/**

[1356:1120/040141.013878:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type: 

DevTools listening on ws://127.0.0.1:43273/devtools/browser/5d984b5a-2049-4d52-93b4-95d4dc152e26