-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome fails to launch #648
Comments
As BashOnWindows is intended to development purposes, rather than normal usage scenarios with GUIs, |
The problem is related to socketpair creation. As Chromium relies on sockets for IPC in Linux/BSD/MacOS, you can expect other chromium based stuff to fail (Chrome/Opera/Spotify/...). |
For what it's worth, there are a number of existing bugs filed in this bug tracker against WSL sockets. (The WSL folks have been working on fixing them.) If you have time to look through them, it would be interesting to know if this is a known or new underlying issue. |
@Manouchehri While we greatly appreciate your taking the time to stretch Bash/WSL and investigate this issue, we are being quite explicit in that we do not support GUI/desktop apps; we are only supporting command-line applications at this time. That several GUI apps do run (to a greater or lesser degree), is purely a side-effect of the team improving our syscall implementation over time. We'll be sure to (very) publicly announce if this position changes, but expect that we'll only be supporting command-line scenarios and tools for the foreseeable future. |
Well, I was trying to pinpoint the issue with sockets rather than the GUI.. I'll write an example that doesn't use a GUI since apparently that's too distracting. |
Tried some stuff using socketpair, but it worked. The only thing for sure is that the error happens in a check at line 40 from https://github.com/scheib/chromium/blob/master/content/browser/renderer_host/render_sandbox_host_linux.cc |
There are lots of missing pieces before Chrome will run on WSL. This issue as raised by @Manouchehri is not well formed and I'm glad this has been marked bydesign. Anyway, I hit the following for starters:
I quit at the NETLINK issue. There are some others I haven't listed; notably chrome has it's own hand rolled version of |
I disagree that it's a poor question; opening this issue got you to clearly identify ~7 issues for WSL. |
No, it didn't. Not even a little bit. Four of the seven issues are known to the WSL team. That Google dicks with Linux kernel internals in (1), (3), and (4) is on Google not Microsoft. Seeing what it would take to get Chrome working was an exercise of no value to the WSL team. If any of those three were even marginally inside WSL's scope (like #546) I would have opened an actionable and reproducible test case. |
Google guys don't agree with you. It's a whole OS inside a browser. xD |
And to be clear, sane is defined as: a test case that demonstrates a failing syscall or Maybe if the WSL team added a |
@therealkenc I am literally the person who added some of the strace guidelines to Anyway, I don't get why asking about the world's most popular browser is so upsetting. It was going to be asked sooner or later. |
Folks, this is getting a smidgeon heated... First -- thanks @Manouchehri for reporting this! It is a thing that WSL cannot currently do. While it's not on the short-term road map, I for one do hope that WSL eventually reaches a level of completeness where it's able to run apps like Chrome. It's not something that is expected to work in the Anniversary Release. But as has been pointed out on other tickets, there are WSL users who (rightly or wrongly) expect browsers to work now. This ticket documents what their actual status is. @therealkenc -- your definition of "sane" matches what's expected to work for Windows Anniversary Edition. But this bug tracker has a broader scope than that; it is currently described as encompassing future and long-term work as well. If you would like to narrow its definition to match your description, please post a pull request modifying README.md. |
This is getting out of hand, there's no reason for personal attacks. I'm going to lock this thread and let people calm down. |
Thanks @aseering and @benhillis. We appreciate people pushing the limits to what WSL can do. This tracker has become one of the best places where people can show off and ask questions about areas that are not officially supported (examples #637, #611, and #481). I know I get a kick out of reading these and do not want us to do anything to stifle the creativity. For the issue, @Manouchehri, thank you for reporting it. If nothing else people who try and run Chrome can see other people's experience. We all know that Chrome is not a priority, but it is still good information to have. Also, for the record, thank you for the help with CONTRIBUTING.md. The Windows Anniversary Update is pretty well locked down at this point. We have a blog post talking a bit about what comes next. Naturally our priority list will grow for the next release. No spoilers on our conversations but I can promise that we're looking at this forum and the User Voice. More information on that when we have something fun to share. |
Hey, Sorry to revive already closed issue, but haven't wanted to create another issue for basically same problem. I'd like to just point out that this issue is connected not only with Chrome, but also with any other application using Chromium engine - including any Electron application. This last group includes popular text editors such as Atom... and amazing MSFT product - VS Code. It would be really nice if you've reconsider fixing this issue to support development tools created by other teams in Microsoft. :) Best regards, |
Alot of programs fails on shutdown, please fix it (or waiting for the fix, simulate a correct return value) |
@iz0eyj -- thanks for your comment! It's very general, though... Are you referring specifically to programs that use Chrome or the Chromium engine? If so, could you please post more details? If not, or if you're not sure, could you please open a new issue and fill out the issue template? |
@aseering in my case the problem is with Vivaldi Browser, which uses exactly like Chrome engine Blink (derived from Webkit), but probably also with Opera you will have the same error. This is the end of his strace (shutdown at the second row): socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, [6, 7]) = 0 |
Ben says #546 is better in 14915. |
@therealkenc I confirm that close seems OK with 14915, but I got a new issue (not socket related) starting Vivaldi Browser. |
@therealkenc Please do post what you've managed to get so far! I'd be interested to see how far this could get and if there are any underlying bugs/assumptions in Chromium that would be feasible to fix, opinions about reading |
I have the impression that google chrome works if you:
But since that's the conclusion of a long work, with lots of trials, I would rather hope that someone else could confirm that... |
@davidmaxwaterman - I know that @TheLarkInn was looking into how one could launch a browser from within WSL. |
this. There is nothing special about launching a Windows browser (Chrome/Edge/Firefox) versus any other Windows application (Notepad). Native Linux Chrome has worked since 16273 and this issue is fixedfallcreatorsupdate. There are no known issues filed in github related to Chrome, with the nonblocking exceptions of #1006 and #1353. |
Thanks but I wrote that 5 months ago and have long since given up with WSL and gone back to Ubuntu. I can quite believe things have changed since then. |
This works great for me. I installed VcXsrv , started "XLaunch" in windows, and then started up my Windows Subsystem Ubuntu bash console and followed @therealkenc 's comment from Aug 24, 2017. I'm using it to run automated tests in Chrome. It all works wonderfully. Thank you! |
I came across with this situation When I launched roboware. I tried to use the latter method, but it will purge so many packages relative to ros-kinetic. I tried it eventually and my roboware worked magically, however, |
Combining the tips from @therealkenc (#648 (comment)) and @jehon (#648 (comment)) worked for me as well. Had issue running automated tests based on Chromium from win10/WSL. Thanks! |
I want to use Capybara to run some automated tests with Chrome, how do I choose to run the google-chrome-dev instead of the default Chrome? Only Chrome 78 (unstable) will run, however, Selenium (for Capybara) requires webdriver. Webdriver only support version 77. |
I still get an issue when trying to run google chrome on windows subsystem for linux. Using ubuntu 16.04. Has anyone got any ideas why I am getting the followings errors? [28834:28834:0206/151626.871150:ERROR:browser_switcher_service.cc(238)] XXX Init() |
Have same thing . I came to flags below. It flashes the website correctly (in VcXsrv) The error stack is this
also frequent shared memory errors
The network seems to work because if i will run with
|
@therealkenc I've followed your instructions in your original comment, but chrome seems to having some issues. Here are some details: Windows 10 Pro VcXsrv X Server: 1.20.6.0 (12 Jan 2020) I can run both
This is very annoying because headless is what I want, so I can run feature tests 😬 Heres the output for trying to run
If I then run it with For some reason it seems that Chrome is creating its cache (and I assume other files) in a way that means they end up being owned by root? Let me know if you'd like me to create a new issue, or have any questions :) Additionally, webpages don't actually load; I just get a white screen. |
The comment above about not working solution must be related to chrome version. The newest version 80.* is failing me also. I used version 77 that i happened to have installed on wsl some time ago and it manages to open non https website, via VcXsrv. It still opens https sites as a blank page. |
I downloaded the latest version today (81.0.4044) and I got this error as well. I don't know why this ticket is closed =/ |
I have used chrome 83 and 84, and I am still recieving the error in WSL.
|
I get this error in wsl when I run
|
I followed this docs https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps And I got these errors $ google-chrome
[2014:2014:1112/172745.466766:ERROR:browser_dm_token_storage_linux.cc(94)] Error: /etc/machine-id contains 0 characters (32 were expected).
[1112/172745.479719:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1112/172745.479781:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Trace/breakpoint trap |
For the people that are expierencing issues after using: https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps Check the wsl version with:
If the wsl distro is version 1 then convert the distro to version 2 with:
|
Any solution? |
A simple |
Hi, what did you guys do? I just did
what is happening? |
Hi Had to update wsl as well as mentioned here. Well with that it caused my running application to restart as well 😢 |
Chrome fails to launch.
10.0.14385
https://gist.githubusercontent.com/Manouchehri/da19ce4b9874c0a893210fa509fc1a33/raw/5fea50f4e81233e1cbe65ccdd92a295352ae9197/strace-chrome-wsl-fail.txt
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo apt-get update sudo apt-get install google-chrome-unstable
The text was updated successfully, but these errors were encountered: