• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Blank Screen in Electron - fresh install on Pi Zero 2 W

Scheduled Pinned Locked Moved Bug Hunt
5 Posts 2 Posters 703 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    chndrcks
    last edited by Nov 19, 2024, 5:05 AM

    Hello,

    When electron launches, I only see a black screen. In terminal I see this:
    ERROR:network_service_instance_impl.cc(521)] Network service crashed, restarting service.

    I just got a Raspberry Pi Zero 2 W and installed the latest 64bit desktop version via the official image tool.

    I installed MM2 via this script: bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

    The server portion works. I can connect to it from a different machine. I also set up a server on a different machine and tried running clientonly on the Pi Zero 2. I get the same error and the same blank screen.

    If anyone has any idea what I might have configured incorrectly, I’d appreciate it.

    C 1 Reply Last reply Nov 19, 2024, 5:53 AM Reply Quote 0
    • C Offline
      chndrcks @chndrcks
      last edited by Nov 19, 2024, 5:53 AM

      I tried connecting with chromium and got the same blank screen. Then I tried launching chromium with --disable-gpu and the page did eventually load. But it’s very slow (e.g. the seconds on the clock don’t update).

      When I did that, I still got the ‘network service crashed’ error, so maybe that’s a red herring?

      S 1 Reply Last reply Nov 19, 2024, 12:18 PM Reply Quote 0
      • S Offline
        sdetweil @chndrcks
        last edited by sdetweil Nov 19, 2024, 3:11 PM Nov 19, 2024, 12:18 PM

        @chndrcks how big is the swap file?

        free -m
        Will show you and it’s usage

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Nov 19, 2024, 2:43 PM Reply Quote 0
        • C Offline
          chndrcks @sdetweil
          last edited by Nov 19, 2024, 2:43 PM

          @sdetweil Thanks for responding.

          Swap size is 4096. I bumped it up from the default 512 to see if that helped.

          I’m trying with firefox, but just launching the browser and navigating to the website takes 5+ minutes.

          Maybe I should try the 32-bit version of bookworm?

          This is unrelated, but while I was troubleshooting, I went through your raspberry.sh script. Could yo u tell me what’s going on with line 55 “if [ 0 -eq 1 ]; then” ? Won’t that always evaluate to false? or is there a bash trick I’m missing?

          S 1 Reply Last reply Nov 19, 2024, 3:10 PM Reply Quote 0
          • S Offline
            sdetweil @chndrcks
            last edited by Nov 19, 2024, 3:10 PM

            @chndrcks said in Blank Screen in Electron - fresh install on Pi Zero 2 W:

            line 55 “if [ 0 -eq 1 ]; then

            yes I just disabled that section. for install the log has to be outside the MM folder
            (as it doesn’t exist yet, until the git clone, a long way down)

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              4/5
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy