Opened 2 years ago

Closed 7 weeks ago

#13287 closed bug (fixed)

Massive memory consumption with embedded video

Reported by: taos Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by humdinger)

I'm on hrev50943 64bit at the moment, running either from a partition mounted in Virtualbox or on bare metal booting from the same partition with haiku_loader.efi, WebPositive is using HaikuWebKit 1.5.4 (WebKit 602.1.1).

Whenever I open heise.de, the memory used by WebPositive grows very fast until all of my RAM (2 GB for Virtualbox, 8 GB if I'm booting into Haiku) is consumed and Haiku freezes completely (takes no more than a few minutes). If I close the heise.de tab before reaching that point, memory consumption goes down almost immediately.

Not sure if this is relevant: when starting WebPositive from Terminal I get the following lines with the last message repeated several times:

Create 0:1
MESSAGE https://ssl.ligatus.com/render/ligrend.js?ts=2.9:28:6655: No page URL detected. Skipping RCE call...
MESSAGE https://tpc.googlesyndication.com/pagead/gadgets/html5/layout_engine.js?:144:467: Blocked a frame with origin "https://tpc.googlesyndication.com" from accessing a frame with origin "https://www.heise.de". Protocols, domains, and ports must match.
MESSAGE https://tpc.googlesyndication.com/pagead/js/r20170206/r20110914/activeview/osd_listener.js?:1:16499: Blocked a frame with origin "https://tpc.googlesyndication.com" from accessing a frame with origin "https://www.heise.de". Protocols, domains, and ports must match.

Attachments (2)

WebPositive-11573-debug-10-02-2017-08-53-50.report (92.8 KB) - added by humdinger 2 years ago.
Web+ crash on heise.de
heise-source.html (9.0 KB) - added by axeld 2 years ago.
Responsible page source from humdinger

Download all attachments as: .zip

Change History (10)

comment:1 Changed 2 years ago by taos

It seems the gcc2 hybrid version is affected, too. However, the memory is not freed after the tab is closed but only after WebPositive is closed.

comment:2 Changed 2 years ago by humdinger

I see that too, however Haiku doesn't freeze for me, but Web+ crashes. Attached is the debug report.

On the heise.de site Web+ starts downloading something full-throttle, I suspect it's a video linked from the sidebar. Attached is the part of the page's source code responsible for that. Would be nice if Web+ waited for me to click on the video first... :)

Changed 2 years ago by humdinger

Web+ crash on heise.de

comment:3 Changed 2 years ago by humdinger

Trac keeps refusing the page source as spam and doesn't accept my captcha input... The page source is now at http://sprunge.us/UYWN

Changed 2 years ago by axeld

Attachment: heise-source.html added

Responsible page source from humdinger

comment:4 Changed 2 years ago by axeld

I could attach it just fine, so there it is.

comment:5 Changed 2 years ago by humdinger

Description: modified (diff)
Summary: [WebPositive] Massive memory consumption for heise.deMassive memory consumption with embedded video

A similar issue, though here Web+ just quits after a while, can be seen with the embedded vimeo player at the commercial site Nerdalize.

comment:6 Changed 11 months ago by cocobean

Tested on hrev52058 x86_gcc2 - This consumed 1GB RAM on hrev52058 x86_gcc2 using WebPositive 1.1 within a few minutes: Apple WWDC 2018 Youtube video, https://youtu.be/UThGcWBIMpU

Older x86 laptops are limited to 2GB RAM. This issue easily overpowers laptops using <= 1GB RAM within minutes. See #13214.

Last edited 11 months ago by cocobean (previous) (diff)

comment:7 Changed 7 weeks ago by cocobean

Fixed with haikuwebkit 1.6.9 update (heise.de, tested on hrev53024 x86_gcc2). Didn't grow in memory after page load completed.

comment:8 Changed 7 weeks ago by waddlesplash

Resolution: fixed
Status: newclosed

Indeed.

Note: See TracTickets for help on using tickets.