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

Migration issue: no such table: PageManager #3355

Open
tuomas2 opened this issue Jan 2, 2025 · 0 comments
Open

Migration issue: no such table: PageManager #3355

tuomas2 opened this issue Jan 2, 2025 · 0 comments

Comments

@tuomas2
Copy link
Contributor

tuomas2 commented Jan 2, 2025

https://support.andbible.org/scp/tickets.php?id=2803

Device info:
App id: net.bible.android.activity
Version: 5.0.834#e9ecf0718 googleplay standard release (built 29/11/24 10:03:07)
Android version: 14
Android SDK version: 34
Manufacturer: samsung
Model: SM-S921U
Storage Mb free: 10715
WebView version: 131.0.6778.135
SQLITE version: 3.42.0
Used heap memory in Mb: 16
Max heap memory in Mb: 256

Exception:
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.bible.android.activity/net.bible.android.view.activity.page.MainBibleActivity}: android.database.sqlite.SQLiteException: no such table: PageManager (code 1 SQLITE_ERROR[1]): , while compiling: ALTER TABLE `PageManager` ADD `commentary_currentYOffsetRatio` REAL
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4172)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4330)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2693)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:9063)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: android.database.sqlite.SQLiteException: no such table: PageManager (code 1 SQLITE_ERROR[1]): , while compiling: ALTER TABLE `PageManager` ADD `commentary_currentYOffsetRatio` REAL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1541)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:976)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:63)
at android.database.sqlite.SQLiteStatement.(SQLiteStatement.java:34)
at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:2654)
at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:2576)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.execSQL(FrameworkSQLiteDatabase.kt:246)
at net.bible.android.database.migrations.OldMonolithicAppDatabaseMigrationsKt$MIGRATION_8_9$1.doMigrate(OldMonolithicAppDatabaseMigrations.kt:101)
at net.bible.android.database.migrations.Migration.migrate(Utilities.kt:29)
at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.kt:90)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onUpgrade(FrameworkSQLiteOpenHelper.kt:253)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:521)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:419)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at net.bible.service.db.DatabaseContainer.migrateOldDatabaseIfNeeded(DatabaseContainer.kt:98)
at net.bible.service.db.DatabaseContainer.(DatabaseContainer.kt:74)
at net.bible.service.db.DatabaseContainer$Companion.getInstance(DatabaseContainer.kt:280)
at net.bible.service.common.CommonUtils.initializeApp(CommonUtils.kt:1095)
at net.bible.android.view.activity.base.ActivityBase.onCreate(ActivityBase.kt:81)
at net.bible.android.view.activity.page.MainBibleActivity.onCreate(MainBibleActivity.kt:244)
at android.app.Activity.performCreate(Activity.java:9001)
at android.app.Activity.performCreate(Activity.java:8970)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4154)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant