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

[Bug] Firefox crashes when setting the itemStyle while using the SVG renderer #20481

Open
razorfever opened this issue Nov 7, 2024 · 5 comments
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@razorfever
Copy link

razorfever commented Nov 7, 2024

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-stack-normalization

Steps to Reproduce

  1. Use Firefox (latest version 132.0.1)
  2. Go to the official bar chart example (https://echarts.apache.org/examples/en/editor.html?c=bar-stack-normalization)
  3. Add the following definition to the series definition:
itemStyle: {
    shadowColor: '#000000',
    shadowBlur: 0,
    shadowOffsetX: 0,
    shadowOffsetY: 1,
  },
  1. Switch to the SVG renderer
  2. Firefox crashes

Current Behavior

Firefox crashes when setting the itemStyle options

Expected Behavior

Firefox should not crash

Environment

- OS: macOS 15.1 (happens in Windows too)
- Browser: Firefox 132.0.1
- Framework: Official ECharts website

Any additional comments?

No response

@razorfever razorfever added the bug label Nov 7, 2024
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Nov 7, 2024
@DevitX
Copy link
Contributor

DevitX commented Nov 7, 2024

Hi! I just tried this with a fresh install of Firefox and my browser didn't crash or give any issue. Have you tried this with another computer (if you can)? This is my setup:

immagine

@razorfever
Copy link
Author

Hi! I just tried this with a fresh install of Firefox and my browser didn't crash or give any issue. Have you tried this with another computer (if you can)? This is my setup:

immagine

Sorry. I made a mistake with the steps. The crash happens when you add the code to the series definition.

@DevitX
Copy link
Contributor

DevitX commented Nov 7, 2024

Sorry. I made a mistake with the steps. The crash happens when you add the code to the series definition.

Thank you, I can confirm that something is wrong with Firefox... When I click "Run" the screen flashes to gray and, if I "spam" the button, the browser crashes. In the crash log the error seems to be Bad SVGFENode render task size: 0x0.

I don't know if we can classify this as an ECharts or zrender issue/bug. Isn't this more a thing to report to Firefox (since other browser don't crash or have abnormal behavior. I tried with Chrome, Edge and Waterfox)? What do you think about this?

@helgasoft
Copy link

cannot reproduce with next (current) version 132.0.2 - Demo

@DevitX
Copy link
Contributor

DevitX commented Nov 12, 2024

cannot reproduce with next (current) version 132.0.2 - Demo

I retried it with the new version but the browser still has some problem in my case. The page can blank out for some time or crash (the page, not the browser). Thank you for trying on your system @helgasoft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

3 participants