code-423n4 / code-423n4/code423n4.com

Abnormally high CPU usage from canvas element?

未关闭
#8,653 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug help wanted
主要语言
JavaScript
星标
179
派生
173
PR 合并指标
30 天内没有已合并 PR

描述

Reported at https://discord.com/channels/810916927919620096/810931711609143326/1089772242361127033:

<canvas id="background" data-engine="three.js r150" width="807" height="170" style="width: 807px; height: 170px;"></canvas>

Above code is from code4rena main page , someone need to check for issues in this piece of code that caused my computer to freeze by using 100% of its CPU resources every single time .

I do not see similar testing in Chrome myself, but could be something to review or at least keep an ear out for if other similar reports come in to corroborate or provide more clues as to the situations that could cause this (e.g. is it graphics-card dependent?).

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用提供的 canvas 元素在 code4rena 主页上复现该报告,并比较 Chrome 中的 CPU 使用率与报告条件下的 CPU 使用率。检查页面的 three.js r150 canvas 行为,并记录可靠的复现步骤,包括任何显卡或环境差异。确定原因,或使用足够的证据缩小报告范围以便后续跟进,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, three.js
领域
frontend, web-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。