Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

The edit page refreshes randomly while adding patterns on mobile #92780

Open Robertght opened 3 months ago

Robertght commented 3 months ago

Quick summary

The whole editor page refreshes after adding several patterns. I created a video where it refreshed twice in a matter of 2 minutes.

Steps to reproduce

  1. Log into your WordPresss.com dashboard on mobile using Chrome
  2. Access the edit page
  3. Click on the + button and then on patterns
  4. Start adding patterns to the page

What you expected to happen

To not have the page refreshed at random

What actually happened

The page refreshed like it crashed.

Video:

https://github.com/user-attachments/assets/1768127f-c0bc-4cfc-9ab7-5aed1d36c2cb

Impact

All

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

Simple

Logs or notes

Gutenberg: v18.8.0-rc.3

Tested on a Simple site with the gutenberg-edge label.

P2 ref: pdtkmj-2OL-p2#comment-5314

mrfoxtalbot commented 3 months ago

From looking at the video, it is not clear if you take any actions prior to the editor reloading.

Thank again @Robertght!

Robertght commented 3 months ago

Are you able to replicate this consistently if you add multiple patterns in one go?

Yes, but I can't say if only certain patterns are to be blamed.

Have you ever noticed something similar in the past?

I remember testing this a while back(way, way back), but I have not seen anything like this.

I suppose we can ask people to try the Jetpack app for mobile, but that one has limited access to blocks.

LE: It looks like it breaks somewhere between 4-5 patterns added. I used the Services one and the browser crashed completely now: IMG_37A37130DEB2-1

mrfoxtalbot commented 3 months ago

I have one or two personal simple sites I use regularly, and I have noticed the Site Editor crashing randomly but I have not been able to pinpoint what is causing it. If you can narrow this down, please add more details. Thanks again @Robertght!

retnonindya commented 2 months ago

📌 REPRODUCTION RESULTS Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO At first, I was able to replicate the issue: The Editor (in this case, Site Editor) refreshed when I added a second pattern and the patterns were not added. I then retried again to be sure, but this time, it didn't fail. The Editor stays online and I also noticed the patterns were added successfully.

📌 ACTIONS I'm leaving this on In Triage queue

📌 Message to Author @Robertght when you have time, can you retry again on your end to see if the issue still happens? Thanks!

github-actions[bot] commented 2 months ago

Support References

This comment is automatically generated. Please do not edit it.

Robertght commented 2 months ago

Thank you @retnonindya !

The issue is still happening for me(the refresh + the error_connection_closed):

https://github.com/user-attachments/assets/1a911611-59ec-4906-a05c-b5718962701f (I'm showing only the last error show here)

I even cleared the cache to avoid this being a thing. It feels like after losing more than one list of patterns it runs out of memory somewhere in the web app and it tries to recover, but I could be entirely wrong.

Specs:

iPhone 13 Pro Chrome 127.06533.107 iOS 17.5.1