You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
memory leak for open the url https://bigmodel.cn/glm-coding #44940
let _ = self.script_chan.send(ScriptThreadMessage::ReportCSSError(
self.pipelineid,
url.0.to_string(),
location.line,
location.column,
error.to_string(),
));
. We appear to be stuck in an infinite loop in JS that's just calling matchMedia with an unsupported media feature, so the script thread never gets a chance to drain the queue of tasks that are reporting CSS errors.
let _ = self.script_chan.send(ScriptThreadMessage::ReportCSSError(
self.pipelineid,
url.0.to_string(),
location.line,
location.column,
error.to_string(),
));
. We appear to be stuck in an infinite loop in JS that's just calling matchMedia with an unsupported media feature, so the script thread never gets a chance to drain the queue of tasks that are reporting CSS errors.
When I first opened this website, I didn’t notice that the memory usage was continuously increasing until I couldn’t even open the Task Manager. After restarting my computer, I realized that the resource consumption was too fast. Since I needed to use a proxy, I tested it down from version 0.1 until version 0.0.5 of serve, and the issue still persisted. I haven’t yet verified whether this problem exists on other platforms.
The following changes implement the device-width and device-height CSS media features, allowing the website to load as expected without any memory consumption issues:
Activity
jdm commentedon May 15, 2026
It also is completely unresponsive, with a profiler showing that 43% of all time is spent under MediaList::parse 😕
jdm commentedon May 15, 2026
And it spends 13% of time just logging CSS errors 😓
from RUST_LOG=script::dom::window=info
jdm commentedon May 15, 2026
Hilariously, the ballooning memory usage goes away if I comment out
servo/components/script/dom/window.rs
Lines 3950 to 3956 in f735c23
jsuzsj commentedon May 15, 2026
When I first opened this website, I didn’t notice that the memory usage was continuously increasing until I couldn’t even open the Task Manager. After restarting my computer, I realized that the resource consumption was too fast. Since I needed to use a proxy, I tested it down from version 0.1 until version 0.0.5 of serve, and the issue still persisted. I haven’t yet verified whether this problem exists on other platforms.
jdm commentedon May 15, 2026
The following changes implement the device-width and device-height CSS media features, allowing the website to load as expected without any memory consumption issues:
The branch needs cleanup before it's mergeable:
layout: Enable `device-width`/`device-height` media queries (servo#44978