apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.63k stars 19.61k forks source link

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

Open razorfever opened 1 week ago

razorfever commented 1 week ago

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,
    },
  4. Switch to the SVG renderer
  5. 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

DevitX commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 day ago

cannot reproduce with next (current) version 132.0.2 - Demo

DevitX commented 1 day ago

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