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

Abnormally high CPU usage from canvas element?

Open
#8,653 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
JavaScript
Stars
179
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report on the code4rena main page with the supplied canvas element, comparing CPU usage in Chrome and under the reported conditions. Inspect the page's three.js r150 canvas behavior and document a reliable reproduction, including any graphics-card or environment differences. Done means the cause is identified or the report is narrowed with enough evidence for a follow-up.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.