A user reports in 287195-h that when opening a specific blog post in the app, the app goes black and freezes. I checked the post content in the html view and I see that the post has lots of bold html elements which I suspect could be causing the app to freeze.
I was able to replicate this issue by creating a test post and a test page in a test site, including only random text and the same amount of bold html elements I suspect are causing this issue.
If I try to edit either the test post or page in the app, the screen goes black and freezes after a couple of seconds.
My test:
App version 10.1, Android 5.1, Model Blue Studio Selfie.
User config:
App version 10.1, Android 8.0.0, Model: SM-G955N.
Thanks for reporting this @nellofn
I was able to replicate this issue by creating a test post and a test page in a test site, including only random text and the same amount of break html elements I suspect are causing this issue.
Would you mind to provide raw HTML code of the post that is breaking the app?
Sure @daniloercoli
Here's a raw copy: https://cld.wthms.co/V0vQrB
From the conversation, it seems that all those tags are not intentional. I don't think we should add code to cleanup a one time thing when we can just ask the user to clean up the post content (or do it for them).
Just noting here that the user came back and I've removed all those extra tags from their post. I'm not sure _how_ those tags ended up there in the first place. The user mentioned that they'd had an issue with an image in that post not loading, but is not sure if that is somehow related. They've also never seen this issue before. I've asked them to let us know if it happens again.
Marked this one as Candidate for groundskeeping rotation - there's already a PR I put together but it's breaking other tests on Aztec. Ideally, the groundskeeper can take it up from there 馃憤
Update: the PR is up now and ready for review https://github.com/wordpress-mobile/AztecEditor-Android/pull/721