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
[BUG] diff-dom
freezing on CMS content refresh
#7460
Comments
This issue happened to me also and I can confirm that upgrading to the latest DiffDOM (version 5.0.4) fixes the problem. Works with debug mode on and off. UglifyJS doesn't throw any warnings regarding DiffDOM. Details: Changes: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@fsbraun would you know of anyone with the CMS editor code experience who can look into this? |
@petrklus whats happening with the plugins that might give us a clue on how to reproduce this? |
@petrklus I think I have a solution (#7599) for v4:
Do you think you can transfer the changes of #7599 to #7461 to see if we get tests running? |
Code borrowed from: django-cms#7599 Also, based on on the ticket and work of django-cms#7460 Co-Authored-By: Petr Klus <petr@klus.co.uk> Co-Authored-By: Fabian Braun <fsbraun@gmx.de>
* fix: add updates same as PR: #7599 Code borrowed from: #7599 Also, based on on the ticket and work of #7460 Co-Authored-By: Petr Klus <petr@klus.co.uk> Co-Authored-By: Fabian Braun <fsbraun@gmx.de> * fix: remove plugin that has been removed from the deps * fix: polyfill promise to fix lint errors and also support promise in browsers like IE11 and Opera mini * feat: update to nodejs 18 LTS to see if it builds * feat: update autoprefixer * fix: upgrade autoprefixer * fix: no polyfill only support major browsers with major market share: * fix: upgrade to nodejs 18 in .nvmrc as well --------- Co-authored-by: Petr Klus <petr@klus.co.uk> Co-authored-by: Fabian Braun <fsbraun@gmx.de>
Hey @fsbraun ,
After swapping to Helpful links:Do you think we can release new minor version of DjangoCMS like 3.11.4 with such fix? I am ready to provide help here with a contribution and I am really would be glad to do that. |
I am literally working on it at the moment :-) |
@DmytroLitvinov Out now! |
Wow. Thank you 🤩 |
One after the other! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixed in django CMS version 3.11.4 |
Description
We are experiencing issues with the CMS refresh. For certail plugin configurations and post-plugin modification, the browser tab first freezes, later to crash due to out of memory error. We have confirmed the same on Google Chrome / Mozilla Firefox.
Steps to reproduce
Expected behaviour
The page content to update.
Actual behaviour
The diff between incoming document and actual document freezes up:
https://github.com/django-cms/django-cms/blob/develop/cms/static/cms/js/modules/cms.structureboard.js#L1291
Only tab restart fixes the issue.
Screenshots
Additional information (CMS/Python/Django versions)
Django CMS 3.11.0 or 1, Django 3.2.
Tested on Mozilla Firefox and Google Chrome
Do you want to help fix this issue?
We have looked into this further and the issue seems to be down to DiffDOM version 2.5.1. We have tried upgrading to the latest version 4.2.8, which works in debug mode, however, is not compatible with the current UglifyJS config.
The text was updated successfully, but these errors were encountered: