Concordium / concordium-browser-wallet

Apache License 2.0
11 stars 9 forks source link

Lags caused by injection script creating WASM instances on every URL change #461

Open Radiokot opened 3 months ago

Radiokot commented 3 months ago

Bug Description

Whenever the page URL changes, the inject.js instantiates WebAssembly. This causes the tab to quickly run out of memory and start lagging if the URL changes frequently.

Steps to Reproduce

Expected Result

Google Maps remain usable.

Actual Result

After lots of URL changes due to moving coordinates and other map activity, the tab goes out of memory and the garbage collector starts using lots of CPU. Out of memory errors caused by wallet's inject.js are logged into the console. Google Maps become sluggish and unresponsive until the tab is closed or reloaded. image

Versions

abizjak commented 2 months ago

Also reported to happen on dash.readme.com.