-
Notifications
You must be signed in to change notification settings - Fork 49
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 OrmaListAdapter and OrmaRecyclerViewAdapter on multiple deletions simultaneously #103
Comments
ANR is no longer produced in v0.31.0, but |
I found similar issue when delete one item (OrmaAdapter sometime cause crash). Note: My issue is hard to reproduce and only happens occasionally. That's why investigation like stabilize reproduce step is difficult. Here is my stacktrace:
|
In normal case, queryObservableSubscription seems called and cache.evictAll() is called. |
mItemCount should be updated at AdapterDataSetObserver::onChanged(). Is there some situation following observer is called before OrmaListAdapter::getCount() is not updated?
|
I guess when cell deleter is called, this subscription is not fired just at time and some UI related preemptin occur for fling case. Add: But notifyDataSetChanged must be called from UI Thread. How to make sure other fling related operation occure before this action? |
This crash occur when there is a race condition for UI update and cursor deletion. ` actionMode.finish(); In this case, CAB related update occur just the same timing as deletion. Work around is CAB finish call before cursor deletion. Cursor have some observer API for data set(registerDataSetObserver). |
No description provided.
The text was updated successfully, but these errors were encountered: