instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.71k stars 2.52k forks source link

gradebook page: Uncaught Error: SlickGrid requires a valid container, null does not exist in the DOM. #2013

Open akaDJon opened 2 years ago

akaDJon commented 2 years ago

Summary:

When open gradebook page sometimes happening JS fail. log in console: Uncaught Error: SlickGrid requires a valid container, null does not exist in the DOM. at init (74-c-337638ddcd.js:423:35) at new SlickGrid (74-c-337638ddcd.js:1346:1) at Qi.initialize (gradebook-c-7f9290dc2a.js:1603:11) at $a.createGrid (gradebook-c-7f9290dc2a.js:2939:20) at $a.initGrid (gradebook-c-7f9290dc2a.js:2938:13) at $a.finishRenderingUI (gradebook-c-7f9290dc2a.js:2598:113) at Object. (gradebook-c-7f9290dc2a.js:909:130) at m (main-e-5a83ede1fb.js:6010:33) at Object.fireWith [as resolveWith] (main-e-5a83ede1fb.js:6026:104) at Object. (main-e-5a83ede1fb.js:6042:87)

photo_2022-02-07_09-19-12 photo_2022-02-07_09-18-53

Steps to reproduce:

no stable reproduce, sorry most people everything ok, but several have this problem

Expected behavior:

successful load gradebook results

Actual behavior:

js fail and infinity loading page

Additional notes:

Canvas version: release/2020-11-18.29

aaronshaf commented 2 years ago

Troubleshooting:

aaronshaf commented 2 years ago

@akaDJon Ah, you're on release/2020-11-18.29. Try the latest release?

akaDJon commented 2 years ago

Troubleshooting:

  • Does the error persist on reload?
  • What does document.getElementById('gradebook_grid') return in the browser console?

not persist. one load everything ok, the next load fail, and next again ok image

akaDJon commented 2 years ago

@akaDJon Ah, you're on release/2020-11-18.29. Try the latest release?

no. it's difficult. but this error appeared recently. whole a year everything was ok

jmm-podium commented 2 years ago

We're seeing this issue as well on origin/stable/2021-08-18 of the code when using Chrome.

jmm-podium commented 2 years ago

@akaDJon - Looking the Canvas Release Notes it appears to be an issue that they've fixed in a more recent version.

https://community.canvaslms.com/t5/Known-Issues/Various-pages-fail-to-load-completely-in-Canvas-when-using/ta-p/500973

This behavior is resolved in the 2021-12-15 deploy.

I was able to deploy a newer version of canvas origin/stable/2022-02-16 and I am not able to reproduce the issue any longer.