Incorrect box loading on Android
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Steps to Reproduce**
1. We've got box with binary data. It goes in the bundle and before opening boxes, we copy it to files.
2. iOS successfully opens it and sees all 1169 entries. Android only opens it, but sees only part of entries (every start gets a different count of read data). https://drive.google.com/file/d/1Xx9btGoVlNhqlppHBgwxyV0KrX2ikfQV/view?usp=sharing
In console we see:
`
I/flutter ( 4612): Recovering corrupted box.
I/flutter ( 4612): Images count : 46
`
**Code sample**
`
unselectedMarker = Images.encodePng(markerImage);
selectedMarker = Images.encodePng(selectedMarkerImage);
Hive.box(_imagesBoxName).put(key, {
'unselectedMarker': unselectedMarker,
'selectedMarker': selectedMarker,
'originalImage': original != null ? original : List(),
'name': value,
});`
**Version**
- Platform: iOS, Android,
- Flutter version: Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-RU
- Hive version: 1.4.2
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.