Canvas taking high CPU using Chrome

Jump to solution
KONGHEYI
Community Explorer

Hi I have been using Canvas for a while, but this issue appears lately. I am using Windows 10. When I open the canvas page using Chrome, click into ANY course and goto the "quiz" / "file" / "videos" section, the computer's CPU usage naturally goes to as high as 60% even if I do nothing and left it there as it is. May I know if anyone faces a similar issue, and how can I resolve this?

P.S.: I have tried to restart my computer, or restart the Chrome, or clear Chrome browser data. None of them help. 

4 Solutions
KristinL
Community Team
Community Team

Hi Community Friends! 

If you haven't already, please open a case with Support. The L1 agents will be able to take a look at your account and be able to better troubleshoot with you on a 1:1 basis. Additionally, these cases will be linked and will help determine whether or not there is a larger issue. In either situation, you'll receive updates along the way!

 

View solution in original post

KONGHEYI
Community Explorer
Author

I asked my school's Canvas support team, and from them, I managed to have some communication with the L1 and L2 Canvas support team. Currently, they claim that it is the problem of Chat tool being enabled in the course causing the spike in CPU. They promised to have their engineers looking into it, but do not give an exact timeline to address it. Therefore, it may help a lot if more people encountering this issue could voice out and raise the alarm to Canvas support team.

The email address I communicate with the Canvas support team is support@instructure.com

Alternatively, you can contact your school's Canvas support team, which will help to create the ticket to contact Canvas support.

View solution in original post

calvin237642
Community Novice

Disabling the Metamask extension solves the problem.

 

If anyone can open a ticket with Instructure, please include this with the devs:

I used the CPU profiler in chrome and found out that `Window.postMessage()` keeps being called in a loop. Metamask injects JS into all webpages and it seems that both Canvas and Metamask are using the same API to send messages in the window. Somewhere a `window.addEventListener("message", ...)` is also calling `Window.postMessage()` creating a loop. A quick fix would probably be just add a field to the message identifying the message as being from Canvas and discard the ones that are not from Canvas.

View solution in original post

KONGHEYI
Community Explorer
Author

Recently, I heard from the Canvas support team again. This is their response:

(1) Thank you for the reply back to us. Our engineers deployed a fix for the behavior we were seeing with this yesterday. If you are still seeing this happen, can you provide a link to a current example of where we can see this still happening in Canvas to investigate further?
(2) There was a problem with our code which was making a specific call to be run in a loop which was causing the high CPU. The code has been modified to stop this now.

If you are still having this issues / find the issue resolved, feel free to respond here so that the Canvas support team could have the accurate information. Thanks!

 

 

View solution in original post