You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Crashlytics reported such error on real user device on app's prod release
Basic info (please complete the following information):
ObjectBox version (are you using the latest version?): 2.9.1
Reproducibility: occurred once only
Device: Galaxy S20 FE
OS: Android 12
Logs, stack traces
Caused by io.objectbox.exception.DbException: Could not commit tx (-30786)
at io.objectbox.Transaction.nativeCommit(Transaction.java)
at io.objectbox.Transaction.commit(Transaction.java:135)
at io.objectbox.Transaction.commitAndClose(Transaction.java:140)
at io.objectbox.Box.commitWriter(Box.java:123)
at io.objectbox.Box.internalCallWithWriterHandle(Box.java:698)
at io.objectbox.query.Query.remove(Query.java:590)
at *.android.upload.diskcache.DiskCacheManager.removeAllFromUpload(DiskCacheManager.kt:175)
at *.android.upload.upload.AutoBackupUploadManager.cancelAll(AutoBackupUploadManager.kt:132)
at *.android.upload.service.AutoBackupService.stopCameraScanning(AutoBackupService.kt:74)
at *.android.upload.service.AutoBackupService.onDestroy(AutoBackupService.kt:52)
at android.app.ActivityThread.handleStopService(ActivityThread.java:5122)
at android.app.ActivityThread.access$2300(ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2324)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
The text was updated successfully, but these errors were encountered:
-30786 is an internal code for a potential disk corruption. If this error was reported just once, it could be that it's a hardware failure of the user's device. The only thing that could be done for non-reproducible cases like this is to catch this and delete the DB hoping that it does not fail again. 🤷
PS.: my first response was wrong (-30786 is not "db is full"), in case you are wondering about the edited comment.
Describe the bug
Crashlytics reported such error on real user device on app's prod release
Basic info (please complete the following information):
Logs, stack traces
Caused by io.objectbox.exception.DbException: Could not commit tx (-30786)
at io.objectbox.Transaction.nativeCommit(Transaction.java)
at io.objectbox.Transaction.commit(Transaction.java:135)
at io.objectbox.Transaction.commitAndClose(Transaction.java:140)
at io.objectbox.Box.commitWriter(Box.java:123)
at io.objectbox.Box.internalCallWithWriterHandle(Box.java:698)
at io.objectbox.query.Query.remove(Query.java:590)
at *.android.upload.diskcache.DiskCacheManager.removeAllFromUpload(DiskCacheManager.kt:175)
at *.android.upload.upload.AutoBackupUploadManager.cancelAll(AutoBackupUploadManager.kt:132)
at *.android.upload.service.AutoBackupService.stopCameraScanning(AutoBackupService.kt:74)
at *.android.upload.service.AutoBackupService.onDestroy(AutoBackupService.kt:52)
at android.app.ActivityThread.handleStopService(ActivityThread.java:5122)
at android.app.ActivityThread.access$2300(ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2324)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
The text was updated successfully, but these errors were encountered: