android.database.sqlite.SQLiteBlobTooBigException:行太大,无法容纳到CursorWindow requiredPos = 0,totalRows = 20

时间:2019-05-23 14:55:22

标签: java android exception cursor

我有一个搜索视图,可以输入单词,该搜索视图将从SQLite数据库中搜索单词,并使用原始查询在另一个活动中显示。

第一次输入时效果很好,但是当我尝试在搜索视图中输入第二个单词时,它会崩溃

E / CursorWindow:无法从具有1行0列的CursorWindow中读取第0行第0列。 05-23 20:01:17.704 13282-13459 / example.jocelinthomas.dictionary E / SQLiteQuery:例外:行太大而无法容纳CursorWindow requiredPos = 0,totalRows = 20;查询:SELECT _id,en_word在单词中,en_word像'gr%'LIMIT 20 05-23 20:01:17.705 13282-13459 / example.jocelinthomas.dictionary W / Filter:performFiltering()期间发生了异常!                                                                           android.database.sqlite.SQLiteBlobTooBigException:行太大,无法容纳CursorWindow requiredPos = 0,totalRows = 20                                                                               在android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(本地方法)                                                                               在android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:859)                                                                               在android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)                                                                               在android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)                                                                               在android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:149)                                                                               在android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:137)                                                                               在android.support.v4.widget.CursorFilter.performFiltering(CursorFilter.java:54)                                                                               在android.widget.Filter $ RequestHandler.handleMessage(Filter.java:234)                                                                               在android.os.Handler.dispatchMessage(Handler.java:106)                                                                               在android.os.Looper.loop(Looper.java:193)                                                                               在android.os.HandlerThread.run(HandlerThread.java:65) 05-23 20:01:17.710 13282-13282 / example.jocelinthomas.dictionary E / AndroidRuntime:FATAL EXCEPTION:main                                                                                   流程:example.jocelinthomas.dictionary,PID:13282                                                                                   java.lang.NullPointerException:尝试在空对象引用上调用虚拟方法'int android.database.CursorWindow.getNumRows()'                                                                                       在android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:150)                                                                                       在android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:137)                                                                                       在android.support.v4.widget.CursorAdapter.getCount(CursorAdapter.java:217)                                                                                       在android.widget.AutoCompleteTextView $ PopupDataSetObserver $ 1.run(AutoCompleteTextView.java:1411)                                                                                       在android.os.Handler.handleCallback(Handler.java:873)                                                                                       在android.os.Handler.dispatchMessage(Handler.java:99)                                                                                       在android.os.Looper.loop(Looper.java:193)                                                                                       在android.app.ActivityThread.main(ActivityThread.java:6669)                                                                                       在java.lang.reflect.Method.invoke(本机方法)                                                                                       在com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run(RuntimeInit.java:493)                                                                                       在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

只有Android Pie中的崩溃才能与Oreo及以下版本配合使用 可能是什么问题,请帮忙?

0 个答案:

没有答案