Closed Bug 1903536 Opened 2 years ago Closed 2 years ago

"Ranges must be added sorted" error when switching between different frames in the callstack panel

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce

  1. Go to https://nchevobbe.github.io/demo/console-test-app.html
  2. Open the debugger
  3. Open the console-test-animation.js file
  4. Add a breakpoint on line 52
  5. Click on the console.log button in the page to hit the breakpoint
  6. In the call stack panel, select the first update frame, and then the particles one, and repeat the operation multiple time, switching from update to particles

Actual results

It doesn't happen straight away, but at some point, this is triggering error message:

CodeMirror plugin crashed: Error: Ranges must be added sorted by `from` position and `startSide`
    addInner resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    add resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    buildDecorations resource://devtools/client/shared/sourceeditor/editor.js:750
    <anonymous> resource://devtools/client/shared/sourceeditor/editor.js:775
    fromClass resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    update resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    updatePlugins resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    update resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    dispatchTransactions resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    dispatch resource://devtools/client/shared/sourceeditor/codemirror6/codemirror6.bundle.mjs:1
    setLineContentMarker resource://devtools/client/shared/sourceeditor/editor.js:932
    renderInlinePreviewMarker resource://devtools/client/debugger/src/components/Editor/InlinePreviews.js:85
    componentDidUpdate resource://devtools/client/debugger/src/components/Editor/InlinePreviews.js:62
Severity: -- → S3
Priority: -- → P2
No longer blocks: cm-next

I can't seem to reproduce this error. I think it might be fixed by Bug 1898157

Nicholas, can you confirm you still see this?

Flags: needinfo?(nchevobbe)

yeah, it seems to be fixed 👍 Let's close this bug

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(nchevobbe)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.