Skip to content
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

How to deal with chrome failing to launch GPU process #2836

Closed
jingw222 opened this issue Sep 11, 2017 · 30 comments
Closed

How to deal with chrome failing to launch GPU process #2836

jingw222 opened this issue Sep 11, 2017 · 30 comments

Comments

@jingw222
Copy link

Hi. The issue is specifically about this error:

[6875:6912:0911/093717.922624:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

Whenever I launch Jupyter Notebook in Chrome (latest build, Hardware Acceleration enabled, on Ubuntu 16.04), the terminal throws me that error. However, this is not the case with Firefox. Any ideas on why this happens?

@ghost
Copy link

ghost commented Sep 17, 2017

I have the same problem with Chrome, just installed today.

@david1309
Copy link

I get the same error "ERROR:browser_gpu_channel_host_factory.cc(103)]" and the notebook does Not automatically open in a new tab (I have to manually copy and past the link)... any solution ?

@david1309
Copy link

It used to work fine in my Chrome, until something happened to it, I had to re-install Chrome and deactivate the GPU ... after this deactivation, the Jupyter NB problem started occuring ... any body solved it in Chrome (without having to change browsers) ?

@ghost
Copy link

ghost commented Oct 4, 2017

I have the same problem as David1309. The notebook does not automatically open in the new tab and I've been manually copy pasting the link. And recently, I get the following error:
ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

I did not used to get the above error before and until I updated nvidia driver, which caused a login loop issue and then i had to purge all the nvidia drivers manually and installed a stable version. Since then I get the above mentioned error.

@timhwang21
Copy link

I don't use Jupyter but I arrived at this issue from googling the error message. The cause seems to be the --app flag no longer working with Chrome.

@ghost
Copy link

ghost commented Oct 15, 2017

Any idea about the fix ?

@EvansDaniel
Copy link

EvansDaniel commented Oct 18, 2017

I had this same error ("ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process"). After running jupyter notebook, I would get a new tab in google-chrome, but it would be blank.

Following but slightly modifying @wewan's advice, I ran "export BROWSER=google-chrome". Then running jupyter notebook worked as expected. I am using Ubuntu 16.04, Google Chrome 62.0.3202.62, and Jupyter 4.3.0. Also, if this works, you'll obviously want to add the export command to your .bashrc or .bash_profile

@ghost
Copy link

ghost commented Oct 19, 2017

"export BROWSER=google-chrome" command worked for me as well. Thanks for the help :-)

@shawninder
Copy link

I'm curious. For those that fixed the issue with export BROWSER=google-chrome (@chans1239, @EvansDaniel), what was the value of that environment variable before the export (echo $BROWSER)? Was it another browser? chromium perhaps? Or just blank?

@EvansDaniel
Copy link

@shawninder I believe the variable was blank before

@hyperji
Copy link

hyperji commented Jan 25, 2018

Nice, "export BROWSER=google-chrome" works!

@sktgater
Copy link

sktgater commented Feb 7, 2018

I use Windows Update to update everything related to .NET Framework and fixes the issue. Two updates I run that made the fix are KB4057272 and KB4033369.

Hope this helps.

@PennTao
Copy link

PennTao commented Feb 7, 2018

"export BROWSER=google-chrome" works for me too! Thanks :)

@dniku
Copy link

dniku commented Feb 28, 2018

For me (Manjaro GNOME) setting $BROWSER to google-chrome removes the error but prevents the browser from launching entirely (I have to visit the URL manually).

@ShamCondor
Copy link

"export BROWSER=google-chrome" works for me too! But to add this item before "anaconda3 path variable"!

@dartdog
Copy link

dartdog commented Mar 14, 2018

Works for me on Ubuntu 16.04 and the newest Nvidia driver (390) on the Nvidia 1070
"export BROWSER=google-chrome" works for me too! In .bash.rc add this item before "anaconda3 path variable"!

@chibby0ne
Copy link

In Arch Linux, is export BROWSER=google-chrome-stable.
Having just google-chrome gets rid of the error but doesn't open the tab.
On the other hand, this makes sense since google-chrome-stable is the name of the binary.

@marypreethi12
Copy link

i am trying to configure debugging port for google chrome extension for Visual studio for client side debugging like below and getting similar error,

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
[96138:85251:0321/103001.249367:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process.
Created new window in existing browser session.

i have tried export BROWSER=google-chrome too, but its not working. i hope i have to type this command in terminal . I am using MAC , Please suggest

@mwathi254
Copy link

i have the same issue, but this time i'm trying to launch a bokeh app on chrome. i cant use firefox because the cpu load gets to 60%

[14376:14415:0324/221147.264622:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process.
Created new window in existing browser session.

@piton1
Copy link

piton1 commented Mar 24, 2018

i've the same issue too. Jupiter 5.0.0, Radeon pro 560 (Mac).
No effect with export BROWSER=google-chrome :(

@answerquest
Copy link

Just FYI, this error is happening with my other use of webbrowser module in my own python3 script too, it's not a problem particular to Jupyter. Though with luck my browser IS opening despite the program displaying this error.

@KeithTt
Copy link

KeithTt commented Apr 4, 2018

I have the same issue on MAC.

I have tried export BROWSER=google-chrome but do not work.

@amylmy
Copy link

amylmy commented Apr 9, 2018

Also tried export BROWSER=google-chrome but didn't work.

I am using Ubuntu 16.04, Google Chrome Version 65.0.3325.181, and Jupyter 5.4.1.

@m4rtin77
Copy link

I am opening urls in browser with webbrowser python's module and I see this message
"ERROR:browser_gpu_channel_host_factory.cc(120)] Failed to launch GPU process."
My script is working as it should. I am going to check it on eg. Opera.

@alemol
Copy link

alemol commented Apr 23, 2018

In adition to this issue, if you are using chrome this error could also appear:
Enter your API key: [18808:18848:0423/134441.722350:ERROR:browser_gpu_channel_host_factory.cc(120)] Failed to launch GPU process.
just comment also the script "/var/lib/gems/2.3.0/gems/t-3.1.0/lib/t/cli.rb" in the line:
open_or_print('https://apps.twitter.com', dry_run: options['display-uri'])

@piton1
Copy link

piton1 commented May 20, 2018

The problem does not appear after the update OS....

@JoshuaGhost
Copy link

For me the export BROWSER=google-chrome[-stable] works.

But i'm really wondering why and how is this environment variable is connected with dbus and GPU support of chrome... Can anyone provide some references?

By the way @Pastafarianist what do you mean by 'browser doesn't launch entirely'? Do some or all of your extensions are disabled or somewhat? Because this sounds attractive and i'm also concern about it and want to figure out whether the "not lauching entirely" problem will happen on my laptop someday.

@zhangxiaoya
Copy link

@EvansDaniel Thanks, "export BROWSER=google-chrome" works for me too. With OS Ubuntu16.04 LTS

@ashishsnaik
Copy link

ashishsnaik commented Sep 24, 2018

Thanks @EvansDaniel (also @ShamCondor and @dartdog ) ! Adding "export BROWSER=google-chrome" to .bashrc (and opening a new terminal) worked for me too! OS Ubuntu 10.04 LTS.

@Zsailer
Copy link
Member

Zsailer commented Feb 10, 2022

Thanks, all for the discussion and help here. ❤️

I'm closing this issue as part of an issue triaging effort.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests