Comments (4)
pw:browser [pid=2510][err] [2510:0417/152447.115131:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY +240ms
Try doing xvfb-run npm run test:debug:linux
since Electron asks for an X server but there is none.
from playwright.
With this xvfb-run i got this new error instead:
xvfb-run npm run test:debug:linux
> test:debug:linux
> DEBUG=pw:browser npx playwright test
Running 4 tests using 1 worker
pw:browser <launching> /opt/atlassian/pipelines/agent/build/electron-desktop/node_modules/electron/dist/electron -r /opt/atlassian/pipelines/agent/build/electron-desktop/node_modules/playwright-core/lib/server/electron/loader.js --no-sandbox --inspect=0 --remote-debugging-port=0 dist/main.js +0ms
pw:browser <launched> pid=2736 +7ms
pw:browser [pid=2736][err] [2736:0418/094503.439891:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory +99ms
pw:browser [pid=2736][err] Debugger listening on ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 +42ms
pw:browser [pid=2736][err] For help, see: https://nodejs.org/en/docs/inspector +0ms
pw:browser <ws connecting> ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 +1ms
pw:browser <ws connected> ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 +11ms
pw:browser [pid=2736][err] Debugger attached. +1ms
pw:browser [pid=2736][err] [2736:0418/094503.842482:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory +347ms
pw:browser [pid=2736][err] [2736:0418/094503.842528:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory +1ms
pw:browser [pid=2736][err] [2736:0418/094503.844131:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") +1ms
pw:browser [pid=2736][err] [2736:0418/094503.844174:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") +0ms
pw:browser [pid=2736][err] [2736:0418/094503.844192:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") +0ms
pw:browser [pid=2736][err] [2736:0418/094503.844208:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") +0ms
pw:browser [pid=2736][err] [2736:0418/094503.846820:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 2762: Permission denied (13) +2ms
pw:browser [pid=2736][err] +2ms
pw:browser [pid=2736][err] DevTools listening on ws://127.0.0.1:33243/devtools/browser/87b6840c-fc33-4a06-8872-560463a9ccc0 +0ms
pw:browser <ws connecting> ws://127.0.0.1:33243/devtools/browser/87b6840c-fc33-4a06-8872-560463a9ccc0 +0ms
pw:browser [pid=2736][err] [2736:0418/094503.856285:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type: +8ms
pw:browser <ws connected> ws://127.0.0.1:33243/devtools/browser/87b6840c-fc33-4a06-8872-560463a9ccc0 +2ms
pw:browser [pid=2736][err] [2736:0418/094503.893148:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") +36ms
pw:browser [pid=2736][err] [2736:0418/094503.896732:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 2779: Permission denied (13) +2ms
pw:browser <ws disconnecting> ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 +65ms
pw:browser [pid=2736][err] Waiting for the debugger to disconnect... +5ms
pw:browser [pid=2736][err] [2762:0418/094503.966560:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization +0ms
pw:browser <ws disconnecting> ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 +1ms
pw:browser <ws disconnected> ws://127.0.0.1:44091/2ef4c5be-737d-418f-a336-eff3528a93f2 code=1005 reason= +3ms
pw:browser <ws disconnected> ws://127.0.0.1:33243/devtools/browser/87b6840c-fc33-4a06-8872-560463a9ccc0 code=1006 reason= +23ms
pw:browser [pid=2736] <process did exit: exitCode=0, signal=null> +18ms
pw:browser [pid=2736] starting temporary directories cleanup +1ms
pw:browser [pid=2736] finished temporary directories cleanup +15ms
from playwright.
With this xvfb-run i got this new error instead:
What exactly is not working?
Can you share complete reproduction, so that we could try it locally?
from playwright.
We need more information to act on this report. Please file a new one and link to this issue when you get back to it!
from playwright.
Related Issues (20)
- [Regression]: Playwright Test for VSCode can't find *.spec.ts files HOT 7
- [Bug]: "waitForResponse" always fails on firefox HOT 1
- [Bug]: Using force:true to click on an element overlapped by another element will not click or error out HOT 1
- [Bug]: Using test.fail() does not actually fail the test HOT 2
- [Bug]: Locators are in Playwright provided is not Detecting when we run same Scripts again HOT 1
- [Bug]: Tests no longer found in nested Test directory HOT 1
- [Regression]: Forever running state HOT 1
- [Bug]: slowMo option not slowing down commands HOT 2
- [Feature]: I would like waitForResponse to be available on BrowserContext HOT 1
- [Bug]: Expect timeout is not used for locators HOT 1
- [Bug]: localhost replaced with [::1]
- [Bug]: Svelte 4 component testing not working
- [Feature]: ui mode include Playwright inspector
- [Bug]: Plugin VSCode not working with the shared auth
- [Bug]: Unable to capture URL address of a new tab in headless mode
- [Bug]: VSCode Extension doesn't list test cases in Test Explorer when configuration file is under sub folder of root of workspace.
- [Bug]: VSCode extension cannot start test-server because it always lookup config file from root workspace
- [Bug]: Playwright ts/js method isDisabled() doesnot work as expected
- [Bug]: Using command "npx playwright test" the dependences and teardown are not run after every test
- The browsers don't work in the Docker image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.