-
Notifications
You must be signed in to change notification settings - Fork 5.2k
chromium from terminal sometimes hangs #3304
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
Comments
The behaviour is the same if you use chromium-browser directly rather than through xdg-open, right? Looking at xdg-open's documentation, I don't see it saying that it should launch the appropriate application and quit. Under some Desktop Environments, it will call an appropriate launcher that does this. But when running under LXDE, it falls through to "open_generic", which ends up just running the command within the shell script, so it won't return until the application it's calling exits. If it's opening a local file, it will use pcmanfm, so you'll see different behaviour. The rest might be one for John, although it's also likely to be just an upstream chromium issue. |
Yes, you're right, it's exactly the same if I just call chromium-browser from the terminal. Nothing to do with xdg-open at all, sorry. |
renamed ticket to not blame xdg-open. |
It's a bit hard to check whether it's related to our patches to chromium or if that's just how that particular version of chromium behaves. I'd need to build a stock version to compare against, which is a bit involved. |
Does this add any info to it? From an unprivileged (user pi) shell on the desktop. RPI 4B Buster with latest update/upgrade as of 12-Jan. The browser does open!! The gl_surface_presentation_helper.cc errors will repeat at intervals counting up as long as the browser is open.
I know this is really sleazy but by running a subshell with its stdout and stderr redirected, I was able to accomplish the desired result (opening a browser to get an OAuth PIN for input to a ReadLine in the terminal window.) C#/.NET Core
|
Is this the right place for my bug report?
Eben Upton told me to create it here, even though it’s “not really the appropriate repo, but it will do”
Describe the bug
Bad things happen using /usr/bin/xdg-open to open urls in Chromium. Sometimes it works fine, sometimes Chromium freezes up, sometimes the whole desktop environment freezes up tens of seconds. Once I had to pull the plug because after minutes it didn’t come back.
To reproduce
Open a terminal and run this command several times:
/usr/bin/xdg-open "https://support.speedify.com/"
Expected behaviour
If the browser’s not running, it should start on the URL, if it’s not it should quickly open another tab to that URL.
Actual behaviour
Most times it works, but sometimes, it takes a very long time and the browser or even the whole desktop freeze up while it’s waiting.
Here I ran it a couple times. See the large “ERROR:browser_process_sub_thread.cc(217)] Waited 678 ms for network service” type messages. Ive seen them go above 3000 and that’s when things get really hung up (for much longer than the 3 seconds you’d think from the message)
And sometimes when it has to launch chromium, it does, but the command never returns at all. I added some <> inline:
System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:
Which model of Raspberry Pi? e.g. Pi3B+, PiZeroW
4B
Which OS and version (
cat /etc/rpi-issue
)?Raspberry Pi reference 2019-09-26
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage5
Which firmware version (
vcgencmd version
)?Sep 24 2019 17:34:30
Copyright (c) 2012 Broadcom
version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start)
Which kernel version (
uname -a
)?Linux raspberrypi 4.19.75-v7l+ solved issue of mirroring screen after rotation. #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Logs
If applicable, add the relevant output from
dmesg
or similar.Additional context
Add any other relevant context for the problem.
The text was updated successfully, but these errors were encountered: