The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 Code format
source | link

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.play();
    };
    videoTag.onended = function () {
        playVideo();
    };

    playVideo();
};

};

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.

Thank you!

David

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.play();
};
videoTag.onended = function () {
    playVideo();
};

playVideo();

};

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.

Thank you!

David

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.play();
    };
    videoTag.onended = function () {
        playVideo();
    };

    playVideo();
};

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
source | link

Raspberry Pi Chromium Browser freeze after video playback

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.play();
};
videoTag.onended = function () {
    playVideo();
};

playVideo();

};

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.

Thank you!

David