A minimal repro:
<!DOCTYPE html>
<body>
<div id="app"></div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.13/vue.js"></script>
<script>
new Vue({
el: '#app',
mounted () {
for (let i = 0; i < 10000000; i++)
this.largeArray.push(i)
},
data: {
largeArray: []
}
})
</script>
vue-devtools completely freezes on this code, and the error will be thrown a moment later.
Please try this branch: https://github.com/Akryum/vue-devtools/tree/component-inspect-optimizations
@Akryum Sorry for the late reply, but the patch merged did not resolve this issue... The latest vue-devtools is still throwing errors and violations on the example I gave earlier.
Is it possible to not serialize and transfer data entirely, but retrieve their values on demand?
I can confirm that I am also still seeing this issue.
@colinfike I got the same issue in a PC environment , but it is OK in a MAC dev machine. Don't know why , same code , internet problem?
How much RAM do you have?
I don't actually have the machine I was working on at the time but I believe I had 16gb with 8gb allocated to docker.
@Akryum now i have the same issue on a Mac dev machine too . I use 2048M ram in both machine , php 7.2 . Really strange issue , maybe it is my code which broke the tool , not confirmed yet.
i am using a laravel imap parser to parse gmail , and i am using vue for the front end , there is lot of problems now , but it shows the data , only cannot use vue-dev-tools to monitor the properties
Seeing this problem also. @Akryum can we reopen this issue?
Does anybody know of a good work around?
Still seeing the issue here. I'm on Chrome 65. 16GB RAM of which 2.9 available.
Same problem here with a base64 (almost 100Ko) image in vue data. In my case, maybe a big data content should be truncated in data preview... But for an array, I've no idea.
About the only workaround I've been able to come up with is to select the Vue component I need to inspect, wait for the error to pop up and then switch the display to Events.
At least that way I can inspect the Vue using $vm0 in the console.
I still seeing the issue too. Chrome 70, 16GB RAM, VueDevtools 4.1.5 beta
@Akryum the folks at zalmoxisus/redux-devtools-extension fixed this problem like this:
https://github.com/zalmoxisus/redux-devtools-extension/pull/582/files
Seems that solution could be easily ported to vue-devtools?
Considering the @davidkhess 's answer and the problem that still be, is it possible to re-open the issue ? @Akryum
Why is this closed as it is still an issue? Please re-open.
Most helpful comment
Why is this closed as it is still an issue? Please re-open.