Skip to content
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

Hive generated error from Sentry: "binary_reader_impl.dart", line 249 #283

Closed
JarrodLodge opened this issue Apr 15, 2020 · 6 comments
Closed
Assignees
Labels
problem An unconfirmed bug.

Comments

@JarrodLodge
Copy link

Steps to Reproduce
Error came through in Sentry, have not tried to reproduce.

Code sample

HiveError: HiveError: This should not happen. Please open an issue on GitHub.
  File "binary_reader_impl.dart", line 249, in BinaryReaderImpl.readFrame
  File "frame_helper.dart", line 17, in FrameHelper.framesFromBytes
  File "frame_io_helper.dart", line 41, in FrameIoHelper.framesFromFile
  File "<asynchronous suspension>"
  File "storage_backend_vm.dart", line 82, in StorageBackendVm.initialize
  File "<asynchronous suspension>"
  File "hive_impl.dart", line 90, in HiveImpl._openBox
  File "<asynchronous suspension>"
  File "hive_impl.dart", line 111, in HiveImpl.openBox
  File "<asynchronous suspension>"
  File "offline_service.dart", line 16, in OfflineService.initHive
  File "<asynchronous suspension>"
  File "unparsed"

Version

  • Platform: Android
  • Flutter version: Beta 1.17
  • Hive version: ^1.4.1+1

brand | "samsung"
device | "greatlte"
display | "PPR1.180610.011.N950FXXS9DTA1"
hardware | "samsungexynos8895"
isPhysicalDevice | true
manufacturer | "samsung"
model | "SM-N950F"
product | "greatltexx"
supported32BitAbis | ["armeabi-v7a","armeabi"]
supported64BitAbis | ["arm64-v8a"]
supportedAbis | ["arm64-v8a","armeabi-v7a","armeabi"]
type | "user"
version | "9"

@JarrodLodge JarrodLodge added the problem An unconfirmed bug. label Apr 15, 2020
@ryanhoo
Copy link

ryanhoo commented Apr 15, 2020

Facing the same issue

HiveError: HiveError: This should not happen. Please open an issue on GitHub.
  File "binary_reader_impl.dart", line 249, in BinaryReaderImpl.readFrame
  File "<asynchronous suspension>"
  File "hive_impl.dart", line 128, in HiveImpl.openLazyBox
  File "data_manager.dart", line 548, in DataManager.openSettingsBox
  File "data_manager.dart", line 510, in DataManager.prepareHive
  File "<asynchronous suspension>"
  File "start_page.dart", line 82, in _StartPageState._prepare
  File "start_page.dart", line 23, in _StartPageState.initState
  File "framework.dart", line 4355, in StatefulElement._firstBuild
  File "framework.dart", line 4201, in ComponentElement.mount
  File "framework.dart", line 3194, in Element.inflateWidget
  File "framework.dart", line 2988, in Element.updateChild

@knaeckeKami
Copy link

Jep, getting a lot of these too in my crash reporting:

HiveError: This should not happen. Please open an issue on GitHub.
BinaryReaderImpl.readFrame (BinaryReaderImpl.java:249)
FrameHelper.framesFromBytes (FrameHelper.java:17)
FrameIoHelper.framesFromFile (FrameIoHelper.java:41)
StorageBackendVm.initialize (StorageBackendVm.java:82)
HiveImpl._openBox (HiveImpl.java:90)
HiveImpl.openBox (HiveImpl.java:111)
HiveStore.appStateStore (HiveStore.java:65)

@dvird
Copy link

dvird commented May 29, 2020

@leisim what about it? is this library still maintained?

@MarcelGarus
Copy link
Contributor

@dvird See #305

@dvird
Copy link

dvird commented Jul 4, 2020

For those who suffer from this error. do not use 'clear' function. do for loop of delete

@themisir
Copy link
Contributor

themisir commented Aug 22, 2020

Duplicate of #263

@themisir themisir marked this as a duplicate of #263 Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem An unconfirmed bug.
Projects
None yet
Development

No branches or pull requests

7 participants