mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Firefox crash on Android (arm7hf) due to "CompositorBridgeChild receives IPC close" #2152

Open dr1408 opened 5 months ago

dr1408 commented 5 months ago

Im using tool to enter whatsapp through web whatsapp .. im using termux with gecko 0.33 selenium 4.9.1 and xfce to export display to vncviewer

Whenever i try to enter any conversation in firefox it crash immediately here is the gecko log :

Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=80.6358) Exiting due to channel error. Exiting due to channel error. 1705551185835 geckodriver INFO Listening on 127.0.0.1:39869 1705551195254 mozrunner::runner INFO Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/dat ... 46607" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "/data/data/com.termux/files/> Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 console.warn: services.settings: Ignoring preference override of remote settings server console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 Read port: 39865 1705551197478 Marionette INFO Marionette enabled Read port: 39865 Read port: 39865 1705551197732 Marionette INFO Listening on port 36577 Read port: 36577 WebDriver BiDi listening on ws://127.0.0.1:46607 1705551198233 RemoteAgent WARN TLS certificate errors will be ignored for this session console.error: ({}) console.error: "Translations: SIMD not supported" (new CompileError("at offset 15: bad type", "chrome://global/content/translations/simd-detect-worker.js", 14)) DevTools listening on ws://127.0.0.1:46607/devtools/browser/a45657dd-1c54-44ff-ba84-056b9b8dd960 JavaScript warning: https://web.whatsapp.com/main.0cf917fc9b3d8f353e54.js, line 5: unreachable code after return statement JavaScript warning: https://web.whatsapp.com/main.0cf917fc9b3d8f353e54.js, line 5: unreachable code after return statement JavaScript error: resource://gre/modules/PromiseWorker.sys.mjs, line 102: Error: Could not get children of file(/data/data/com.termux/files/usr/tmp/rust_mozprofileSvOYg0/thumbnails) because it does not exist Exiting due to channel error. Exiting due to channel error.

whimboo commented 5 months ago

Can you please follow the step on https://firefox-source-docs.mozilla.org/testing/geckodriver/CrashReports.html to retrieve the crash report? Thanks.

dr1408 commented 5 months ago

Im begginer i dont know how to do that but i forgot to mention its ARM7hf phone .. i see people posting issues with java script error too

whimboo commented 5 months ago

Ok, so for running that code on Android you could add a env capability under moz:firefoxOptions which should list the mentioned environment variable name. It's value should point to a folder on the Android phone that is write-able by any process eg. the download folder. When you ran the test check that folder if there is a minidump file located. If yes, proceed as described in the documentation.

dr1408 commented 5 months ago

Can it be port related cause the port I use in the tool that I'm running is different than the port used to connect to the vnc ?

whimboo commented 5 months ago

Lets try to get the crash report here. I really cannot say what might cause it, sorry.

dr1408 commented 5 months ago

Ok i will try to grab the reports sir appreciate your help

dr1408 commented 5 months ago

So when i run test to it shows no test ran and collected items =0

dr1408 commented 5 months ago

Ahould the port i use in the tool match the port that geckodriver listen on ? Is the geckodriver from tur-repo compatible with arm7 ?

dr1408 commented 5 months ago

Any help sir or can you send me inbox message i been in this issue for 3 weeks with no fix

whimboo commented 5 months ago

@dr1408 I don't know what the tur-repo repository is. But it feels that we getting away from the real problem this issue is about. If you have a problem with geckodriver as well maybe you could check the build for geckodriver 0.33.0 from https://github.com/jamesmortensen/geckodriver-arm-binaries/releases? Does that one work better?

whimboo commented 5 months ago

@dr1408 do you have an update for us? Thanks.

whimboo commented 4 months ago

Closing issue for now due to lack of response from reporter.