Comment by dmurray

Comment by dmurray 3 days ago

7 replies

Last night I downloaded a TV episode and played it in VLC. 30 seconds in, the power failed. Fine, it's an old laptop I'm using as a media server, battery is long dead - this never happened before but maybe something is loose. I checked the power supply and restarted it. It failed again at the same point in the video, and again a third time. Something about that video causes my laptop to die.

I turned it off and went to bed. Maybe I'll troubleshoot it today. But I'd love to understand what could have happened. The closest thing I know of is the Janet Jackson video that could crash hard drives [0]. In this case the sound was playing on a different device (my TV) so I don't think it's the same explanation.

For extra weirdness, the episode was Black Mirror S7E01. Exactly the kind of thing the creators would like to build into a Black Mirror episode.

[0] https://devblogs.microsoft.com/oldnewthing/20220816-00/?p=10...

jerf 3 days ago

Dying on the exact same frame, or just generally in the same spot?

In the case of the latter my first thought would be thermals. Different video codecs have significantly different decoding costs, and may also stress different parts of your system. You could check for that by playing that same video but not starting at the beginning and see if it's the same duration. Or jump to just before it dies and see if it plays through.

If by "downloaded" you mean The High Seas, those who provision the high seas are often on the cutting edge of using codecs with every last feature turned on to make the videos smaller to squeeze every last bit out of the encodings that they can, which can make them unusually expensive to decode. Or so I've heard.

  • dmurray 2 days ago

    I didn't get to dig much further into it, but for those of you who suggested ideas:

    - not always the same frame. The first three failures were within seconds of each other, possibly the same frame. I tried again the next night and it got through that part of the video, but crashed a minute later - I was able to play the video using a different app (Ubuntu's built-in Videos app from an old Ubuntu release, maybe 20.04)

    • its_ubuntu a day ago

      It's Ubuntu. Trust me.

      This is why I built my own distro. It took a while for me to re-learn which are actually good or bad apps. I had spent so long using the garbage Ubuntu versions only to find that the same apps, when compiled from scratch on my vanilla distro, work just fine and are way more solid and reliable.

      VLC was one of those. But really, you should be using MPV instead as it's a far superior video player, or Audacious (in classic WinAmp/XMMS mode) for playing audio. VLC just sucks.

      Hope this helps.

      • dmurray 12 hours ago

        VLC failed on other videos from the same source.

        Ubuntu's default player worked. I've rarely used it.

        Some bug in VLC with whatever codec these use, and then some system level bug allowing that to kill the whole machine.

        • its_ubuntu 5 hours ago

          Nah, it's not a bug in VLC. It's a bug in whatever janky patches Ubuntu applies to the entire ecosystem, including VLC. Somehow or another they screw things up.

          I had the same thought as you at first, and was so unimpressed with buggy ass VLC on Linux Mint I was going to revert to the 2.x version, when I first built my distro. It wouldn't compile however, so I was forced to go to the latest 3.x. It turned out to work fine. The problems I had on Ubuntu just vanished and it was rock solid.

          Now VLC did turn out to have some actual problems in the end that shifted me to MPV permanently. But nothing like crashing the whole system. That's all Ubuntu right there.

amalcon 3 days ago

Some of these video codecs have pathological cases that might be maxing out your video while doing the decoding. If you're only using it as a media server, that might exceed the (possibly age-degraded) capacity of your power supply. Replacing the power supply might help in that case.

It's also possible that something in a particular frame is triggering a bug in your driver and crashing that way. In that case, your best bet might be to transcode the video to a different codec or something.

Maybe your particular video download is from an entirely trustworthy source, but it's not unheard of that untrustworthy folks will modify a file with the intent of causing this to happen.

aiahs 3 days ago

If you manage to find out what the cause is, I'd love to hear it.