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

Alternative crash for org.kiwix.kiwixmobile #2

Open
auermich93 opened this issue Jan 10, 2024 · 0 comments
Open

Alternative crash for org.kiwix.kiwixmobile #2

auermich93 opened this issue Jan 10, 2024 · 0 comments

Comments

@auermich93
Copy link

There is an alternative crash for the app org.kiwix.kiwixmobile 276.apk discoverable by reproducing the following sequence:

  1. Open Menu (...)
  2. Click on Settings
  3. Click on 'Enable bottom toolbar'
  4. Return to main activity
  5. Click on 'star' symbol in bottom toolbar

This will lead to the following crash:

android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: Bookmarks.ZimId (code 1299)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1474)
at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1369)
at com.yahoo.squidb.data.adapter.SQLiteDatabaseAdapter.insertOrThrow(SQLiteDatabaseAdapter.java:158)
at com.yahoo.squidb.data.SquidDatabase.insert(SquidDatabase.java:592)
at com.yahoo.squidb.data.SquidDatabase.insertRow(SquidDatabase.java:1687)
at com.yahoo.squidb.data.SquidDatabase.persistWithOnConflict(SquidDatabase.java:1623)
at com.yahoo.squidb.data.SquidDatabase.persist(SquidDatabase.java:1608)
at org.kiwix.kiwixmobile.database.BookmarksDao.saveBookmark(BookmarksDao.java:65)
at org.kiwix.kiwixmobile.KiwixMobileActivity.saveBookmark(KiwixMobileActivity.java:1325)
at org.kiwix.kiwixmobile.KiwixMobileActivity.toggleBookmark(KiwixMobileActivity.java:1185)
at org.kiwix.kiwixmobile.KiwixMobileActivity$2.onBookmarkTabSelected(KiwixMobileActivity.java:352)
at org.kiwix.kiwixmobile.PageBottomTab$5.select(PageBottomTab.java:34)
at org.kiwix.kiwixmobile.KiwixMobileActivity.lambda$onCreate$4$KiwixMobileActivity(KiwixMobileActivity.java:500)
at org.kiwix.kiwixmobile.KiwixMobileActivity$$Lambda$4.onClick(Unknown Source)
at android.view.View.performClick(View.java:5637)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

This crash was reproduced on a Pixel XL using API level 25 (7.1.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant