Comments (16)
What do you mean by 'memory leak'. I tried on two instances, the "Saved" alert appeared. It does not appear for you? What exactly happens?
from espocrm.
My chrome will be frozon and nothing responds when I click on anything。
from espocrm.
Any JS errors in the browser console?
from espocrm.
no。Chrome has frozen due to an infinite loop.
from espocrm.
Strange. I'll try to figure out but the fact that I can't reproduce complicate things. Does it happen only if you change the label or happens if you change any parameter?
Could you point where exactly the loop happens?
from espocrm.
When I add this.off('sync');
in the function load which in the client/src/languages and the problem has solved. The whole function is
load(callback, disableCache, loadDefault) {
this.off('sync');
if (callback) {
this.once('sync', callback);
}
if (!disableCache) {
if (this.loadFromCache(loadDefault)) {
this.trigger('sync');
return new Promise(resolve => resolve());
}
}
return new Promise(resolve => {
this.fetch(loadDefault)
.then(() => resolve());
});
}
the loop i think is about 'sync' event.
from espocrm.
Thanks for info. Do you have any custom code that calls the load method of the language object?
from espocrm.
No custom code. I set 'useCache' => true in data/config.php and use production mode.
from espocrm.
I checked the whole codebase and have not found the 'sync' event being used on the language object. The 'callback' is never passed (it's deprecated). No idea why this happens on your instance. I might add the 'off' for v8.2 hotfix, but need to refactor the method for the future versions so that only promise is used.
from espocrm.
from espocrm.
It's not related. It's another object.
from espocrm.
In client\src\views\site\navbar.js
this.listenTo(this.getHelper().language, 'sync', () => update());
from espocrm.
This could be a reason.
EDIT. Unlikely. It should not prevent 'sync' from firing.
from espocrm.
maybe something wrong where excuting '() => update()' .because if not removing the listener on language, it may add a same one on it when update()
from espocrm.
Yes. It's possible that code fails within update() execution, and then not proceeded to return new Promise(resolve => resolve());
in the load method. But usually it should be seen in the console.
from espocrm.
@zhuyicheng666 do you have 3rd party extensions
from espocrm.
Related Issues (20)
- Application log available from admin UI HOT 3
- Formula: Equal operator (=) inside string literal causes "Syntax error: Bad variable name" HOT 1
- Inventory control HOT 2
- Wysiwyg: Table parameters modal HOT 1
- Pinned notes HOT 3
- Option for API to return array and not object HOT 3
- URL with tilde character fails validation HOT 1
- IP address whitelist HOT 1
- pdfTemplates : Error if body of header or footer empty and checkbox checked HOT 1
- List (Small) - CSS Layout - Width Size px Overflowing HOT 2
- Notifying user when IMAP not connected HOT 1
- Group Email Accounts: 'Exclude from Reply' parameter HOT 1
- Address country list HOT 1
- Audio recording and playback functionality HOT 9
- User Login Time Frame Restriction HOT 6
- Mass Unfollow not using the translation in Global.json HOT 3
- Failed opening required 'vendor/autoload.php' HOT 6
- Portals: 'Auth token lifetime' & 'Auth token max idle time' parameters HOT 1
- 2FA SMS and Email simultaneously HOT 1
- Calendar: Task disappears after updating HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espocrm.