"A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down" error when starting firefox in headless mode - selenium-webdriver

I'm unable to run a test case which is open up a firefox browser in headless mode.
[1674207423848 geckodriver INFO Listening on 127.0.0.1:1025
1674207424164 mozrunner::runner INFO Running command: "/opt/firefox/firefox" "--marionette" "--headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileQwh8l3"
You are running in headless mode.
1674207424479 addons.webextension.doh-rollout#mozilla.org WARN Loading extension 'doh-rollout#mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1674207425006 addons.webextension.screenshots#mozilla.org WARN Loading extension 'screenshots#mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1674207425006 addons.webextension.screenshots#mozilla.org WARN Loading extension 'screenshots#mozilla.org': Reading manifest: Invalid extension permission: telemetry
1674207425007 addons.webextension.screenshots#mozilla.org WARN Loading extension 'screenshots#mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1674207425007 addons.webextension.screenshots#mozilla.org WARN Loading extension 'screenshots#mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1674207426666 Marionette INFO Listening on port 35887
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
Extension error: extension.persistentListeners is undefined resource://gre/modules/ExtensionCommon.jsm:2357 :: clearPrimedListeners#resource://gre/modules/ExtensionCommon.jsm:2357:39
build#chrome://extensions/content/parent/ext-backgroundPage.js:73:20
observe#resource://gre/modules/AsyncShutdown.jsm:551:16
observe#resource:///modules/ContentCrashHandlers.jsm:178:28
Extension error: extension.persistentListeners is undefined resource://gre/modules/ExtensionCommon.jsm:2357 :: clearPrimedListeners#resource://gre/modules/ExtensionCommon.jsm:2357:39
build#chrome://extensions/content/parent/ext-backgroundPage.js:73:20
observe#resource://gre/modules/AsyncShutdown.jsm:551:16
observe#resource:///modules/ContentCrashHandlers.jsm:178:28
Extension error: extension.persistentListeners is undefined resource://gre/modules/ExtensionCommon.jsm:2357 :: clearPrimedListeners#resource://gre/modules/ExtensionCommon.jsm:2357:39
build#chrome://extensions/content/parent/ext-backgroundPage.js:73:20
observe#resource://gre/modules/AsyncShutdown.jsm:551:16
observe#resource:///modules/ContentCrashHandlers.jsm:178:28
Extension error: extension.persistentListeners is undefined resource://gre/modules/ExtensionCommon.jsm:2357 :: clearPrimedListeners#resource://gre/modules/ExtensionCommon.jsm:2357:39
build#chrome://extensions/content/parent/ext-backgroundPage.js:73:20
observe#resource://gre/modules/AsyncShutdown.jsm:551:16
observe#resource:///modules/ContentCrashHandlers.jsm:178:28
1674207427007 addons.xpi WARN Exception running bootstrap method startup on formautofill#mozilla.org: TypeError: extension.persistentListeners is undefined(resource://gre/modules/ExtensionCommon.jsm:2357:39) JS Stack trace: clearPrimedListeners#ExtensionCommon.jsm:2357:39
build#ext-backgroundPage.js:73:20
observe#AsyncShutdown.jsm:551:16
observe#ContentCrashHandlers.jsm:178:28
1674207427008 addons.xpi WARN Exception running bootstrap method startup on webcompat#mozilla.org: TypeError: extension.persistentListeners is undefined(resource://gre/modules/ExtensionCommon.jsm:2357:39) JS Stack trace: clearPrimedListeners#ExtensionCommon.jsm:2357:39
build#ext-backgroundPage.js:73:20
observe#AsyncShutdown.jsm:551:16
observe#ContentCrashHandlers.jsm:178:28
1674207427008 addons.xpi WARN Exception running bootstrap method startup on doh-rollout#mozilla.org: TypeError: extension.persistentListeners is undefined(resource://gre/modules/ExtensionCommon.jsm:2357:39) JS Stack trace: clearPrimedListeners#ExtensionCommon.jsm:2357:39
build#ext-backgroundPage.js:73:20
observe#AsyncShutdown.jsm:551:16
observe#ContentCrashHandlers.jsm:178:28
1674207427008 addons.xpi WARN Exception running bootstrap method startup on screenshots#mozilla.org: TypeError: extension.persistentListeners is undefined(resource://gre/modules/ExtensionCommon.jsm:2357:39) JS Stack trace: clearPrimedListeners#ExtensionCommon.jsm:2357:39
build#ext-backgroundPage.js:73:20
observe#AsyncShutdown.jsm:551:16
observe#ContentCrashHandlers.jsm:178:28
1674207427095 Marionette WARN TLS certificate errors will be ignored for this session
[Parent 12129, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 19
JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 1847: TypeError: subject.QueryInterface is not a function
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
Jan 20, 2023 9:37:07 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
1674207429925 Marionette INFO Stopped listening on port 35887](https://www.stackoverflow.com/)
How can I open the web browser successfully in headless mode.
I'm using;
Server: Ubuntu 22.04
Mozilla Firefox 75.0
Geckodriver 0.29.1
I downgraded the firefox version from 80 to 75 as I get the same error in version 80.

Related

React Native execution error " error Failed to install the app."

I'm doing a native app for the first time. I correctly configured all the environment variables, installed JDK 11, installed Chocolatey, did everything correctly, but is not running on the emulator or usb device. Could someone help with that?
(node:23364) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info JS server already running.
'"adb"' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
at makeError (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\execa\index.js:174:9)
at C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\#react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details
warn No apps connected. Sending "devMenu" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.
info Opening developer menu...
metro-file-map: Haste module naming collision: AppVanzeiro
The following files share their name; please adjust your hasteImpl:
* \package.json
* \AppVanzeiro\package.json
Failed to construct transformer: DuplicateError: Duplicated files or mocks. Please check the console for more info
at setModule (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro-file-map\src\index.js:553:17)
at workerReply (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro-file-map\src\index.js:624:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 17)
at async C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro-file-map\src\index.js:395:22
at async DependencyGraph.ready (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro\src\node-haste\DependencyGraph.js:94:5)
at async Bundler.ready (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro\src\Bundler.js:75:5)
at async IncrementalBundler.ready (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro\src\IncrementalBundler.js:327:5)
at async Server.ready (C:\Users\ana.tomaz\Downloads\AppVanzeiro\node_modules\metro\src\Server.js:1247:5) {
mockPath1: 'package.json',
mockPath2: 'AppVanzeiro\package.json'

The puppeteer closes the page after an error

While testing my page, an error is thrown from the dependency. The error is not critical and does not interfere with my application. But when testing with a puppeteer, with this error, he simply closes the tested page. How can I prevent this to continue testing further ignoring this error?
Example:
This error is thrown on the page and the test ends with it.
Error: TypeError: Cannot set property 'paddingLeft' of undefined
at FrozenColumns.layoutRow (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:16595:26)
at Row.initialize (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:5313:37)
at Row.reinitialize (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:5376:8)
at eval (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:4415:7)
at Array.forEach (<anonymous>)
at RowManager.reinitialize (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:4414:12)
at ColumnManager.redraw (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:1206:25)
at RowManager.refreshActiveData (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:3668:31)
at RowManager.sorterRefresh (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:3482:8)
at HTMLDivElement.eval (webpack-internal:///./node_modules/react-tabulator/node_modules/tabulator-tables/dist/js/tabulator.es2015.js:22644:27)
My environment:
Puppeteer version: 5.4.2
Platform / OS version: macOS 10.15.7
Node.js version: v12.16.1
When using jest-puppeteer, you can specify the exitOnPageError: false parameter in jest-puppeteer.config.js. In this case, the test will not complete if there is an error on the page.

Chrome Version 71.x unknown error: call function result missing 'value' [duplicate]

This question already has answers here:
org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(8 answers)
Closed 4 years ago.
Please don't mark this question as a duplicate, because the other solution doesn't work for me.
I'm using Angular v5.x and using Protractor for E2E testing. But on running the command.
ng e2e -s false
It is throwing an error as
Failed: unknown error: call function result missing 'value'
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 10.0.17134 x86_64)
Stack:
WebDriverError: unknown error: call function result missing 'value'
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 10.0.17134 x86_64)
at Object.checkLegacyResponse (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\error.js:639:15)
at parseHttpResponse (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\http\index.js:538:13)
at client_.send.then.response (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\http\index.js:472:11)
at ManagedPromise.invokeCallback_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:1379:14)
at TaskQueue.execute_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2913:14)
at TaskQueue.executeNext_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2896:21)
at asyncRun (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2820:25)
at F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:639:7
at process._tickCallback (internal/process/next_tick.js:68:7)
I've followed this issue on GitHub, but no luck!!!
I've also install latest chrome driver from this link http://chromedriver.chromium.org/downloads. After unzipping and executing the .exe file a console window opens, prompting this message
Starting ChromeDriver 2.45.615291
(ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387) on port 9515 Only local
connections are allowed.
I've re-run the same command again but not working. I've also checked using
chromedriver --version the version of chromedriver it is v2.45.
Chrome version - 71.0
Chrome drivers version - 2.45
As per the error message, it suggest that call to webdriver(wire protocol) responded empty. I suggest downgrade to your chrome to any stable version below 70 and compatible chromedrive.
As you share console message :-
Starting ChromeDriver 2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387) on port 9515 Only local connections are allowed.
this is information message in console in red color, you can avoid and after this you chrome session means chrome window turn on and if you pass any URL it will redirect to that if you have error after this please share with us because i doesn't seem any problem

web driver update error response status code is not 200

iam trying to install webdriver-manager
by issuing the command
webdriver-manager update
and iam getting the following output
webdriver-manager: using global installed version 12.0.6
(node:6312) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): Error: response status code is not 200
(node:6312) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
(node:6312) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 2): Error: response status code is not 200
[16:32:42] I/update - geckodriver: file exists C:\Users\osheikh\AppData\Roaming\
npm\node_modules\webdriver-manager\selenium\geckodriver-v0.19.1.zip
[16:32:42] I/update - geckodriver: unzipping geckodriver-v0.19.1.zip
[16:32:42] I/update - geckodriver: geckodriver-v0.19.1.exe up to date
what does the error response status code is not 200 refers to
my webdriver-manager status output is
C:\Windows\system32>webdriver-manager status
webdriver-manager: using global installed version 12.0.6
[15:58:44] I/status - geckodriver version available: v0.19.1
[15:58:44] I/status - selenium standalone is not present
[15:58:44] I/status - chromedriver is not present
[15:58:44] I/status - IEDriverServer is not present
[15:58:44] I/status - android-sdk is not present
[15:58:44] I/status - appium is not present
my java version and protractor version are as following
C:\Windows\system32>java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
C:\Windows\system32>protractor --version
Version 5.3.0
Try webdriver-manager update --ignore_ssl or --proxy
I have same problem and I spend hours to find out how to solve the problem. In the generated error before redlines of error I find this message:
I/config_source - curl -oE:\sample projects\sample\node_modules \protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
I ran this command on console (In my case I used the Proxy server because googleleapis is blocked in my country)
curl -o "E:\sample projects\sample\node_modules \protractor\node_modules\webdriver-manager\selenium\chrome-response.xml" https://chromedriver.storage.googleapis.com/`enter code here`
After running this command separately the original ng e2e command executed successfully!
I think space in the path of my application (in my sample path: .../sample projects/..) had caused the bug!

Why do I receive a Service Unavailable message after running the project GWT?

I am creating a GWT project from the GWT Material official website using maven. I am following the tutorial offered by the site: http://gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted . Im getting this in the view page:
HTTP ERROR: 503
Problem accessing /index.html. Reason:
Service Unavailable
Powered by Jetty://
I tried all the solution proposed here but I failed to view the project homepage.
There is no error in the eclipse console. but when inspecting the home page im getting this error:
Voice Instead ready.
content.js:29 Object
favicon.ico Failed to load resource: the server responded with a status of 503 (Service Unavailable)
enter code here
after running the project
in the window Developement Mode in the Jetty console next to Developement Mode
i have problem with Jetty. i don't know
What is jetty and what it allows to do? Im getting this error :
`00:00:16,662 [WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload#3772b95a{/,file:/C:/Users/Mm/eclipse-workspace/com-gwtmaterial-tutorial/target/com-gwtmaterial-tutorial-1.0-SNAPSHOT/,STARTING}{C:\Users\Mm\eclipse-workspace\com-gwtmaterial-tutorial\target\com-gwtmaterial-tutorial-1.0-SNAPSHOT}
<pre>java.util.zip.ZipException: invalid entry size (expected 4178 but got 10926 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:384)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:196)
at java.util.jar.JarInputStream.read(JarInputStream.java:207)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:118)
at java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:142)
at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:179)
at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:915)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:548)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)</pre>`
I solved it by following the next step:
1- Close Eclipse.
2- Go to user directory and delete the .m2 directory.
3- Open Elipse.
4- Right click on the project -> Run as -> maven install

Resources