We have moved to a new Sailfish OS Forum. Please start new discussions there.
29

[Bug] OOM handling is likely prevents playing long videos in browser

asked 2015-03-15 09:44:20 +0200

rburkhanov gravatar image

Run across this today. I was trying to watch a long video (appr. 2 hours) on youtube, but after a couple of minutes browser just shut down as well as all other opened apps (not so much, by the way, just settings and fbreader). I've tried to start it over again for a few next times, but always with the same result: browser was closed after about a couple of minutes independent of from what place I was starting the video, or even if I started another video of approximately the same length. (I wanted to check if it was something wrong with the video file itself which was causing browser error).

The only idea in my mind for what's wrong is that browser tries to download the full file into the memory, which causes at some point OOM problem and triggers closing the app (browser) to free some memory.

edit retag flag offensive close delete

Comments

1

I think the browser should not use memory so much but more the cache on internal disk space instead. I think this can be configured via the mozilla profile.

As a workaround use something like LLs Video Player or another Youtube viewing app (or even another browser as Webcat and WebPirate [the Webkit based ones] do it both correctly without crashing)

leszek ( 2015-07-20 20:07:09 +0200 )edit

bump still not fixed / acknowledged by Jolla.

zokker13 ( 2015-08-05 07:50:30 +0200 )edit

Could you give an URL of such a video?

tigeli ( 2015-08-05 09:48:59 +0200 )edit

https://m.youtube.com/watch?v=RSFHuIaeons This one for example, crashes somewhere at the middle.

rburkhanov ( 2015-08-05 17:11:06 +0200 )edit

2 Answers

Sort by » oldest newest most voted
5

answered 2015-08-07 19:37:23 +0200

tworaz gravatar image

updated 2015-08-07 19:51:21 +0200

My guess is this might be related to one of the GPU memory leaks in gecko we fixed recently. Sailfish browser uses tiling feature in gecko which is not in best shape in version 31. I did backport some fixes from v32 and they are already merged to our release branch. They should make it into next stable release. I'll see if I can find some time next week to check if this is really the case.

edit flag offensive delete publish link more

Comments

At least the Sailfish 2.0 update did not help with this. I tested the browser with a 50 Minutes video and the Browser got restarted several times. I can't really tell if it's the same issue. Currently, my apps close after a few minutes. Sometimes right after start. So there's another issue overshadowing the original issue.

zokker13 ( 2015-09-20 10:06:12 +0200 )edit

When the video was playing was the screen turned on? After 1.1.9 was released we've noticed that the engine leaks memory when the video is playing with screen turned off. Turns out eglSwapBuffers was blocking indefinitely. As a result gecko compositor thread was not able to flush its queues and the leak occurred. If this is the case the bug should be fixed in 1.2.0.

tworaz ( 2015-09-22 21:24:56 +0200 )edit

The screen was turned on all the time.

zokker13 ( 2015-09-22 21:58:21 +0200 )edit
2

answered 2015-07-20 12:38:55 +0200

heubergen gravatar image

Bug still exist (https://together.jolla.com/question/101368/browser-crash-long-videos-youtube/), so please vote here.

edit flag offensive delete publish link more

Comments

Please convert this to a comment

simo ( 2015-07-22 02:27:03 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-03-15 09:44:20 +0200

Seen: 629 times

Last updated: Aug 07 '15