No internet connection
  1. Home
  2. Technical Support

TinyPilot occationally freezes, then audio is distorted after restarting TinyPilot

By Aaron @AaronP
    2023-02-17 18:53:23.660Zassigned to
    • @cghague

    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.

    • 27 replies

    There are 27 replies. Estimated reading time: 17 minutes

    1. C

      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.

      1. C
        In 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?

        1. AAaron @AaronP
            2023-02-23 18:39:58.631Z

            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.

            1. In reply tocghague:
              AAaron @AaronP
                2023-02-23 21:49:37.579Z2023-02-25 22:35:29.536Z

                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:

              • C
                In 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?

                1. AAaron @AaronP
                    2023-02-24 18:34:18.396Z

                    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.

                    1. 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?

                      1. AAaron @AaronP
                          2023-02-24 19:20:53.508Z

                          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.

                          1. Thank you for confirming! I’ll share this information with the team and get back to you as soon as I have an update.

                            1. RRicardo Sotolongo @rsotolongo
                                2023-03-24 15:56:05.029Z

                                @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.

                                1. @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?
                                  1. RRicardo Sotolongo @rsotolongo
                                      2023-03-29 00:27:38.036Z

                                      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.

                                      1. 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.

                                        1. RRicardo Sotolongo @rsotolongo
                                            2023-03-29 22:07:21.878Z

                                            @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.

                                            1. @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 support@tinypilotkvm.com? We're trying to see what's common across the customers who hit this so we can narrow in on the root cause.

                                              1. RRicardo Sotolongo @rsotolongo
                                                  2023-03-31 11:36:17.229Z

                                                  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.

                                                  1. 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.

                                                    1. RRicardo Sotolongo @rsotolongo
                                                        2023-04-04 15:07:58.000Z

                                                        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.

                                                        1. 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!

                                                          1. PParker @parker
                                                              2023-11-25 21:51:11.500Z

                                                              Was any progress made on this? I believe we're experiencing the same problem with a recently purchased refurb TinyPilot POE.

                                                              It works great for a while, then the image will freeze. We have it plugged into a KVM, and switching inputs, or unplugging the TP HDMI, will continue to show the same image. I can't speak to the audio, since we aren't using it.

                                                              The web interface still responds, but the video stream remains the same. Restarting the TP from the interface will help, sometimes, only briefly, before it freezes again. A hard restart will help for a longer amount of time, but inevitably will freeze again, sometimes pretty quickly.

                                                              1. RRicardo Sotolongo @rsotolongo
                                                                  2023-11-27 03:58:30.775Z

                                                                  Unfortunately, there was no work-around. My three TP PoE were, one by one, sent back to TinyPilot and replaced with new ones. Since then, I had no other issues with the image or with the sound. Very happy with the devices working 24/7.

                                                                  1. In reply toparker:

                                                                    Hi @parker, thank you for your message. I'm sorry to hear you're having issues with video freezing.

                                                                    I'd like to investigate this further, as there could be a few potential explanations. Could you please send me a link to your logs the next time the video freezes? You can do this by going to System, then Logs, then Get Shareable URL.

                                                                    1. PParker @parker
                                                                        2023-11-27 20:37:31.158Z

                                                                        Will-do.

                                                                        Is there a different place I should send logs rather than posting here?

                                                                        For now, I have adjusted some of the encoding settings to see if it helps.

                                                                        1. Thanks for the quick response! The Log window will generate a URL that you can post on this thread. You can preview the information that will be shared, and an optional setting will hide potentially sensitive information.

                                                                          1. PParker @parker
                                                                              2023-12-02 02:53:20.412Z

                                                                              We just had it happen again. I pulled the log link, with sensitive data hidden, but it appears there are still some domains in there I would rather not post publicly. Is there another option?

                                                                              Thanks.

                                                                              1. Thanks for getting back to me! I completely understand and would be happy to continue this investigation over email. Can you please send the logs as an attachment to our support email address, mentioning this thread in the message?

                                        2. Progress
                                          with handling this problem
                                        3. A
                                          Aaron @AaronP
                                            2023-02-23 01:55:45.725Z2023-02-23 12:14:37.854Z

                                            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.