You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
I observed the trace to go over 40.000
Memory also increases over time.
Expected behavior
Array/memory should not increase so much.
Current fix:
override stringify
conststringify=JSON.stringify;conststringifyCircular=function(o){constcache=[];returnstringify(o,function(key,value){if(typeofvalue==='object'&&value!==null){if(cache.indexOf(value)!==-1){// Duplicate reference foundtry{// If this value does not reference a parent it can be dedupedreturnJSON.parse(stringify(value));}catch(error){// discard key if value cannot be dedupedreturn'[circular]';}}// Store value in our collectioncache.push(value);}returnvalue;});};JSON.stringify=stringifyCircular;
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
Memory leak in worker thread. We also observe memory increase.
in https://github.com/NativeScript/android-runtime/blob/master/test-app/runtime/src/main/cpp/V8GlobalHelpers.cpp#L22
It looks like seen is reused by the replacer.
To Reproduce
Im calling global.postMessage many times.
to observe the bug, globaly override:
I observed the trace to go over 40.000
Memory also increases over time.
Expected behavior
Array/memory should not increase so much.
Current fix:
override stringify
The text was updated successfully, but these errors were encountered: