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 when tapping posts repeatedly #140

Open
triodan opened this Issue Jun 1, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@triodan

triodan commented Jun 1, 2017

Device is Xiaomi Redmi 3 Pro, running MIUI 8.1.2.0, Android 6.0.1.

Crash happens when viewing any thread, and tapping on a post twice in quick succession. Crash not specific to a single chan.

@IWillRedPillYou

This comment has been minimized.

Show comment
Hide comment
@IWillRedPillYou

IWillRedPillYou Jun 3, 2017

Weird I don't have this problem. What image board extension are you using

IWillRedPillYou commented Jun 3, 2017

Weird I don't have this problem. What image board extension are you using

@Mishiranu Mishiranu added the bug label Jun 3, 2017

@Mishiranu

This comment has been minimized.

Show comment
Hide comment
@Mishiranu

Mishiranu Jun 3, 2017

Owner

Can you provide a log as described here?

Owner

Mishiranu commented Jun 3, 2017

Can you provide a log as described here?

@triodan

This comment has been minimized.

Show comment
Hide comment
@triodan

triodan Jun 11, 2017

SDK: 23 (6.0.1)
Application: 1033 (2.10.1)
----------------------------------------
java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
	at java.util.ArrayList.get(ArrayList.java:310)
	at com.android.internal.view.menu.ActionMenu.findItem(ActionMenu.java:141)
	at com.mishiranu.dashchan.widget.CommentTextView$CustomSelectionCallback.onCreateActionMode(CommentTextView.java:385)
	at android.widget.Editor.startSelectionActionModeInternal(Editor.java:1759)
	at android.widget.Editor.startSelectionActionMode(Editor.java:1712)
	at android.widget.Editor$SelectionModifierCursorController.onTouchEvent(Editor.java:5404)
	at android.widget.Editor.onTouchEvent(Editor.java:1198)
	at android.widget.TextView.onTouchEvent(TextView.java:8309)
	at com.mishiranu.dashchan.widget.CommentTextView.onTouchEvent(CommentTextView.java:623)
	at com.mishiranu.dashchan.widget.CommentTextView.sendFakeMotionEvent(CommentTextView.java:252)
	at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:306)
	at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:319)
	at com.mishiranu.dashchan.ui.navigator.manager.ViewUnit.handlePostForDoubleClick(ViewUnit.java:984)
	at com.mishiranu.dashchan.ui.navigator.manager.InteractionUnit.handlePostClick(InteractionUnit.java:359)
	at com.mishiranu.dashchan.ui.navigator.page.PostsPage.onItemClick(PostsPage.java:274)
	at com.mishiranu.dashchan.ui.navigator.NavigatorActivity.onItemClick(NavigatorActivity.java:690)
	at android.widget.AdapterView.performItemClick(AdapterView.java:310)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1145)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3081)
	at android.widget.AbsListView$3.run(AbsListView.java:3947)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5441)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)```

triodan commented Jun 11, 2017

SDK: 23 (6.0.1)
Application: 1033 (2.10.1)
----------------------------------------
java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
	at java.util.ArrayList.get(ArrayList.java:310)
	at com.android.internal.view.menu.ActionMenu.findItem(ActionMenu.java:141)
	at com.mishiranu.dashchan.widget.CommentTextView$CustomSelectionCallback.onCreateActionMode(CommentTextView.java:385)
	at android.widget.Editor.startSelectionActionModeInternal(Editor.java:1759)
	at android.widget.Editor.startSelectionActionMode(Editor.java:1712)
	at android.widget.Editor$SelectionModifierCursorController.onTouchEvent(Editor.java:5404)
	at android.widget.Editor.onTouchEvent(Editor.java:1198)
	at android.widget.TextView.onTouchEvent(TextView.java:8309)
	at com.mishiranu.dashchan.widget.CommentTextView.onTouchEvent(CommentTextView.java:623)
	at com.mishiranu.dashchan.widget.CommentTextView.sendFakeMotionEvent(CommentTextView.java:252)
	at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:306)
	at com.mishiranu.dashchan.widget.CommentTextView.startSelection(CommentTextView.java:319)
	at com.mishiranu.dashchan.ui.navigator.manager.ViewUnit.handlePostForDoubleClick(ViewUnit.java:984)
	at com.mishiranu.dashchan.ui.navigator.manager.InteractionUnit.handlePostClick(InteractionUnit.java:359)
	at com.mishiranu.dashchan.ui.navigator.page.PostsPage.onItemClick(PostsPage.java:274)
	at com.mishiranu.dashchan.ui.navigator.NavigatorActivity.onItemClick(NavigatorActivity.java:690)
	at android.widget.AdapterView.performItemClick(AdapterView.java:310)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1145)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3081)
	at android.widget.AbsListView$3.run(AbsListView.java:3947)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5441)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)```
@Mishiranu

This comment has been minimized.

Show comment
Hide comment
@Mishiranu

Mishiranu Jun 13, 2017

Owner

This crash seems strange for me. It's definitely something MIUI-related.
a9d6d36 this should fix your problem in next release.

Owner

Mishiranu commented Jun 13, 2017

This crash seems strange for me. It's definitely something MIUI-related.
a9d6d36 this should fix your problem in next release.

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