Skip to content
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

Bad Gantt Chart Will Cause UI to Hang #5496

Open
juansc opened this issue Apr 29, 2024 · 0 comments
Open

Bad Gantt Chart Will Cause UI to Hang #5496

juansc opened this issue Apr 29, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@juansc
Copy link

juansc commented Apr 29, 2024

Description

When I paste the following into a mermaid chart renderer it freezes.

gantt
	tickInterval 1second
	dateFormat ss
	axisFormat %s

	section Network Request
	RTT : rtt, 0, 20

I read this as "Draw a gantt chart with 1 second granularity for a twenty second time interval". I'm not sure what's causing the loop.

Steps to reproduce

Paste

gantt
	tickInterval 1second
	dateFormat ss
	axisFormat %s

	section Network Request
	RTT : rtt, 0, 20

into https://develop.git.mermaid.live

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: latest as of 2024-04-29
  • Browser and Version: [Firefox, Safari]

Suggested Solutions

Maybe it can return an error indicating that the expected time window is too big?

Additional Context

No response

@juansc juansc added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant