-
Notifications
You must be signed in to change notification settings - Fork 428
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
Error Rendering Mermaid Diagram #130
Comments
Hi @zicklag, Thanks for reporting this bug. Can you share an example which reproduces this? |
@DanielRuf sounds like a bug with the .mermaid generator.It is basically a plug-in that will create a "#graph svg" element with a mermaid graph, then take a snapshot of it. So the "#graph svg" is not defined by the user. |
Ah ok. But still may be helpful to have a reproducible example. Probably some race condition (the element is not directly available but after a specific amount of time). |
We do not use the callback so it is asynchronous at the moment, see https://pugjs.org/api/reference.html#pugrenderfilepath-options-callback. We can probably use async / await. |
Hi @DanielRuf, thanks for looking into this, I got this error running An interesting note, though this might be a separate issue, is that when I start Relaxed while my Firefox browser is running, as soon as relaxed renders the page and goes into an idle state, it somehow causes Firefox to start running all four cores on my CPU at 100% for no explainable reason. It is really strange. If Relaxed uses Chrome for rendering the page and it is idle anyway, how does it cause some weird reaction in Firefox. Even if I close relaxed afterwards, Firefox will not calm down until I close and restart it. Also if I start Firefox after starting Relaxed, there are no problems, it is only if I start Relaxed while Firefox is running. |
Not sure how this can be related. Probably an issue in puppeteer which we would have to inspect much deeper. |
I have an issue when trying to use mermaid diagrams in a document. When I run
relaxed
in the official "Report" example, the project will build just fine, but when I update the.mermaid
file, it detects the change and tries to render the diagram before it times out with the following error:The text was updated successfully, but these errors were encountered: