Opened 7 years ago

Closed 5 years ago

Last modified 4 years ago

#13287 closed bug (fixed)

Massive memory consumption with embedded video

Reported by: taos Owned by: pulkomandy
Priority: normal Milestone: R1/beta2
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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 7 years ago.
Web+ crash on heise.de
heise-source.html (9.0 KB ) - added by axeld 7 years ago.
Responsible page source from humdinger

Download all attachments as: .zip

Change History (11)

comment:1 by taos, 7 years ago

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 by humdinger, 7 years ago

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... :)

by humdinger, 7 years ago

Web+ crash on heise.de

comment:3 by humdinger, 7 years ago

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

by axeld, 7 years ago

Attachment: heise-source.html added

Responsible page source from humdinger

comment:4 by axeld, 7 years ago

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

comment:5 by humdinger, 7 years ago

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 by cocobean, 6 years ago

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 6 years ago by cocobean (previous) (diff)

comment:7 by cocobean, 5 years ago

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 by waddlesplash, 5 years ago

Resolution: fixed
Status: newclosed

Indeed.

comment:9 by nielx, 4 years ago

Milestone: UnscheduledR1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.