hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.7k stars 1.17k forks source link

Loop stops after a few hours #1334

Open soulid opened 3 years ago

soulid commented 3 years ago

Not sure if this is a issue to the script. I do start the the script with followin code. After a few hours the system stops...and I do not know why:

sudo rpi-rgb-led-matrix/utils/video-viewer -F -f rpi-rgb-led-matrix/utils/Versuch1710.webm --led-rows=32 --led-cols=64 --led-chain=2 --led-pixel-mapper=U-mapper;Rotate=180

May someone is more knowledgable than me helping...

hzeller commented 3 years ago

Usually such things happen when there is some integer overflow of sorts, but I don't see that there.

Is it generally that the Pi is hanging or just the video output stops ? Sometimes that can happen if the panel is driving a large display and thus is using one core entirely to update that panel, but 32x128 seems moderate.

Are you using the isocpus setting which can help the kernel easier allocate resources to the correct cores ?

hzeller commented 3 years ago

another idea: did you start this on a remote shell and that got closed for whatever network reason at some point, so that it took the process with it ? In that case, maybe adding the --led-daemon will help as it puts the process in the background.

soulid commented 3 years ago

Got the issue. I started the script by SSH and as soon as I log off the SSH the script stops working. I solved my issue to add this to the .bashrc. Now it works perfectly fine- I cannot cancel the sript but found a workaround by renaming the movie source directory and therefore cancel the executetion)

soulid commented 3 years ago

I will try to use the --led-daemon. Thynks for your help!

hzeller commented 3 years ago

In your shell, you can stop the process by calling

sudo killall video-viewer