-
Notifications
You must be signed in to change notification settings - Fork 134
After Android saves the data, an error is reported when running again, and there will be a flash back when I debug the breakpoint #459
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
Comments
Thanks! Can you please share additional details (code snippets, what versions you are using, instructions) that allow us to reproduce this problem? |
bug example: iOS works fine, When Android is opened for the second time, an error will be reported. |
If I read the code correctly, it may call objectbox-dart/objectbox/example/flutter/objectbox_demo_relations/lib/main.dart Lines 12 to 20 in 6c2176d
|
I'm pretty sure it's only called once. I/flutter (18852): initDataBase initDataBase!
I/flutter (18852): getBox getBox!
E/flutter (18852): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: RangeError (byteOffset): Invalid value: Valid value range is empty: 0
E/flutter (18852): #0 ObjectCollectorError.throwIfError (package:objectbox/src/native/bindings/data_visitor.dart:58:24)
E/flutter (18852): #1 Query.find (package:objectbox/src/native/query/query.dart:827:18)
E/flutter (18852): #2 DataBase.getLanguageData (package:bug/main.dart:196:25)
E/flutter (18852): #3 _MyHomePageState.initDataBase (package:bug/main.dart:79:35)
E/flutter (18852): <asynchronous suspension> |
This is #460, a fix is available with the latest release: https://github.com/objectbox/objectbox-dart/releases/tag/v1.6.2 |
Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue. |
The error screenshot is as follows:

The text was updated successfully, but these errors were encountered: