BenRoe / rpi-magicmirror-eink

MagicMirror on 7.5 ePaper Waveshare Display with a Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Current version of chromium-browser on repositories is broken

arahayrabedian opened this issue · comments

Following the instructions provided I had extreme difficulty getting chromium to actually stay around for puppeteer to take a screenshot. I was getting exceptions like:

(node:30015) UnhandledPromiseRejectionWarning: Error: Navigation failed because browser has disconnected!
or otherwise
(node:32191) UnhandledPromiseRejectionWarning: Error: Protocol error (Target.activateTarget): Session closed. Most likely the page has been closed.

The culprit is chromium-browser v74 available on the rapsbian apt repositories - when attempting to execute some stuff manually I was getting:

pi@display:~/MagicMirror/rpi-magicmirror-eink $ chromium-browser --headless --disable-gpu --screenshot http://localhost:8080/
[0810/184416.809958:ERROR:browser_main_loop.cc(596)] Failed to put Xlib into threaded mode.
[0810/184418.448752:FATAL:gpu_data_manager_impl_private.cc(897)] The display compositor is frequently crashing. Goodbye.
Trace/breakpoint trap

Solved by manually installing chromium-browser v76 (that was quite a disaster on it's own - an exercise left to the reader) - This is not an issue with your project per-se, but figure somebody could find this info useful when following your instructions.

on that note, wanted to say thank you! this project itself made the thing I wanted to do super easy - minus the chromium difficulties :)