-
Notifications
You must be signed in to change notification settings - Fork 57
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
Editor Crash when saving post with large/complex List Block V2 #5097
Comments
After some investigation, this is happening when several InnerBlocks are nested, depending on the amount of We had an issue that is similar on iOS a while back but it would crash as soon as you'd reach the nesting limit. On Android is crashing when closing the editor, I haven't found any reported issue for Android though. I'll keep investigating but unfortunately, I haven't found a solution yet. |
Just confirmed this happens on iOS as well (with the app open), tried to nest 10 Quote blocks. For the List block takes fewer blocks to get it to crash, for example, a List block that has more than 4 nested lists blocks. |
This fix should improve this crash situation 🎊 . Although, I'd like to note that doesn't entirely address it because it can still be reproduced when having 10+ nested items in the List block V2. However, it's unlikely that users will have List blocks with more than 5 levels, so hopefully, the fix will prevent the crash in most cases 🤞 . |
Hey @geriux. 👋🏻 From working on #5617, I had two questions regarding this issue. First, should we close this issue or keep it open until we more thoroughly address the root cause? I see it is currently assigned to you and marked as "In progress."
Second, do we have any resources that validate that the number of nested Thanks! |
As an immediate follow-up to one of my own questions 😄, I now see some research was completed on this subject for Group and Columns blocks. That research seems to validate that deeply nested Let me know if there are other corroborating resources. 🙇🏻 |
I think we can close it, although there is still a limitation I consider those an edge case and so far we haven't received any reports or crashes about it 🤞
I was about to share that issue 😄 yeah, I even used that example with just Views and I was able to see the crash 😅 I think there's not much info about it or solutions because it is very rare to nest that many views (at least in my experience with React Native), so that's why we are trying to limit it as much as we can. I don't have any other links to issues or discussions about that problem at the moment. |
Describe the bug
Using List Block V2, having created a list with many items and several levels of indentation, the editor appears to crash when saving the post.
I experience a flash of dark screen, and then end up back on the Menu screen instead of the Post list.
I was able to reproduce this consistently on both a self-hosted temp site from tastewp.com and an internal temp site.
Tested on the Jetpack Android app.
To Reproduce
Steps to reproduce the behavior:
I was also able to get what I believe to be the same crash even more efficiently:
2. Create a new post, and add a list block.
3. Write a list of 5 items, each more indented than the last.
4. Tap the back arrow to save the post.
5. See the crash.
Screenshots
Crash with short, multi-indent list:
indentationcrash.mp4
Crash with long, multi-indent list:
longlistcrash.mp4
Smartphone
Tested on Samsung Galaxy S21, Android 12, WPAndroid 20.5-rc-1
The text was updated successfully, but these errors were encountered: