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

ERROR:flutter/lib/ui/ui_dart_state.cc(209) Unhandled Exception: HiveError: This should not happen. Please open an issue on GitHub. #757

Open
PavelSmertin opened this issue Aug 13, 2021 · 2 comments
Labels
problem An unconfirmed bug.

Comments

@PavelSmertin
Copy link

PavelSmertin commented Aug 13, 2021

E/flutter ( 7765): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: HiveError: This should not happen. Please open an issue on GitHub.
E/flutter ( 7765): #0 BinaryReaderImpl.readFrame (package:hive/src/binary/binary_reader_impl.dart:250:7)
E/flutter ( 7765): #1 FrameHelper.framesFromBytes (package:hive/src/binary/frame_helper.dart:21:26)
E/flutter ( 7765): #2 FrameIoHelper.framesFromFile (package:hive/src/io/frame_io_helper.dart:42:12)
E/flutter ( 7765):
E/flutter ( 7765): #3 StorageBackendVm.initialize (package:hive/src/backend/vm/storage_backend_vm.dart:86:11)
E/flutter ( 7765):
E/flutter ( 7765): #4 HiveImpl._openBox (package:hive/src/hive_impl.dart:116:9)
E/flutter ( 7765):
E/flutter ( 7765): #5 HiveImpl.openBox (package:hive/src/hive_impl.dart:145:12)
E/flutter ( 7765):
E/flutter ( 7765): #6 main (package:miracle/main.dart:146:3)
E/flutter ( 7765):
E/flutter ( 7765):

@PavelSmertin PavelSmertin added the problem An unconfirmed bug. label Aug 13, 2021
@cspensky
Copy link

cspensky commented Sep 3, 2021

I'm seeing this as well. Are you by chance using callbacks in different Isolates to access Hive?

@ronpetit
Copy link

ronpetit commented Sep 7, 2021

@cspensky I'm having this problem too, and yes, I'm using isolates callbacks to access Hive, more specifically the FirebaseBackgroundMessageHandler

EDIT: For anyone with this issue, this comment help me to get a workaround #676 (comment), seems like Hive cannot be use to share data between Isolates. Also, special characters in box names looks like can corrupt the boxes

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

3 participants