Skip to content
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

Crash in editor and instant post of a draft #9470

Closed
planarvoid opened this issue Mar 25, 2019 · 5 comments
Closed

Crash in editor and instant post of a draft #9470

planarvoid opened this issue Mar 25, 2019 · 5 comments

Comments

@planarvoid
Copy link
Contributor

A user has reported a crash in the editor. The steps how they got to the crash are:

  • Create a new post
  • Add some placeholder text to the editor
  • Add an image after the placeholder text
  • Add a footer after the image
  • Go back to the placeholder text and hold "Backspace" button to delete the placeholder
  • The app crashes
  • The draft gets instantly published

The crash doesn't happen on a reopened local draft. Even though it is published, the app still shows the post as "Local draft".

The user uses a device with Android 8.

It is likely related to #8828

@mzorz
Copy link
Contributor

mzorz commented Mar 26, 2019

I was able to reproduce this after following the steps described by another user in 1905371-zen
The steps here seem to be ok.

I'm using a Pixel 2 with Android 8.1

@mzorz
Copy link
Contributor

mzorz commented Mar 26, 2019

The crash doesn't happen on a reopened local draft.

This is not true for me - I can reproduce the crash each time I re-open the draft.

How I managed to reproduce:

  1. start a new draft
  2. add some text, especially 2 or 3 lines with words separated by spaces
  3. add some images
  4. add some more text
  5. scroll up to the beginning of the text
  6. select the last word in the text (only happens with the last word in text before the first image starts)
  7. tap and hold the backspace key
  8. observe the crash

@mzorz
Copy link
Contributor

mzorz commented Mar 26, 2019

Excellent news: have been able to reproduce on the Aztec demo app. Will create an issue there and link here

@mzorz
Copy link
Contributor

mzorz commented Mar 26, 2019

issue filed in wordpress-mobile/AztecEditor-Android#798

@mzorz
Copy link
Contributor

mzorz commented Mar 26, 2019

Closing, dupe of wordpress-mobile/AztecEditor-Android#729, more info on #8828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants