Testing out Balena, tried to use browser image posted on git (https://github.com/balenablocks/browser) for my Generic x86_64 image. Please see log snippet below:
03.09.21 11:27:43 (-0500) browser (==) Using system config directory “/usr/share/X11/xorg.conf.d”
03.09.21 11:27:43 (-0500) browser (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
03.09.21 11:27:43 (-0500) browser Detecting window size from framebuffer
03.09.21 11:27:43 (-0500) browser Window size detected as 1920,1080
03.09.21 11:27:44 (-0500) browser Browser API running on port: 5011
03.09.21 11:27:44 (-0500) browser Using LAUNCH_URL: https://google.com
03.09.21 11:27:44 (-0500) browser Enabling GPU
03.09.21 11:27:44 (-0500) browser Enabling KIOSK mode
03.09.21 11:27:44 (-0500) browser Starting Chromium with flags: --disable-features=TranslateUI,–disable-component-extensions-with-background-pages,–disable-background-networking,–disable-sync,–metrics-recording-only,–disable-default-apps,–no-default-browser-check,–no-first-run,–disable-backgrounding-occluded-windows,–disable-renderer-backgrounding,–disable-background-timer-throttling,–force-fieldtrials=*BackgroundTracing/default/,–window-size=1920,1080,–window-position=0,0,–autoplay-policy=no-user-gesture-required,–noerrdialogs,–disable-session-crashed-bubble,–check-for-update-interval=31536000,–disable-dev-shm-usage,–enable-zero-copy,–num-raster-threads=4,–ignore-gpu-blacklist,–enable-gpu-rasterization
03.09.21 11:27:44 (-0500) browser Displaying URL: --app= https://google.com
03.09.21 11:28:09 (-0500) browser (node:235) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:35173
03.09.21 11:28:09 (-0500) browser at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
03.09.21 11:28:09 (-0500) browser (node:235) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see Command-line options | Node.js v16.8.0 Documentation). (rejection id: 1)
Our team just made a PR on the repo to make the errors more readable (check here) and we are speaking internally to solve this issue. We will keep you updated once this is solved.
Thank you for sending us the logs and let’s stay connected.
Thank you for reporting this. We found that from 2.83.10+rev1 we have disabled user namespacing as a security measure. However Chromium relies on it for starting the browser in a sandbox process. We are looking into the best way of sorting this here: https://github.com/balena-os/meta-balena/issues/2319
We are also working out how to stop this being an issue in the browser block here: https://github.com/balenablocks/browser/issues/77
For now you can use OS version 2.82.10+rev1 without issue, and we’ll let you know when the issues have been resolved.
@phil-d-wilson@rahul-thakoor I found a bug in the Browser code change that I am testing.
I noticed when “ROTATE_DISPLAY = right” the screen is blank but when no “ROTATE_DISPLAY” is set the screen is visible.
I also downgrade to OS version 2.56.6+rev1 and retest and the screen rotate correct and the display is alway visible.
@rahul-thakoor I also noticed that if the launch url is pointing to a carousel with kiosk mode enabled. The webpage stays on the first display. I am also seeing some slow rendering of gif contents at time.
I’ll link this support thread to that issue, so that we can investigate and update you. Thank you for letting us know that an OS downgrade works around the problem, that may help us understand what is happening.