Closed Bug 1866303 Opened 2 years ago Closed 2 years ago

Excessive Memory Usage (3x Chrome) with mapbox-gl

Categories

(Core :: JavaScript: GC, defect)

Desktop
Windows 11
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: irvinzio.ram, Unassigned, NeedInfo)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1392547 +++

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Steps to reproduce:

The following test case crashes Safari
https://kristfal.github.io/mapbox-memory-test/
from https://bugs.webkit.org/show_bug.cgi?id=172790#c6

Actual results:

Firefox nightly doesn't crash, but it does end up using more than 1.2GB of ram

https://perf-html.io/from-addon/calltree/?hiddenThreads=&thread=2&threadOrder=0-2-3-4-6-1-5

Expected results:

Chrome only uses about 400MB of ram

(In reply to irvinzio.ram from comment #0)

The following test case crashes Safari
https://kristfal.github.io/mapbox-memory-test/
from https://bugs.webkit.org/show_bug.cgi?id=172790#c6

Actual results:

Firefox nightly doesn't crash, but it does end up using more than 1.2GB of ram

I tested on macos and Windows. The memory use never climbed. Not sure if the page is working correctly? Nothing seems to happen.

https://perf-html.io/from-addon/calltree/?hiddenThreads=&thread=2&threadOrder=0-2-3-4-6-1-5

This is a link to a local profile only, if you want others to see it you have to upload it.

Attachment #9365249 - Attachment description: mapboz scale up to GB of memory usage, this memory stays the same even if a reload the page or remove the mapbox map → mapbox scale up to 2GB of memory usage, this memory stays the same even if I reload the page or remove the mapbox map

I'm going to resolve this as invalid given Timothy's testing.

We'd need a profile, the contents of about:support before this is actionable.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE

In order to scale up the memory, you need to zoom in, zoom out and move the map, seems that map keeps rendering and using more memory each render and neve clear that memory.

I don't see a map at all in the testcase, I just see a blank page.

Flags: needinfo?(irvinzio.ram)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: