I believe this should be fixed in the next release...
# android
d
I believe this should be fixed in the next release.. can you test against snapshots and see if it resolves your issue?
l
Unfortunately still seeing;
Copy code
E/ROOM: Cannot run invalidation tracker. Is the db closed?
    java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.
        at androidx.room.RoomDatabase.assertNotMainThread(RoomDatabase.java:385)
        at androidx.room.RoomDatabase.query(RoomDatabase.java:441)
        at androidx.room.RoomDatabase.query(RoomDatabase.java:429)
        at androidx.room.InvalidationTracker$1.checkUpdatedTable(InvalidationTracker.java:461)
        at androidx.room.InvalidationTracker$1.run(InvalidationTracker.java:431)
        at androidx.room.InvalidationTracker.refreshVersionsSync(InvalidationTracker.java:513)
        at androidx.room.paging.LimitOffsetDataSource.isInvalid(LimitOffsetDataSource.java:101)
        at androidx.paging.LegacyPagingSource.<init>(LegacyPagingSource.kt:50)
        at androidx.paging.DataSource$Factory$asPagingSourceFactory$1.invoke(DataSource.kt:238)
        at androidx.paging.DataSource$Factory$asPagingSourceFactory$1.invoke(DataSource.kt:138)
        at androidx.paging.SuspendingPagingSourceFactory.invoke(SuspendingPagingSourceFactory.kt:41)
        at androidx.paging.SuspendingPagingSourceFactory.invoke(SuspendingPagingSourceFactory.kt:30)
Against:
Copy code
Gradle: androidx.paging:paging-common:3.0.0-alpha13
Gradle: androidx.paging:paging-common-ktx:3.0.0-SNAPSHOT
Gradle: androidx.paging:paging-compose:1.0.0-alpha06@aar
Gradle: androidx.paging:paging-runtime:3.0.0-SNAPSHOT@aar
Gradle: androidx.paging:paging-runtime-ktx:3.0.0-SNAPSHOT@aar
I used
Copy code
maven("<https://androidx.dev/snapshots/builds/7139117/artifacts/repository>")
Which I was the latest snapshot at the time I looked. Should I add to the ticket?
After upgrading to
Copy code
Gradle: androidx.paging:paging-common:3.0.0-beta01
Gradle: androidx.paging:paging-common-ktx:3.0.0-beta01
Gradle: androidx.paging:paging-compose:1.0.0-alpha07@aar
Gradle: androidx.paging:paging-runtime:3.0.0-beta01@aar
Gradle: androidx.paging:paging-runtime-ktx:3.0.0-beta01@aar
The problem appears to be resolved 🎉
d
🥳