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 IllegalArgumentException: Center point is not inside any of the rectangles #880

Open
sergpetrov opened this issue Dec 4, 2019 · 4 comments · Fixed by #1044 · May be fixed by #1094
Open

Crash IllegalArgumentException: Center point is not inside any of the rectangles #880

sergpetrov opened this issue Dec 4, 2019 · 4 comments · Fixed by #1044 · May be fixed by #1094

Comments

@sergpetrov
Copy link

My app is using Aztec editor and I see many crash reports with such exception.
I was able to reproduce for one case but I believe that it has more cases with the same problem.

Reproduced

  1. Add some empty block style (quote for example).
  2. Long tap.
  3. Choose "Select all" from the context menu.

Video with the crash in Aztec demo app: https://drive.google.com/file/d/1BkqoL9gp0e5oEwdO2e_P5SOMqTrmDZ0f/view?usp=sharing

Crash log:

    Process: org.wordpress.aztec, PID: 29043
    java.lang.IllegalArgumentException: Center point is not inside any of the rectangles!
        at android.widget.SmartSelectSprite.startAnimation(SmartSelectSprite.java:392)
        at android.widget.SelectionActionModeHelper.startSelectionActionModeWithSmartSelectAnimation(SelectionActionModeHelper.java:325)
        at android.widget.SelectionActionModeHelper.lambda$l1f1_V5lw6noQxI_3u11qF753Iw(Unknown Source:0)
        at android.widget.-$$Lambda$SelectionActionModeHelper$l1f1_V5lw6noQxI_3u11qF753Iw.accept(Unknown Source:4)
        at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:998)
        at android.widget.SelectionActionModeHelper$TextClassificationAsyncTask.onPostExecute(SelectionActionModeHelper.java:952)
        at android.os.AsyncTask.finish(AsyncTask.java:755)
        at android.os.AsyncTask.access$900(AsyncTask.java:192)
        at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2019-12-04 10:46:34.373 29043-29043/org.wordpress.aztec E/WordPress-EDITOR: HTML content of Aztec Editor before the crash:
2019-12-04 10:46:34.377 29043-29043/org.wordpress.aztec E/WordPress-EDITOR: <blockquote></blockquote>
@NStreet8579
Copy link

Facing Same issue. Please help!

@NStreet8579
Copy link

Hi @sergpetrov , Can provide that video sample agian, link is broken, i'm also getting the exact crash, but not able to recreate the crash

@AkshayOptimumbrew
Copy link

Faced same issue is that any way to reproduce this issue?

@khaykov
Copy link
Member

khaykov commented Nov 27, 2024

This issue is still present, and I was able to reproduce with the instructions from this issue. Original fix addressed the case where you pressed "Select All". The problem is that some device manufacturers add their own options for context menu. I found that one of my test One Plus devices has an "Select" option that also triggers the crash. I'm adding a better fix for this.

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