jakearchibald / svgomg

Web GUI for SVGO
https://jakearchibald.github.io/svgomg/
MIT License
5.76k stars 476 forks source link

"Show original" toggle on Markup tab crashes Chromium browsers on Android #376

Open NielsCodes opened 2 years ago

NielsCodes commented 2 years ago

When toggling between the original and adapted SVG code on the Markup tab, Chromium browsers on Android will freeze. Especially when going from the original code back to the adapted code, Chrome will immediately become unresponsive and will eventually throw a "Chrome isn't responding" system message. The same behavior also occurs in other Chromium-based browsers, such as Brave and Opera. Firefox works as expected.

I suspect it's a memory issue. The larger the SVG file, the sooner the crash occurs, but the demo file consistently triggers the issue on my device.

I was unable to recreate the issue when inspecting the device via desktop Chrome and was therefore unable to narrow down the source of this issue.

Tested on Pixel 6 Pro, Android build SQ1D.220105.007. Chrome version 97.0.4692.87

https://user-images.githubusercontent.com/10178648/149751514-6282a165-7e05-4b9f-b5f9-e685fc556269.mp4

XhmikosR commented 2 years ago

Does the issue happen on https://svgomg.netlify.app/ or https://deploy-preview-341--svgomg.netlify.app/?

NielsCodes commented 2 years ago

@XhmikosR tested both, still encountered a crash

XhmikosR commented 2 years ago

Then I'd say your best bet is reporting the issue on the Chromium bug tracker (https://bugs.chromium.org/p/chromium/issues/list).

/CC @jakearchibald

TPS commented 2 years ago

If the SVG is quite small (perhaps <5kB), it's fine, but as above for anything substantial. For me, doesn't matter whether original or optimized version, just filesize.