canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Browser crashing when editing feedback in item bank question that uses iframes

Open B-D-T opened this issue 1 year ago • 0 comments

Summary:

The browser page crashes when using the GUI editing tools to format feedback to a question in the Item Bank. Editing yourself or editing in HTML mode is stable.

Steps to reproduce:

  1. Go into the Item Bank
  2. Create a new MC question. I've replicated this with MC and FIB, and I assume it would manifest with other question types as well.
  3. Give the question a title, stem, and a few answer choices
  4. In the lower left, click the button for providing question-level Student Feedback; that's the black discussion icon.
  5. Put content in a feedback box. I entered into the "Provide general feedback (regardless of answer)" section, but I assume any of the three boxes would behave similarly.
  6. Highlight some/all of the feedback text
  7. Click the Paragraph🔻 dropdown in the GUI toolbar.

At this point, the page crashes instantly, producing Chrome's "Aw, snap" page error (or "This page is having a problem" error on Edge).

Expected behavior:

The Paragraph🔻 dropdown should appear, allow you to select a different format for the text you selected.

Actual behavior:

The browser page crashes.

Additional notes:

I ran this using new questions in the new Item Bank. Error replicated in Chrome 128.0.6613.137 and Edge 128.0.2739.79 on a Windows 11 device.

I don't know if it's related, but when starting a New question, the following appears in the browser's JavaScript console:

index.tsx:40 Uncaught (in promise) Error: No tray found
    at index.tsx:40:19

B-D-T avatar Sep 14 '24 14:09 B-D-T