The Wayback Machine - https://web.archive.org/web/20200912140245/https://github.com/zhihu/Matisse/issues/800
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

Fatal Exception: android.database.StaleDataException: Attempted to access a cursor after it has been closed. #800

Open
yinyangwu opened this issue Jul 27, 2020 · 2 comments

Comments

@yinyangwu
Copy link

@yinyangwu yinyangwu commented Jul 27, 2020

Fatal Exception: android.database.StaleDataException: Attempted to access a cursor after it has been closed.
at android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:63)
at android.database.BulkCursorToCursorAdaptor.getCount(BulkCursorToCursorAdaptor.java:69)
at android.database.CursorWrapper.getCount(CursorWrapper.java:60)
at android.database.MergeCursor.getCount(MergeCursor.java:61)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:220)
at com.zhihu.matisse.ui.MatisseActivity$1.run(MatisseActivity.java:363)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:198)
at android.app.ActivityThread.main(ActivityThread.java:7055)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:836)

麻烦有时间解决一下,v0.5.2,加个判断cursor的状态也行。

@lovelyelfpop
Copy link

@lovelyelfpop lovelyelfpop commented Jul 27, 2020

这个库已经被放弃了

@yccheok
Copy link
Contributor

@yccheok yccheok commented Aug 5, 2020

因为我们在不久后,就得确保 Matisse 在 Android API 29 的稳定性。我们自行 fork 了个旁枝,来进行测试及修正。

https://github.com/yccheok/Matisse/tree/fork

您说的问题,我复制不到。我用 Android Emulator API 29 及 28,执行 Matisse 的 sample,进行粗略的测试。都复制不到您说的问题。

请提供更多详情,如何用 Matisse sample,在 Emulator 上复制这个问题。谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.