-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mermaid diagrams are broken #31960
Comments
I can reproduce this using Firefox 97.0 on Ubuntu /triage accepted |
I can consistently reproduce this on macOS 12.2.1. This is a fresh Firefox installation without any add-ons. However, switching to another network seems to fix the issue. Switching to my phone's tethered 4G network causes it to load properly in Firefox on macOS, switching back to our office network breaks it again. I cannot find any console logs and network requests seem to successfully go through as well. Downloading mermaid.min.js on both networks and comparing hashes results in the same hash for both files. Artificially throttling the request to "Regular 4G" using Firefox's developer tools seems to fix the issue on our office network. Maybe it is a race condition? Your first link seems to suggest a fix is published, maybe an update of the site generation tools would fix this? |
/retitle Mermaid graphs are broken (replicable with Firefox) |
/retitle Mermaid diagrams are broken (replicable with Firefox) |
Cannot reproduce using firefox 95.0.2 (64-bit) on mac 10.15.7. @sftim, thoughts on this? |
/assign @chrismetz09 |
I can reproduce this reliably but not on first page load. |
This is a multihomed PC by the way; 2 IPv4 addresses and 4 IPv6 addresses, so the browser will be using something similar to Happy Eyeballs. |
Random number of reloads DOES produce the error using firefox 98.0 on mac 10.15.7. I was able to reproduce @NanoSector observation describing firefox 4G throttling that seems to mitigate the problem. |
@sftim @NanoSector @jihoon-seo
Still testing and will report back. |
Do we want to tell users to install add-on before using?
@sftim, guidance requested. Options I see are: a) close the issue with a firefox mitigation note. Also add note in Diagram Guide. b) Pass it on to web-dev folks? tx |
@chrismetz09 would you be willing to add this to the agenda for the next SIG Docs meeting and / or highlight this via Slack as an issue that needs attention? |
Will do. |
Updated to Mermaid 8.14.0 on test branch. Replicated previously observed behavior:
As mentioined in very rare chrome occurrence and frequent FF reloads, you see the following: Verified checksums to ensure downloaded
|
Just noting this persists on Firefox 100.0b3 on the first load, and cleared up after a refresh.. |
Maybe Mermaid 9.0.0 would help? |
Confirmation Details:
Speculation |
I can confirm that The diagram How does a HorizontalPodAutoscaler work also fails to render in Firefox (112.0.1) in both standard and private modes. |
If we have duplicates of this issue and either:
then it's OK to close that duplicate issue - not this one - with an explanatory note. |
Duplicated by #42625 |
FYI: I ran into this bug today and for me I figured out that the Privacy Badger v2023.10.31 extension in Firefox was causing issues with mermaid for some reason. Once I disabled Privacy Badger protection, the diagrams loaded up just fine. Privacy Badger was only detecting 3 potential trackers, which even if I manually allowed those connections to go through, the diagrams would still not work properly. I was using Firefox v119.0.1 on Ubuntu Linux 22.04. The Kubernetes documentation page I saw this issue on today was here: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ Lastly, for what it's worth when the diagram fails to load it mentions that mermaid v8.13.4 is used, but that was released two years ago on 2021-11-18. As of this writing, mermaid is on v10.6.1 (2023-11-06), so I'm wondering if a version upgrade for mermaid may help fix this bug? |
Help is very welcome! |
I'll help with this, This needs some debugging |
Looks like we load the Mermaid script in two places. I'm not sure that's helpful. See #44644 (review) |
Also see #44768 |
Latest report details to help @chrismetz09 debug it:
...but these errors appeared even when the diagrams rendered successfully, AFAICT. I have basically ignored Javascript since the 1990s (on purpose), so I am slow at debugging front-end issues across different frameworks and browser platforms. Hope this helps. |
Happens to me on Safari 17.4 For example on https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ : A reload solved it for now |
Are folks still seeing these symptoms? |
I wasn't able to reproduce it today |
Let's treat this as fixed! /close |
@sftim: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This is a Bug Report
Problem:
The graphs on the Ingress page are broken in Firefox, but seem to work properly in Chromium. I am unsure if this happens on other pages as well.
Firefox:
Chromium:
Proposed Solution:
The graphs should be working in Firefox, possibly by fixing the unknown "syntax error".
Page to Update:
https://kubernetes.io/docs/concepts/services-networking/ingress/
Additional Information:
The text was updated successfully, but these errors were encountered: