aliyun / aliyun-log-android-sdk

MIT License
180 stars 40 forks source link

SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=6 #57

Closed 01100044093 closed 3 years ago

01100044093 commented 3 years ago

我的应用上市场后,经常在android 9抓到此BUG

android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=6
    at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:904)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:851)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:149)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:137)
    at org.greenrobot.greendao.a.d(Proguard:453)
    at org.greenrobot.greendao.a.c(Proguard:203)
    at org.greenrobot.greendao.f.a(Proguard:37)
    at org.greenrobot.greendao.c.f.b(Proguard:89)
    at com.aliyun.sls.android.sdk.g.b(Proguard:84)
    at com.aliyun.sls.android.sdk.a.c(Proguard:85)
    at com.aliyun.sls.android.sdk.a.b(Proguard:19)
    at com.aliyun.sls.android.sdk.a$a.run(Proguard:68)
    at java.util.TimerThread.processTask(Timer.java:569)
    at java.util.TimerThread.mainLoop(Timer.java:527)
    at java.util.TimerThread.run(Timer.java:512)

配置为:

      ClientConfiguration txtconf = new ClientConfiguration();
        txtconf.setConnectionTimeout(15 * 1000); // 连接超时,默认15秒
        txtconf.setSocketTimeout(15 * 1000); // socket超时,默认15秒
        txtconf.setMaxConcurrentRequest(1); // 最大并发请求书,默认5个
        txtconf.setMaxErrorRetry(1); // 失败后最大重试次数,默认2次
        txtconf.setCachable(true);
        txtconf.setConnectType(ClientConfiguration.NetworkPolicy.WWAN_OR_WIFI);

我无法捕抓跳过此异常 请你们修复 oss-android-sdk 使用的是 2.4.2

chaolee50 commented 3 years ago

旧版本已经不维护了,请参考例子使用新版本

implementation 'com.aliyun.openservices:aliyun-log-android-sdk:2.5.4'