-
Notifications
You must be signed in to change notification settings - Fork 7
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
chromium-browser file:///myfile.html hangs while loading; --use-gl=egl is the fix #29
Comments
Hey hey, is this the same problem as #28 ? |
Yes, I think this is all converging, with various trails and clues having met up on the Raspberry Pi forum. I didn't know that taoteh1221 was going to post the solution in #28. Some people had trouble with various websites. I originally had trouble with my cgi kiosk application, where the html is generated. I couldn't easily provide my cgi app, but I found that the same thing happened with a local html file via file://, so that's what I provided for an easily reproducible example. Let's hope this fixes everybody's problems. |
I saw this forum post by michalng, where he gives the solution; a few posts before that he actually mentions issue #28. In any case, I think he gets the credit. |
Um, okay. |
I have to report that on bullseye 64 (same kernel number as the 02W above) the same chromium-browser version (98.0.4758.106) works fine even WITHOUT the above-mentioned egl fix, on a Pi4-4GB and a Pi4-8GB, . So there's a memory threshold? I don't have a Pi4 with 1GB or 2GB to test this on. But under bullseye 64 on a Pi3B with 1GB, the egl line needed. And under bullseye 32 on a 1GB Pi2 and the 512MB 0W, 02W, and 3a+, it's needed. |
Yesterday I installed the just released version of chromium-browser (101.0.4951.57-rpt1) over the recent version (98.0.4758.106-rpt1). It is great to see the pi mods applied to such a recent chromium (just a pinch back from the latest you can get in a flatpak.) This new version partly changes or improves the mis-behavior I reported in this issue. FACT 1: The 101 version WILL open that html file WITH or WITHOUT the egl line being applied. However, it seems to take longer without, and it's almost like it tries twice with some kind of failure the first time. See attached stdout/stderrs copied from a terminal session where I first tried it WITH the egl line, then removed such line, then tried it WITHOUT the line. See the "exit_code=512". Note: this was run on a Pi0W. FACT 2: This 101 version DOES allow my kiosk application to run on various pi models WITH or WITHOUT the proposed egl fix, although on some models it takes longer WITHOUT the egl line (more noticeably on less powerful models.) I wonder if the exit_code=512 error is happening behind the scenes there too, causing a second attempt that increases the time. |
Many thanks for re-testing! @jc-kynesim Shouldn't we be default to egl anyway? AIUI, that line shouldn't have any effect. |
I noticed your latest -rpt2 release so I reran some tests again. It doesn't seem to change Fact 1 behavior, see above. Adding the explicit egl line STILL makes it run faster, with fewer error messages in stderr/stdout. See attached file, showing behavior and timings with and without the manual egl line; note the error_code=512. pi0w: WITH the egl fix line: Summary: In my tests, this doesn't seem to be an improvement over 101-rpt1. It is still an improvement over 98, because I couldn't even run the simple file-based test before without the manual egl line. |
Yup, the rpt2 bump was to fix #32, so I wouldn't expect the behaviour to be any different. |
Is this still an issue? |
I gave up on Chromium on lower-powered pis (switching to midori, and actually purging chromium[-browser]). I'm sorry but I don't have the time to go back to test this. |
Alright, thanks. I'll close this for now, since there have been a lot of changes in Chromium since then. I suspect it's no longer applicable. |
Try to open the attached simple html file (remove the extra ".txt") using chromium-browser on bullseye 32 or 64, on any of [pi0w, pi2, pi02w, pi3a+, pi3b]:
chromium-browser file:///home/pi/chromium_egl.html
It will hang while loading and eventually have to be killed.
Apply this line, try again, and it will work, as it still does on buster WITHOUT such fix:
echo 'export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --use-gl=egl"' | sudo tee /etc/chromium.d/egl
chromium_egl.html.txt
Some facts about the system I just tried this on:
Zero2 W
512MB
armv7l
bullseye 32
5.15.32-v7+
#1538 SMP Thu Mar 31 19:38:48 BST 2022
Chromium 98.0.4758.106 Built on Raspbian , running on Raspbian 11
NOTE: As a two-for-one, this also fixes my issues with using chromium-browser in kiosk mode, but it would be more work to give you a cut down version of the cgi program I use in that application.
The text was updated successfully, but these errors were encountered: