Skip to content

Not rendering on Raspberry Pi 3B #9

@olexs

Description

@olexs

I'm trying to get this module to work on my mirror that runs on a Raspi 3B. Setup is default using up-to-date MM v2.18.0 and supplied Electron browser, all running on Raspbian 10 Buster with all packages up-to-date.

When testing the config on the desktop PC with an identical config.js and all versions, all works perfectly. However, on the mirror when I try to activate the module the following happens:

  • The frontend starts up and freezes a couple seconds in, Chromium becomes unresponsive (the clock module stops updating seconds)
  • Couple seconds later, Chromium reloads from black and renders all modules
  • MMM-TomTomTrafficIncidents is placed and correctly sized, the copyright box is visible on the bottom right, but the actual map box is black and has a "frowny face" on top left - I think the Chromium process rendering the iFrame crashes.

image

All this accompanied by the following red-colored errors in pm2 logs:

0|MagicMirror  | [8201:0220/200959.163491:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
0|MagicMirror  | [8238:0220/200959.516610:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
... some "green" output from various frontend modules doing their thing ...
0|MagicMirror  | [8238:0220/201006.076728:ERROR:gl_utils.cc(318)] [.WebGL-0x4dc15500]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
0|MagicMirror  | [8206:0220/201006.667530:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
0|MagicMirror  | [8163:0220/201009.324221:ERROR:gpu_process_host.cc(968)] GPU process exited unexpectedly: exit_code=135

After this the mirror continues running, the iFrame remains broken. Googling the errors isn't of much help.

If I deactivate the MMM-TomTomTrafficIndicents module in the config, these errors don't appear and the mirror and all modules boot up smoothly, with no freezing up. So I'm pretty sure the errors are to do with the module and the embedded TomTom map / Mapbox.

Things I tried:

  • changing the GPU memory allocation from the default 64MB to 128MB: no visible effect.
  • switching to the "G2 GL driver with fake KMS" as described in Black screen  #4 (comment): Chromium appears to render stuff faster (didn't measure anything), but no effect on the error and the iFrame crashing.

What hardware and software have people gotten this to run on? I assume a Pi 4 would help, having a bunch more GPU power and proper drivers, but they are a bit unobtainium right now. Could upgrading to the latest Raspbian (based on Debian 11 Bullseye instead of 10 Buster) possibly help as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions