java.lang.RuntimeException: An error occurred while executing doInBackground()
PHONE_MODEL=ASUS_Z010D
APP_VERSION_NAME=1.14
STACK_TRACE_HASH=69dc086c
USER_COMMENT=
AVAILABLE_MEM_SIZE=11850887168
CUSTOM_DATA=
BRAND=asus
ANDROID_VERSION=6.0.1
PACKAGE_NAME=org.fdroid.fdroid
TOTAL_MEM_SIZE=25990307840
PRODUCT=WW_Phone
DISPLAY=0.currentSizeRange.smallest=[720,672]
0.currentSizeRange.largest=[1280,1232]
0.flags=FLAG_SUPPORTS_PROTECTED_BUFFERS+FLAG_SECURE
0.height=1280
0.metrics.density=2.0
0.metrics.densityDpi=320
0.metrics.scaledDensity=x2.0
0.metrics.widthPixels=720
0.metrics.heightPixels=1280
0.metrics.xdpi=268.941
0.metrics.ydpi=268.694
0.name=Built-in Screen
0.orientation=0
0.pixelFormat=1
0.realMetrics.density=2.0
0.realMetrics.densityDpi=320
0.realMetrics.scaledDensity=x2.0
0.realMetrics.widthPixels=720
0.realMetrics.heightPixels=1280
0.realMetrics.xdpi=268.941
0.realMetrics.ydpi=268.694
0.realSize=[720,1280]
0.rectSize=[0,0,720,1280]
0.refreshRate=60.0
0.rotation=ROTATION_0
0.size=[720,1280]
0.width=720
0.isValid=true
What did you do? (clear steps if possible)
- Install f-droid apk downloaded from f-droid.org
- Open the app
What did you expect to see?
I expected to see the list of apps after "Updating repositories" step
What did you see instead?
F-droid crashed during "Updating repositories" step
Stacktrace
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: fdroid_installedApp.hash (code 1299)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:780)
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:1473)
at android.database.sqlite.SQLiteDatabase.replaceOrThrow(SQLiteDatabase.java:1415)
at org.fdroid.fdroid.data.InstalledAppProvider.insert(InstalledAppProvider.java:350)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:263)
at android.content.ContentResolver.insert(ContentResolver.java:1234)
at org.fdroid.fdroid.data.InstalledAppProviderService.insertAppIntoDb(InstalledAppProviderService.java:372)
at org.fdroid.fdroid.data.InstalledAppProviderService.onHandleWork(InstalledAppProviderService.java:303)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:391)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:382)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: fdroid_installedApp.hash (code 1299)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:780)
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:1473)
at android.database.sqlite.SQLiteDatabase.replaceOrThrow(SQLiteDatabase.java:1415)
at org.fdroid.fdroid.data.InstalledAppProvider.insert(InstalledAppProvider.java:350)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:263)
at android.content.ContentResolver.insert(ContentResolver.java:1234)
at org.fdroid.fdroid.data.InstalledAppProviderService.insertAppIntoDb(InstalledAppProviderService.java:372)
at org.fdroid.fdroid.data.InstalledAppProviderService.onHandleWork(InstalledAppProviderService.java:303)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:391)
at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:382)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)