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

Crashing after select text in message and tap somewhere #27

Closed
Symbian9 opened this Issue Jan 10, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@Symbian9

Symbian9 commented Jan 10, 2018

Crash reproducable for me.

Log:

USER_COMMENT=
ANDROID_VERSION=6.0
APP_VERSION_NAME=Mon Jan 01 21:49:10 IRKT 2018
BRAND=ASSISTANT
PHONE_MODEL=AS-5432
CUSTOM_DATA={}
STACK_TRACE=java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 335]
	at android.text.method.WordIterator.checkOffsetIsValid(WordIterator.java:380)
	at android.text.method.WordIterator.isBoundary(WordIterator.java:101)
	at android.widget.Editor$SelectionStartHandleView.positionAtCursorOffset(Editor.java:4300)
	at android.widget.Editor$HandleView.updatePosition(Editor.java:3736)
	at android.widget.Editor$PositionListener.onPreDraw(Editor.java:2513)
	at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2417)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1321)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6708)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:894)
	at android.view.Choreographer.doCallbacks(Choreographer.java:696)
	at android.view.Choreographer.doFrame(Choreographer.java:631)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:880)
	at android.os.Handler.handleCallback(Handler.java:815)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5728)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

@vit1-irk

This comment has been minimized.

Show comment
Hide comment
@vit1-irk

vit1-irk Jan 13, 2018

Member

Just tried to migrate to AppCompatTextView (for message text display widget) assuming the bug was fixed there.

Try the latest build. If the problem persists, I'll try something else

Member

vit1-irk commented Jan 13, 2018

Just tried to migrate to AppCompatTextView (for message text display widget) assuming the bug was fixed there.

Try the latest build. If the problem persists, I'll try something else

@Symbian9

This comment has been minimized.

Show comment
Hide comment
@Symbian9

Symbian9 Jan 14, 2018

If the problem persists

Yes, still reproducable :-(

USER_COMMENT=
ANDROID_VERSION=6.0
APP_VERSION_NAME=Sat Jan 13 22:37:01 IRKT 2018
BRAND=ASSISTANT
PHONE_MODEL=AS-5432
CUSTOM_DATA={}
STACK_TRACE=java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 3971]
	at android.text.method.WordIterator.checkOffsetIsValid(WordIterator.java:380)
	at android.text.method.WordIterator.isBoundary(WordIterator.java:101)
	at android.widget.Editor$SelectionStartHandleView.positionAtCursorOffset(Editor.java:4300)
	at android.widget.Editor$HandleView.updatePosition(Editor.java:3736)
	at android.widget.Editor$PositionListener.onPreDraw(Editor.java:2513)
	at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2417)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1321)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6708)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:894)
	at android.view.Choreographer.doCallbacks(Choreographer.java:696)
	at android.view.Choreographer.doFrame(Choreographer.java:631)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:880)
	at android.os.Handler.handleCallback(Handler.java:815)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5728)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

Symbian9 commented Jan 14, 2018

If the problem persists

Yes, still reproducable :-(

USER_COMMENT=
ANDROID_VERSION=6.0
APP_VERSION_NAME=Sat Jan 13 22:37:01 IRKT 2018
BRAND=ASSISTANT
PHONE_MODEL=AS-5432
CUSTOM_DATA={}
STACK_TRACE=java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 3971]
	at android.text.method.WordIterator.checkOffsetIsValid(WordIterator.java:380)
	at android.text.method.WordIterator.isBoundary(WordIterator.java:101)
	at android.widget.Editor$SelectionStartHandleView.positionAtCursorOffset(Editor.java:4300)
	at android.widget.Editor$HandleView.updatePosition(Editor.java:3736)
	at android.widget.Editor$PositionListener.onPreDraw(Editor.java:2513)
	at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2417)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1321)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6708)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:894)
	at android.view.Choreographer.doCallbacks(Choreographer.java:696)
	at android.view.Choreographer.doFrame(Choreographer.java:631)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:880)
	at android.os.Handler.handleCallback(Handler.java:815)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5728)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
@vit1-irk

This comment has been minimized.

Show comment
Hide comment
@vit1-irk

vit1-irk Jan 14, 2018

Member

Just now I have copypasted some workarounds from StackOverFlow.
Try new buils, it should work

Member

vit1-irk commented Jan 14, 2018

Just now I have copypasted some workarounds from StackOverFlow.
Try new buils, it should work

@Symbian9

This comment has been minimized.

Show comment
Hide comment
@Symbian9

Symbian9 Jan 14, 2018

OK, now it work without fails.

Temporary close this issue.

Symbian9 commented Jan 14, 2018

OK, now it work without fails.

Temporary close this issue.

@Symbian9 Symbian9 closed this Jan 14, 2018

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