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
Which deals with the cancelFunction of the request in Resource.js
function loadWithXhr(options) {
// Take advantage that most parameters are the same
var resource = new Resource(options);
var request = resource._makeRequest({
responseType: options.responseType,
overrideMimeType: options.overrideMimeType,
method: defaultValue(options.method, "GET"),
data: options.data
});
request.cancelFunction = undefined;
return makeRealPromise(request);
}
I tried adding request.cancelFunction = undefined; manually in loadWithXhr.js and noticed that the memory is released properly. I know this is not a good solution, but it kind of confirmed my suspicion.
Is there by any chance possible to update terriajs-cesium with this included in Resource.js like in the Cesium commit?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was adding and removing catalog items. Then I noticed that the memory builds up and never get released after removal.
I then found this: Cesium commit
Which deals with the cancelFunction of the request in Resource.js
I tried adding request.cancelFunction = undefined; manually in loadWithXhr.js and noticed that the memory is released properly. I know this is not a good solution, but it kind of confirmed my suspicion.
Is there by any chance possible to update terriajs-cesium with this included in Resource.js like in the Cesium commit?
Could be related to:
#4816
Beta Was this translation helpful? Give feedback.
All reactions