kevinatown / MMM-Screencast

A module to cast to the magic mirror
MIT License
165 stars 33 forks source link

Cast not work or work slowly #119

Open marcinzel opened 2 years ago

marcinzel commented 2 years ago

Hi, I have problem with run cast from phone to MMM-ScreenCast. My board is RPI4. Other modules work ok. I run npm in debug mode and paste below log. Please help me repair issue.

[18.11.2021 22:20.22.794] [LOG] screencast stdout:

magicmirror-screencast@0.0.5 start /home/pi/MagicMirror/modules/MMM-Screencast electron app.js

[18.11.2021 22:20.24.493] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall 0403

[18.11.2021 22:20.25.282] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall [18.11.2021 22:20.25.284] [LOG] screencast stderr: 0403

[18.11.2021 22:20.26.007] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall [18.11.2021 22:20.26.009] [LOG] screencast stderr: 0403

[18.11.2021 22:20.26.110] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall 0403

[18.11.2021 22:20.26.197] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall 0403

[18.11.2021 22:20.26.285] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall 0403

[18.11.2021 22:20.26.320] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall [18.11.2021 22:20.26.322] [LOG] screencast stderr: 0403 [18.11.2021 22:20.26.323] [LOG] screencast stderr:

[18.11.2021 22:20.26.359] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall [18.11.2021 22:20.26.360] [LOG] screencast stderr: 0403 [18.11.2021 22:20.26.362] [LOG] screencast stderr:

[18.11.2021 22:20.26.399] [LOG] screencast stderr: ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:CRASHING:seccomp-bpf failure in syscall 0403

[18.11.2021 22:20.26.409] [LOG] screencast stderr: [1818:1118/222026.409162:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

[18.11.2021 22:20.26.462] [LOG] closing code: 0

kevinatown commented 2 years ago

@marcinzel this is an odd one. do you have any more info or any more logs? Can you try and run it like:

display=:0 npm start >> log.log

can you also provide me with info on the OS you using on your RPI?

poucedeleon commented 2 years ago

Good Afternoon Kevin. I have just enterer into the RaspberryPi world and chose your module as my first to install. I have a new install on a Pi 4b 4gb (rev C03112), Raspbian GNU/Linux 11 (bullseye) My MagicMirror2 install only has the default modules installed, which are all working fine. I have installed MMM-Screencast with no problem, and have added the configuration.

When I try to cast Youtube from my iPhone XS Max or iPad Pro, I can see the pi (MirrorCast) but they do not connect. On the iOS devices the cast icon just flashes, but never connects. I have read every post I could find on this issue, but have not been able to resolve the problem.

I configured MMM-Screencast is it's default position, and have ensured there are no other modules conflicting with this position. I have attached my install log and the log from the procedure you listed above RaspberryPi Logs.zip IMG_0072 IMG_0071 .

mearkats commented 2 weeks ago

Personally, I've found this to be a performance limitation of the Raspberry Pi's, I was trying to use this with MagicMirror2 and a Raspberry Pi 3B and the performance was shocking, switched this out for an old 2011 MacMini and it works wonders now.