#StackBounty: #bash #macos #google-chrome Opening Google Chrome from terminal on macOs causes no text rendering in browser

Bounty: 300

screenshot

You can see on the screenshot what the problem looks like. When I start chrome from Dock, the problem doesn’t appear. The same problem in chronium.
Commands I used to start browser:

open /Applications/Google Chrome.app
open -a "Google Chrome"
open -a Google Chrome

macOS High Sierra 10.13.6
Google Chrome 67.0.3396.99


Get this bounty!!!

#StackBounty: #python #google-chrome #selenium #heroku #selenium-chromedriver Selenium ERR_NAME_NOT_RESOLVED on heroku with mobile test…

Bounty: 50

I’d like to test multiple mobile user agents with selenium and chrome. I’m using python 3.6 and deploying to heroku. Based on http://chromedriver.chromium.org/mobile-emulation , I have:

def some_long_calculation():
    driver = create_chromedriver('kkk')
    # driver = create_chromedriver()

    driver.get("https://www.yahoo.com/")
    .....

and :

def create_chromedriver(ua=False):
    options = webdriver.ChromeOptions()
    CHROMEDRIVER_PATH = os.getenv('$HOME') or basedir+'/chromedriver.exe'
    FLASK_CONFIG = os.getenv('FLASK_CONFIG')

    if ua:

        mobile_emulation = {"deviceName": "Nexus 5"}
        options.add_experimental_option("mobileEmulation", mobile_emulation)


    if FLASK_CONFIG and FLASK_CONFIG == "production":
        CHROMEDRIVER_PATH = '/app/.chromedriver/bin/chromedriver'
        GOOGLE_CHROME_SHIM = os.getenv('$GOOGLE_CHROME_SHIM') or 'no path found'
        options.binary_location = '/app/.apt/usr/bin/google-chrome-stable'

        options.add_argument('--disable-gpu')
        options.add_argument('--no-sandbox')

    return webdriver.Chrome(executable_path=CHROMEDRIVER_PATH, options=options)  

If I run it locally with the mobile browser enabled It works as expected:

enter image description here

If I run it on heroku with the mobile browser enabled :

enter image description here

Then I tried it on heroku with the mobile user disabled I get:

enter image description here

So at least I know the setup is working as far as chrome and chromedriver.

heroku Logs:

2018-07-15T17:37:53.967643+00:00 app[web.1]:     driver = create_chromedriver('kkk')
2018-07-15T17:37:53.967637+00:00 app[web.1]:     png = some_long_calculation()
2018-07-15T17:37:53.967645+00:00 app[web.1]:   File "/app/app/main/cl.py", line 120, in create_chromedriver
2018-07-15T17:37:53.967640+00:00 app[web.1]:   File "/app/app/main/cl.py", line 123, in some_long_calculation
2018-07-15T17:37:53.967648+00:00 app[web.1]:     return webdriver.Chrome(executable_path=CHROMEDRIVER_PATH, options=options)
2018-07-15T17:37:53.967651+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
2018-07-15T17:37:53.967654+00:00 app[web.1]:     desired_capabilities=desired_capabilities)
2018-07-15T17:37:53.967656+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__
2018-07-15T17:37:53.967659+00:00 app[web.1]:     self.start_session(capabilities, browser_profile)
2018-07-15T17:37:53.967661+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
2018-07-15T17:37:53.967669+00:00 app[web.1]:     response = self.command_executor.execute(driver_command, params)
2018-07-15T17:37:53.967664+00:00 app[web.1]:     response = self.execute(Command.NEW_SESSION, parameters)
2018-07-15T17:37:53.967667+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute
2018-07-15T17:37:53.967672+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py", line 472, in execute
2018-07-15T17:37:53.967674+00:00 app[web.1]:     return self._request(command_info[0], url, body=data)
2018-07-15T17:37:53.967677+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/remote/remote_connection.py", line 496, in _request
2018-07-15T17:37:53.967679+00:00 app[web.1]:     resp = self._conn.getresponse()
2018-07-15T17:37:53.967682+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/http/client.py", line 1331, in getresponse
2018-07-15T17:37:53.967685+00:00 app[web.1]:     response.begin()
2018-07-15T17:37:53.967687+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/http/client.py", line 297, in begin
2018-07-15T17:37:53.967695+00:00 app[web.1]:     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
2018-07-15T17:37:53.967690+00:00 app[web.1]:     version, status, reason = self._read_status()
2018-07-15T17:37:53.967698+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/socket.py", line 586, in readinto
2018-07-15T17:37:53.967692+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/http/client.py", line 258, in _read_status
2018-07-15T17:37:53.967700+00:00 app[web.1]:     return self._sock.recv_into(b)
2018-07-15T17:37:53.967712+00:00 app[web.1]: ConnectionResetError: [Errno 104] Connection reset by peer

How can I fix this?

EDIT:

Thanks for your detailed answer. I’ve changed the code to incorporate the flags you mentioned. Chrome version is 67.0.3396.99. Chromedriver is 2.40 and selenium is 3.13. No change in result.


Get this bounty!!!

#StackBounty: #16.04 #gnome #nautilus #google-chrome #gnome-screenshot gnome-screenshot taking shots randomly, also affecting Google Sh…

Bounty: 50

I’m having a weird problem since the last week or so.

Out of the blue, gnome-screenshot starts taking a shot of the screen. I used to think it only happens when I’m working on Chrome(which is like 95% of the time the system is on), but today it happened almost instantly after the system booted and I entered my password.

It happens randomly sometimes, or sometimes when I press a key. It’s very annoying.

I have uninstalled the package, which was at version 3.18.0.

Also simultaneously, a weird problem has started in Google Sheets. After a sheet is loaded, the currently selected cell is cleared and the cursor starts blinking, as if someone double-clicked the cell. When I select a new cell, it waits a second and clears and edits that cell as well. Last time it happened when I uninstalled gnome-screenshot because of the above random-screenshots problem.
Then I reinstalled gnome-screenshot and the Sheets problem disappeared as well as the screenshots problem. Now, both problems are back simultaneously and for the time being I’ve uninstalled gnome-screenshot, but the Sheets problem remains.

I don’t know why this is happening, but I think it’s some kind of system call which is misinterpreted or some bug in some package.

I think this has started happening since I last ran the package updater.

Any solutions? I’m pretty sick of the situation as it is now.

P.S. Just noticed its effects in Nautilus as well. When I go into a folder and want to go back to the home directory(or any other in the parents), I can’t; instead the mouse pointer just starts blinking very rapidly(several times a second on/off).

I also can’t open any menus in the taskbar or anything. If I try to open a menu(e.g. to shut the computer down) it stays for a split second and then closes again. This happens again if I try to reopen.


Get this bounty!!!

#StackBounty: #google-chrome #chromium #mozrepl Get URL of current/active chromium/chrome tab from external process

Bounty: 50

How can I get the current chromium tab URL from an external process in linux programmatically?

There are many similar questions to this one, but I haven’t found any with the following requirements

  • Solution should work from outside of the chrome process, i.e. not within javascript or a chrome extension.
  • Solution should not be based on autohotkey, xdotool, wmctrl or similar tools for simulating keyboard or mouse input
  • No OSX or Windows-specific solutions

In firefox, there is mozrepl, which exposes browser internals through an interactive repl over a TCP port. I am looking for something similar in chromium or chrome, even if it means installing a chrome extension.


Get this bounty!!!

#StackBounty: #windows #windows-10 #google-chrome #autohotkey Disabling the WS_CAPTION flag does not work for chrome apps opened as win…

Bounty: 50

For years I’ve been using the ahk script below to disable the WS_CAPTION (long 0x00C00000) flag on Windows 10 applications windows in order to make their title bars invisible. The most common case of usage is for chrome apps opened as window.

LWIN & MButton::
MouseGetPos,,, WinUMID
WinSet, Style, -0xC00000, ahk_id %WinUMID%

I’m not sure if it’s because of my Windows update or Chrome update, but this does not work for chrome apps opened as windows anymore. It still does work for other applications, though. I’m pretty sure there is no problem with my script, because I never change it. Also, my AutoHotKey didn’t update, so I guess there is no problem with it as well. I’ve filled a bug report for chrome (I think they don’t provide reporters an url), even though I’m not sure it’s their problem. Does anyone also have this issue or know what could cause it?

As asked by 3D1T0R, here’s a screenshot of a current window that this script used to work on.
screenshot of a current window that this script used to work on

Thank you very much.


Get this bounty!!!

#StackBounty: #windows-10 #google-chrome #audio In Windows 10, Google Chrome keeps muting itself in volume mixer

Bounty: 100

I’m on Windows 10 and just recently I’ve noticed that Google Chrome starts off muted in the volume mixer and needs to be manually un-mute. When left alone for a while, Chrome automatically mutes itself again.

Here is how it looks in the Volume Mixer:

https://i1.wp.com/i.stack.imgur.com/ipyBY.png?w=525&ssl=1

I have uninstalled and re-installed Google Chrome and it did not fix this issue. All solutions of this issue on the internet say that I need to do something with Google Toolbox, which I don’t even have installed.

How can I fix this?


Get this bounty!!!

#StackBounty: #google-chrome #firefox #browser #mouse-click Keep Firefox suggestions pane open when middle-clicking on suggestions

Bounty: 50

When you type into the address bar of Firefox, it opens a pane containing suggestions:

Firefox's suggestions pane, showing a variety of Stack Overflow related links

Upon middle clicking on any of these suggestions, it opens the suggestion in a new tab, then switches to that tab, also removing what I’d typed into the address bar.

A GIF speaks louder than words here:

gif

What I’d like to happen is the default for Google Chrome, which is where the suggestions pane doesn’t close upon middle-clicking a suggestion, meaning that I can middle-click to open many tabs from the pane:

gif

How can I emulate Chrome’s pane middle-click behaviour in Firefox?


Get this bounty!!!

#StackBounty: #google-chrome #gpu #integrated-graphics #hardware-acceleration #vp9 How to force Chrome to use integrated GPU for decodi…

Bounty: 50

I want Chrome to utilize iGPU (GT630 on i7-8700k) for video decoding, especially VP9 decoding on YouTube. My discrete GPU is GTX970 and it is not capable of decoding VP9. Currently, VP9 is software decoded on my system, putting load on CPU and occasionally skipping frames.

Both GPUs are detected by the system (Windows 10): GT630 as GPU0 and GTX970 as GPU1. I use 2 screens. I don’t care where they need to be connected (970 or Motherboard) as long as Chrome uses iGPU and I can keep using Nvidia for gaming. One of the screens is 144Hz.
The motherboard is ASUS ROG Hero.

I’ve tried different settings, but nothing seems to work as intended, and usually people look for a solution to the exactly opposite problem…


Get this bounty!!!