magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Magento 2 version 2.4.3-p1 “Page Builder was rendering for 5 seconds without releasing locks” error.

Open ZephyrDogma opened this issue 3 years ago • 36 comments

So friends im having an issue with saving my page at the pagebuilder:

Ubuntu 20.04 Magento Version 2.4.3-p1 So i attempt to create a new page(has same effect as i try to edit an existing one) and i add some elements to the page, afterwards i click save

It should have made the page successfully

  1. And here i get the spinning wheel of death perpetually there and the error "Page Builder was rendering for 5 seconds without releasing locks." that was supposedly fixed in version 2.3.6 of magento

  2. image

Additional Information

The issue was data-content-type="heading". In 2.4.3p1 EE when I'm adding content from scratch then i don't see this attr getting added. But it was there in 2.3.2 EE. After removing this attribute from the page now it saves. I have removed that attribute from all pages using MySQL replace statement.

What you can try, is to add some content and include this

NOS SOLUTIONS

You can edit any h2 tag and include data-content-type="heading" there directly in the DB, as normally there is no option to edit the text in the pagebuilder. And then try to save the page.

ZephyrDogma avatar Dec 28 '21 18:12 ZephyrDogma

Hi @ZephyrDogma. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] avatar Dec 28 '21 18:12 m2-assistant[bot]

@magento I am working on this

ZephyrDogma avatar Dec 28 '21 18:12 ZephyrDogma

Hi @ZephyrDogma! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

m2-assistant[bot] avatar Dec 28 '21 18:12 m2-assistant[bot]

Hi @engcom-Echo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
      DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
    1. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

m2-assistant[bot] avatar Dec 29 '21 05:12 m2-assistant[bot]

Hi @ZephyrDogma,

Thank you for reporting the issue.

However, I tried to replicate the same on Magento 2.4.3-p1 version but not facing any issue as you are having. Below screenshots of the same.

Screenshot 2021-12-29 at 6 51 32 PM Screenshot 2021-12-29 at 6 50 43 PM

As you can see, page is getting saved with any info I add in Page Builder. Based on it, can you please update if you upgraded from older versions which were having this issue or if you can provide more info on what you did differently so that I can try to reproduce it again ?

Thanks

engcom-Echo avatar Dec 29 '21 13:12 engcom-Echo

Hi @ZephyrDogma,

Thank you for reporting the issue.

However, I tried to replicate the same on Magento 2.4.3-p1 version but not facing any issue as you are having. Below screenshots of the same.

Screenshot 2021-12-29 at 6 51 32 PM Screenshot 2021-12-29 at 6 50 43 PM

As you can see, page is getting saved with any info I add in Page Builder. Based on it, can you please update if you upgraded from older versions which were having this issue or if you can provide more info on what you did differently so that I can try to reproduce it again ?

Thanks

Hello friend i didnt update magento from older versions i just installed it from scracth on my ubuntu, if this would help i will post the rest of the console output after i press save image

ZephyrDogma avatar Dec 29 '21 15:12 ZephyrDogma

Hi @ZephyrDogma,

Thank you for providing with the console errors info but it is not helpful since I am not getting same errors. The issue was there before but as documentation said, it was fixed and I am not getting it in the same version 2.4.3-p1 as you suggested now.

If you are getting it, there might be a set of steps through which I can also get the same. Can you please try with some other browser and check if you are still getting it ? If you can help me some more info, perhaps I'll be able to reproduce it.

Thanks

engcom-Echo avatar Dec 31 '21 06:12 engcom-Echo

Facing the same issue. Magento ver. 2.4.3-p1. Hapens very rarely, but still happens. Steps to reproduce - in M2 admin save category or product or cms page where pagebuilder content is added. Approx 1 in 50 saves gives this error.

janisverins avatar Jan 13 '22 13:01 janisverins

@janisverins it's exactly same as I can see in my instance.

Green2Matter avatar Jan 30 '22 15:01 Green2Matter

Same issue on Magento ver. 2.4.3-p1. nothing to save from the backend where page builder exists.

miteshdhaduk avatar Feb 03 '22 06:02 miteshdhaduk

I feel this issue keeps on propping up everywehere without a good solution.

akkaweb avatar Feb 03 '22 15:02 akkaweb

I face the same issue. Is there any update?

jayeshdolphin avatar Feb 10 '22 09:02 jayeshdolphin

I have faced the same issue on magento 2.4.3-p1 version. Please refer to the following link: https://webkul.com/blog/fixed-page-builder-was-rendering-for-5-seconds-without-releasing-locks-error-in-magento-2-4-3-p1/ Maybe if you are facing similar error as mine, it can be helpful for you.

khushboowebkul avatar Feb 17 '22 12:02 khushboowebkul

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Mar 24 '22 05:03 m2-assistant[bot]

Verified this issue on Magento 2.4-develop branch but cannot able to reproduce the issue even after saving CMS page multiple times with page builder content (Rows, columns and elements added). Its recommended to verify the issues on Magento 2.4-develop branch as the issue might have got fixed and it the upcoming 2.4.x release having latest code base. @ZephyrDogma , kindly recheck the issue on Magento 2.4-develop branch and provide missing steps if any if the issue is still reproducible. image

Thank you.

engcom-November avatar Mar 24 '22 05:03 engcom-November

I am having this problem as well. however, this is only happening to me when i use an added "appearance" to the Banner component. I followed documentation (https://devdocs.magento.com/page-builder/docs/content-types/extend/add-appearances.html) to add a new appearance. i am able to select the appearance, and it renders correctly in the preview as well. when i go to save the CMS page, that is when the error happens.

If i reload the page and change the banner to one of the default appearances the save works fine. I get the feeling that there is an important detail missing from the documentation.

Magento ver. 2.4.3-p1

chazzs avatar Mar 28 '22 16:03 chazzs

This issue is happening for me when I edit a product with more Page Builder attributes (around 20)

manhtranisobar avatar May 25 '22 08:05 manhtranisobar

Hello @manhtranisobar,

Have you tried the solution given in this comment. Let us know if this resolves your problem.

Thanks

engcom-Hotel avatar May 26 '22 10:05 engcom-Hotel

Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar May 26 '22 10:05 m2-assistant[bot]

Hi @engcom-Hotel I have not tried that solution because we are using Magento Cloud. But I think It is not solution because I am getting that JS console error message when edit CMS page but I still can save CMS page successfully. If It is solution, Magento Cloud should update that config as default.

manhtranisobar avatar May 26 '22 11:05 manhtranisobar

Hello @manhtranisobar,

Thanks for the quick response!

@chazzs we have tried to reproduce the issue by adding Appearance but the issue is not reproducible for us. We have followed the below steps in order to reproduce the issue:

  1. Use this repo for the Appearance module.
  2. Create a New Page by selecting the created appearance: image
  3. We are able to save the page without any issue: image

Maybe we are missing some important reproduction step(s). Please let us know in case we have missed anything.

Thanks

engcom-Hotel avatar Jun 01 '22 08:06 engcom-Hotel

Having the same issue on 2.4.3p1 EE. I have upgraded from 2.3.2 EE. Its really weird issue. For some page it gets saved properly. Sometime i see the error in console and the loader keeps loading and sometime the page saves without actually saving the data.

kingshukdeb avatar Jun 15 '22 19:06 kingshukdeb

Looks like the issue is with copied texts which has formatting. Like if i copy some texts with color and font from some other place and paste it directly in Text field then it gives me the error and the page doesn't save. It used to work in 2.3.2 EE. And people who usually work with page builder aren't developers so its expected that they will copy texts.

kingshukdeb avatar Jun 16 '22 14:06 kingshukdeb

I've encountered the same issue on 2.4.2-p2. It's weird because it happens on one specific page, i can edit others without problem but this specific one does not let me.

agarcia2-pk avatar Jun 16 '22 18:06 agarcia2-pk

Hello @kingshukdeb,

Thanks for the contribution!

We have tried this as well, and post the content something like below in page, but still we are not ablet to reproduce the issue: image

We request you to please provide the text in which you are facing the issue.

Thanks

engcom-Hotel avatar Jun 27 '22 11:06 engcom-Hotel

@engcom-Hotel, Can you try to add that text in 2.3.2 EE and then upgrade to 2.4.3p1 EE and check if you can save the page.

kingshukdeb avatar Jul 04 '22 07:07 kingshukdeb

@engcom-Hotel For me the issue was data-content-type="heading". In 2.4.3p1 EE when i'm adding content from scratch then i dont see this attr getting added. But it was there in 2.3.2 EE. After removing this attribute from page now it saves. I have removed that attribute from all pages using mysql replace statement.

What you can try, is to add some content and include this

<h2 contenteditable="true" data-placeholder="Edit Heading Text" data-content-type="heading" data-appearance="default" data-element="main"><span data-pb-style="6235E010E29C8">NOS SOLUTIONS</span></h2>

You can edit any h2 tag and include data-content-type="heading" there directly in the db, as normally there is no option to edit text in the pagebuilder. And then try to save the page.

kingshukdeb avatar Jul 07 '22 07:07 kingshukdeb

Hello @kingshukdeb,

Thanks for the update!

The issue is reproducible for us by following the below steps:

  1. Create a new Page from Admin Panel Content -> Pages -> Add New Page
  2. After saving the newly created page, edit its content from the database in table cms_page column content and add the below H2 tag with the specified attributes:
<h2 contenteditable="true" data-placeholder="Edit Heading Text" data-content-type="heading" data-appearance="default" data-element="main"><span data-pb-style="6235E010E29C8">NOS SOLUTIONS</span></h2>
  1. Refresh the page in Admin Panel.
  2. Try to save the page

But if we remove data-content-type="heading" from the H2 tag then the page is saving successfully.

I have a query here, I haven't found any option to add that attribute data-content-type="heading" from the admin panel. In order to reproduce the issue, we need to edit the content from the database directly. So please help us understand how this attribute is saved previously there for you.

Thanks

engcom-Hotel avatar Jul 07 '22 10:07 engcom-Hotel

@engcom-Hotel Its coming from 2.3.2 EE. In that version when we edited pages it used to automatically add those attributes. Like for color it used to add like data-desktop-style="color: rgb(255, 255, 255); (the rgb can be diff for sure, its an example) but now if you add color it doesn't add data-desktop-style.

kingshukdeb avatar Jul 07 '22 10:07 kingshukdeb

Hello @kingshukdeb,

Thanks for the reply!

So the issue is related to the Magento upgrade. I am confirming this issue for further process.

Thanks

engcom-Hotel avatar Jul 08 '22 10:07 engcom-Hotel