I have a very simple html page, directly running from file (file:///home/pi/Desktop/myfile.html), which infinitely replays a video anytime it ends.

  • Device: Raspberry Pi 3 Model B + 16GB SD Card
  • OS: Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux
  • Browser: Chromium 72.0.3626.121 Built on Raspbian , running on Raspbian 9.3

The videos I'm playing are very short (about 3 seconds), and bitrate of around 5Mbps.

Here's my js script:

window.onload = function () {

    var videoUrl = 'video_3s.mp4';
    var videoTag = document.getElementById('video_place');

    function playVideo() {
        videoTag.src = videoUrl;

    videoTag.oncanplay = function () {
    videoTag.onended = function () {


After about 40 iterations, chromium randomly freezes during the video playback. No errors thrown into console. OS keeps running smoothly though. If launching chromium from the terminal, I get a 'Bus error' message before forcing the browser to close.

I've tried increasing gpu memory to 256MB and swap size to 1GB, but I'm getting the same behavior.

Any help would be appreciated.

  • 1
    Why are you using a browser to play a video? Why not use 'omxplayer'? – CoderMike Jun 18 at 17:32
  • 1
    @CoderMike It's a requirement from a bigger project, The script there is just a sample to replicate the issue of the video freezing. – David G. Jun 19 at 9:38
  • But where is the problem with Raspberry Pi? – Ingo Jun 19 at 16:59
  • 1
    It only happens on the pi. Granted, it could also have something to do with Raspbian itself. – David G. Jun 24 at 9:18
  • Please clarify: Is chromium frozen? Or the page inside chromium? – Botspot Sep 3 at 0:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.