TinyPilot occationally freezes, then audio is distorted after restarting TinyPilot
I have been using the new H.264 with audio support on my TinyPilot Voyager 2a and it works well until TinyPilot freezes. When the remote screen freezes, I refresh my web browser (FireFox) and the video feed won't come back. Even MJPEG fails. The only way to get the video feed working again is to go to the TinyPilot "System" -> "Power" -> "Restart" button option.
However, after TinyPilot restarts, the audio portion of the video feed is loud and distorted--like a loud buzzing sound. The only way I can fix this is to completely power down TinyPilot and pull the power from TinyPilot. Once I have powered TinyPilot back up, the video feed and the audio work fine again. However, this is not a practical, long term solution.
- 20 replies
There are 20 replies. Estimated reading time: 14 minutes
Hi Aaron, thanks for reaching out. I’m sorry to hear you’re having problems with your TinyPilot device. I’ve not encountered this issue before so we’ll need to investigate further. Can you please send me a link to your logs the next time the device freezes, after restarting it from the web interface and after power cycling it? You can share your logs by going to System, then Logs and then Get Sharable URL.
- CIn reply toAaronP⬆:
Thanks for getting back to me. The links in your post contained potentially sensitive data so I’ve hidden them from the public forum. I’ve read through the logs and noticed that it looks like you are logging in from two different networks (one is 10.x.x.x and one is 172.x.x.x). This could be due to a VPN or similar service being active but it could also point to a network configuration issue. Can you please check if the issue happens when you are directly connected to the same local network as your TinyPilot device?
Hi Charles, Yes, the issue happens both remotely and also when I am directly connected to the same local network as the TinyPilot. I first noticed the problem when I was connected on the same local network. FYI, the issue of freezing and requiring a reboot never happened locally or remotely when using the previous version of the TinyPilot software.
- In reply tocghague⬆:
FYI: Here is the log for when I shut down TinyPilot, unplugged it and then plugged it back in. TinyPilot is running with perfect sound support again:
- CIn reply toAaronP⬆:
Thanks for confirming that both local and remote connections are affected. I might need to escalate this to our development team, but I’d like to confirm a few more details first to ensure I have the full picture. Could you please check if sounds from the target computer can still be heard when the audio is distorted? Can you please also let me know if the freezing and/or audio distortion continue if you switch to a private window or a different browser?
Hi Charles, yes sound from the target computer can still be heard clearly and cleanly--all while the audio is distorted and screeching when coming through the TinyPilot web interface on both Firefox and Chrome. Again, this only occurs after TinyPilot freezes and requires a restart. Once I initiate a TinyPilot restart after a freeze, H.264 video is restored, but audio coming through the feed is distorted and screeching: no matter if I use a different web browser or even a complete different computer on the same local network. The only solution is to power down TinyPilot and and unplug it and boot it back up. Once TinyPilot boots back up, H.264 audio is clean again. All I have to do is refresh my TinyPilot web browsing window and all is good again. The problem is that I don't want to have to power down the device every day to resolve this.
Thanks for the detailed response, that’s really helpful information. It’s unusual for a power cycle to have a different effect to a restart, so that could certainly help us to narrow down the problem. If possible, the next time the audio issue happens, could you please try detaching and then re-connecting the HDMI cable and confirming if the distortion continues?
Yes, I have already tried disconnecting the HDMI cable and reconnecting the HDMI cable after the distortion happened with the TinyPilot restart, because I thought I may have had a bad HDMI cable. I even went so far as to replacing the HDMI cable with another known good cable and the distortion still persisted. I even then went further to order a brand new 4star rated HDMI cable from Amazon, and the problem still persisted as described above. My last resort was to power down and unplug the TinyPilot device. That’s what ended up prompting me to post the very first message on this issue.
Thank you for confirming! I’ll share this information with the team and get back to you as soon as I have an update.
@cghague Any update with this issue? I'm having EXACTLY the same issue than @AaronP and I have tried EVERYTHING than @AaronP tried too. No matter what I do, the only thing that back the audio to normality, is disconnecting the TP from the power (PoE in my case). I have two TP Voyager 2a and both behave the same.
@rsotolongo - thanks for reporting this!
We received back @AaronP's device, but we haven't been able to reproduce the behavior in our environment.
Can you share a bit more about how you see this to help us investigate?
- How long does it take until you notice the effect?
- What kind of computer is the TinyPilot connected to?
- Is there anything between the device and the TinyPilot, or does the HDMI cable connect directly to the target device?
Hi, sorry for don't reply early but I was trying "new" things. I continue with the same issue. After power the TinyPilot with the official USB-C adapter it took longer until TP freeze again, and sound started to be distorted. As I said before I tried EVERYTHING @AaronP tried following @michael instructions with the same result. I mean, after a while (not know exactly how long) the TP freeze and then after TP restart the sound started to be distorted, the only way sound back to be "normal" is unplug the ethernet cable (my previous power source) and plugged back again and refresh TP in the browser. After power the TP using the USB-C adapter I was able to restart TP and sound was OK until TP freeze and no matter what I do, sound always back distorted until power cables (Ethernet and USB-C) is disconnected and connected back. Now I'm trying two different things: 1- I change the microSD card with a super faster card instead the official one included with the TP purchased (of course with latest firmware flashed/installed). 2- Accessing the TP through HTTPS secure instead of the regular HTTP that I was using before. I will let you know the result of my tests once TP freeze again. I'm connecting TP directly to a laptop in front of me: HDMI to HDMI (no middle adapters) and USB-A to USB-A (no middle adapters). The laptop is always on and it is an Asus G14.
Thanks for the additional details, @rsotolongo!
We're trying to figure this out, but we're not sure what it is yet. It seems related to the environment, because we've found that a customer who replaced their TinyPilot Voyager 2a and all cables/power still saw this issue, so we're trying to figure out what in the environment or target computer triggers this.
@michael Thanks. My TPs are product of trade-ins my previous TP Voyager 2 but I have a friend that just bought a new one Voyager 2a (not trade-in) and he started to have the same issue. He is using a super-fast MicroSD card with latest firmware flashed and high-quality HDMI and USB cables. Should be something in the hardware because restarting the device by the menu option don't solve the issue, just disconnecting the power sources for few seconds.
@rsotolongo - Yeah, this is a tricky one. We're digging into this to try and figure it out.
- Can you share what OS you're running on ASUS G14?
- Can you try disabling the automatic screen sleep on the ASUS G14 to see if that affects the frequency of this bug?
- Next time you run into this, can you try going to System > Video Settings and setting the streaming mode to MJPEG?
Can you also ask your friend that's also hitting this to get in touch with us at firstname.lastname@example.org? We're trying to see what's common across the customers who hit this so we can narrow in on the root cause.
Hi, the client laptop is running Windows 11 Home Edition with latest updates installed and with all drivers (BIOS included) updated to latest version too. Screen sleep has been disabled since day one, it is always ON laptop. If I put MJPEG as the video format I lost audio and audio is the key feature why I need Voyager 2a. I sent this thread to my friend to keep him in the loop.
If I put MJPEG as the video format I lost audio and audio is the key feature why I need Voyager 2a.
If you switch to MJPEG, does video work again? I ask only because it helps us understand what's causing the problem. If video is only frozen in H.264 mode but switching to MJPEG works, then it suggests a software problem in one of the components responsible for serving H.264 video. But if both H.264 and MJPEG are broken, it suggests a problem in the hardware or lower in the software.
Hi, once TP freeze, I change to MJPEG and video is back, but it is too slow compared with H.264 and eventually it freezes too. Example of a timeline on last Friday: TP was disconnected and connected at 11:30 AM EST, working fine (video and sound) until 09:30 PM EST (10 hours) when a black screen flashed and TP freeze. I refreshed the browser and video and sound get back perfect but 11:27 PM EST (almost 2 hours later) again a black screen flash taking out video and sound (freeze). This time no luck refreshing the browser, a restart was needed and video back to normal but not the sound. At this time, I change to MJPEG (slow, big lag) until next day (Saturday) at 10:13 AM EST that get freeze again and I change back to H.264 without sound until I disconnect and connect the power source.
Hi Ricardo, thanks for getting back to us. I just wanted to give you an update as I appreciate how frustrating bugs like this can be. We're still looking into this within the team and we're working with our hardware partners to determine the next steps in the investigation. I'll get back to you as soon as we have more information or if we have any questions. I'm optimistic we'll be able to resolve this!
- Progresswith handling this problem
- AAaron @AaronP
Video Feed Freezing and refreshing Window Fails:
Removed by TinyPilot team
After Restart of TinyPilot Device:
Removed by TinyPilot team
TinyPilot now has severely screeching and distorted audio coming through on H.264 feed:
Removed by TinyPilot team
The only way to fix this will be for me to power down TinyPilot, pull power cable and then power back up.