this post was submitted on 17 Jan 2025
306 points (98.7% liked)

Programmer Humor

19992 readers
1506 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 7 hours ago (1 children)

Ah that's interesting. If you can swap the devices from one pi to another, try powering it all up on machine A, then swap the devices to machine B and power that on. Might tell you if the issue is with on the pi side or with the devices.

Is latency higher on the first boot than on subsequent ones? I'd be looking into race conditions if you're seeing a bit of lag cascade out into bigger problems. Race conditions are the worst, especially when the race most often goes the right way and just occasionally goes the wrong way. Though you can force the wrong way by adding delays in your code, if you have an idea of where the race is happening.

[–] [email protected] 2 points 6 hours ago (1 children)

We have 3 theoretically identical systems here and this same issue occurs on 2 of them. The 3rd one... has bigger issues right now. That would be interesting to see what happens if I swap the Pis around but I'd give it >95% chance the same thing happens.

[–] [email protected] 2 points 2 hours ago (1 children)

The important bit is to power one on first before the swap, then you'll have one setup where the pi was recently powered on and another setup where the connected devices were recently powered on. You might see the issue on only one of the devices, at which point you can say if it's the pi being off for a while or the devices that triggers the issue.

[–] [email protected] 1 points 1 hour ago* (last edited 1 hour ago)

Good point. I disabled the internet on both systems so when I come in on Monday hopefully I can confirm whether or not the date/time aspect is a problem. I'll try this as well.