-
Notifications
You must be signed in to change notification settings - Fork 536
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 When modify entity field in the admin page #3042
Comments
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? |
My chrome will be frozon and nothing responds when I click on anything。 |
Any JS errors in the browser console? |
no。Chrome has frozen due to an infinite loop. |
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? |
When I add
the loop i think is about 'sync' event. |
Thanks for info. Do you have any custom code that calls the load method of the language object? |
No custom code. I set 'useCache' => true in data/config.php and use production mode. |
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. |
It's not related. It's another object. |
In client\src\views\site\navbar.js
|
This could be a reason. EDIT. Unlikely. It should not prevent 'sync' from firing. |
maybe something wrong where excuting '() => update()' .because if not removing the listener on language, it may add a same one on it when update() |
Yes. It's possible that code fails within update() execution, and then not proceeded to |
@zhuyicheng666 do you have 3rd party extensions |
Describe the bug
memory leak When modify entity field in the admin page
url: /#Admin/fieldManager/scope=Account&type=text&create=true
To Reproduce (MANDATORY, DO NOT REMOVE)
In this page /#Admin/fieldManager/scope=Account&type=text&create=true, create a new field or
In this page /#Admin/fieldManager/scope=Account&field=accountNature, modify the label.
Expected behavior
The page is running normally and a "Saved" prompt appears.
Screenshots
EspoCRM version
8.2.0
Additional context
We have discovered that a statement [this.off('sync');] is missing in the load function within client/src/language.js, but it is present in client/src/metadata.js.
The text was updated successfully, but these errors were encountered: