Title: io.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787) · Issue #1224 · objectbox/objectbox-java · GitHub
Open Graph Title: io.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787) · Issue #1224 · objectbox/objectbox-java
X Title: io.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787) · Issue #1224 · objectbox/objectbox-java
Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 4.1.0 OS: Android 9 Device/ABI/architecture: Tablet Lilliput Steps to reproduce I haven't been able to replicate the problem, but it happens freque...
Open Graph Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 4.1.0 OS: Android 9 Device/ABI/architecture: Tablet Lilliput Steps to reproduce I haven't been able to repl...
X Description: Is there an existing issue? I have searched existing issues Build info ObjectBox version: 4.1.0 OS: Android 9 Device/ABI/architecture: Tablet Lilliput Steps to reproduce I haven't been able to ...
Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1224
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"io.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787)","articleBody":"### Is there an existing issue?\n\n- [x] I have searched [existing issues](https://github.com/objectbox/objectbox-java/issues?q=is%3Aissue%20state%3Aclosed%2030787)\n\n### Build info\n\n- ObjectBox version: 4.1.0\n- OS: Android 9\n- Device/ABI/architecture: Tablet Lilliput\n\n### Steps to reproduce\n\nI haven't been able to replicate the problem, but it happens frequently on devices I don't have access to.\n\n\n### Expected behavior\n\nUnderstanding the problem is key to solving it.\n\n\n### Actual behavior\n\nThe application is crashing when trying to call a simple query.\n\n### Code\n\n\u003cdetails\u003e\u003csummary\u003eCode\u003c/summary\u003e\n\n```java\n override suspend fun getMessageCountFromDatabase(): Long {\n val box = equipmentMessageBoxStore.getBox(EquipmentMessageEnvelopeDTO::class.java)\n\n val count = box.query()\n .equal(EquipmentMessageEnvelopeDTO_.status, EquipmentMessageStatus.READY.value.toLong())\n .build()\n .use { it.count() }\n\n return count\n }\n```\nInit:\n\n```java\n @Provides\n @Singleton\n @EquipmentMessageStore\n fun provideBoxStoreMessages(\n @ApplicationContext context: Context\n ): BoxStore {\n var boxStore: BoxStore\n val storeBuilder = MyObjectBox.builder()\n .validateOnOpenKv()\n .androidContext(context)\n .name(\"equipment-messages\")\n boxStore = storeBuilder.build()\n return boxStore\n }\n```\n\n\n- Is there anything special about your app? No.\n- May transactions or multi-threading play a role? Yes.\n- Did you find any workarounds to prevent the issue? No.\n\n\u003c/details\u003e\n\n### Logs, stack traces\n\n\u003cdetails\u003e\u003csummary\u003eLogs, stack traces\u003c/summary\u003e\n\nio.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787)\n\nUnfortunately, this couldn't be reproduced, so I only have a photo of the problem occurring on a device.\n\n\u003cimg width=\"1263\" height=\"132\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7469521f-3f91-481b-b32f-a6fae6089db9\" /\u003e\n\n\u003c/details\u003e\n","author":{"url":"https://github.com/andreesperanca","@type":"Person","name":"andreesperanca"},"datePublished":"2025-11-21T19:10:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1224/objectbox-java/issues/1224"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f73c683-240e-944a-3157-1d1856a17b16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9574:DA408:C3C725:1043BF1:69804E98 |
| html-safe-nonce | e77e20d0c09cf68cd80d44779f2c7bc4875738c493abd0a38f3b89cb13e02fce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTc0OkRBNDA4OkMzQzcyNToxMDQzQkYxOjY5ODA0RTk4IiwidmlzaXRvcl9pZCI6IjE4MDI2Mjc1MzU3Mjk2MTAzOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7297a5522c4d330f18c1c992d6c42272954d9f8d2cc4bb309c8c14ba6cb3b26e |
| hovercard-subject-tag | issue:3652802438 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/objectbox/objectbox-java/1224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5e2aeccd90e09b648fbedf4e05c74a02344ee0401772b0a728487b37b14e5af/objectbox/objectbox-java/issues/1224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5e2aeccd90e09b648fbedf4e05c74a02344ee0401772b0a728487b37b14e5af/objectbox/objectbox-java/issues/1224 |
| og:image:alt | Is there an existing issue? I have searched existing issues Build info ObjectBox version: 4.1.0 OS: Android 9 Device/ABI/architecture: Tablet Lilliput Steps to reproduce I haven't been able to repl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreesperanca |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git |
| octolytics-dimension-user_id | 22327943 |
| octolytics-dimension-user_login | objectbox |
| octolytics-dimension-repository_id | 79901405 |
| octolytics-dimension-repository_nwo | objectbox/objectbox-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79901405 |
| octolytics-dimension-repository_network_root_nwo | objectbox/objectbox-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width