Closed Bug 1909798 Opened 1 year ago Closed 1 year ago

Large dependency graphs do not work

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: dkl)

References

()

Details

Attachments

(1 file)

View a large dependency graph such as https://bugzilla.mozilla.org/showdependencygraph.cgi?display=web&rankdir=LR&showsummary=on&id=1753933

Thanks to bug 1906996 it no longer times out, however it also doesn't generate a graph.

Instead there's a maroon blob in the top-left corner of the page and a javascript error:

Uncaught (in promise) Error: Parse error on line 416:
...-painting-fl°°91¶ß003|004fl°°93¶ß.html]) -
-----------------------^
Expecting 'STADIUMEND', 'TAGEND', 'UNICODE_TEXT', 'TEXT', 'TAGSTART', got 'PIPE'
    parseError https://bugzilla.mozilla.org/static/v20240724.1/js/lib/mermaid.min.js:359
    parse https://bugzilla.mozilla.org/static/v20240724.1/js/lib/mermaid.min.js:361
    parse https://bugzilla.mozilla.org/static/v20240724.1/js/lib/mermaid.min.js:65
    c$e https://bugzilla.mozilla.org/static/v20240724.1/js/lib/mermaid.min.js:65
    Rjt https://bugzilla.mozilla.org/static/v20240724.1/js/lib/mermaid.min.js:65

I've seen this on multiple bugs.

Seems that I also need to escape '|' characters as well which have meaning to Mermaid. If you look at the debug text using https://bugzilla.mozilla.org/showdependencygraph.cgi?display=web&rankdir=LR&showsummary=on&id=1753933&debug=1 then the following line(s) seem to be causing the crash.

1887366([1887366<br>NEW  Failing WPT css/css-pseudo/highlight-painting-#91;003|004#93;.html]) --> 1703963([1703963<br>NEW  Implement CSS-Pseudo-4 #34;highlight selectors#34;])

I will add this to mermaid_quote()

Assignee: nobody → dkl
Status: NEW → ASSIGNED

I have pushed the latest fixes in this PR to bugzilla-dev for testing. Here is the original bug causing the breakage in its full, practically unreadable glory. Hopefully most dependency trees will not be this large.

https://bugzilla-dev.allizom.org/showdependencygraph.cgi?display=web&rankdir=LR&showsummary=on&id=1753933

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: