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

Memory leak with Vue Devtools #253

Closed
VRuzhentsov opened this issue Nov 11, 2019 · 2 comments
Closed

Memory leak with Vue Devtools #253

VRuzhentsov opened this issue Nov 11, 2019 · 2 comments

Comments

@VRuzhentsov
Copy link
Contributor

Found a leak, with simple map dragging. There are a lot of pointmove events are emited with huge payload.

all of them are passed to the devtools object/array observer in unreal amounts

1 GB of ram increasing in 30 sec

image

image

@ghettovoice
Copy link
Owner

Hello @VRuzhentsov ,
yeh, this is known issue. There is another same issue #45.

Strictly speaking this issue can't be resolved from the VueLayers side. Map always emits a lot of events pointermove, pointerdrag, click and so on. But the Vue Devtools is made in such a way that it subscribes to all events from all mounted components. And of course this blows your RAM.

Also as I remember in other Web Map libs for Vue there is same issue too. (See vuejs/devtools-v6#449)

The only workaround I usually use is disable event catching in the Devtool, cause this is not so useful like for example components tree inspection.

@VRuzhentsov
Copy link
Contributor Author

@ghettovoice Yea, thats helps. Also helps with the same problems with Cesium 3d lib
Thanks for the idea to help.
Better to close ticket with a refer links
#45
vuejs/vue-devtools#449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants