Open mdrideout opened 4 years ago
Thanks, I'm trying to run your code.
Edit: It works fine on Android and I currently don't have an iOS device to test on. Do you see this issue also on Android devices?
That error was on the iOS simulator on Mac (iPhone 11 Pro Max, Software Version 13.3)
More Tests (all of these are fresh install, no previous version of app installed)
Deleted App & Tested Again On Simulator iPhone 11 Pro Max I tried uninstalling the app, and then testing again on the iPhone 11 Pro Max simulator and it worked fine!
I am developing 2 apps with very similar hive structure and had the same error message on both of them.
Solution Uninstalling the previously installed version of the app, then doing a fresh "run" from Android Studio fixed the issue.
iOS Simulator
So this appears to be an upgrade / downgrade issue for this version.
Real iOS device
Android Devices
Thank you for your detailed analysis. This is a very weird issue. I'll try to get access to an iOS simulator to reproduce this behavior.
I had the same error on iOS when I wanted to do the version upgrade. The description made by @mdrideout corresponds perfectly to the problem which is also present when upgrading from 1.1.1 to 1.3.0.
I've the same issue. @leisim if you have a possibility to fix just do it, please.
@leisim Is it actual for 1.4.1 ?
I have the same issue on Android emulator for API 29 for the version ^1.4.1+1.
Had same exception on Flutter 1.19.0-4.3pre and Hive 1.4.1+1, Android Emulator API level 29 at Hive.openBox
Dictionary() {
const file = 'assets/EnRuBig.json';
Hive.initFlutter().then((value) {
Hive.openBox<String>(file).then((box) {
_box = box;
When I changed the box name from the value in "file" (containing slashes, it is also used latter to load data from bundled asset) to simple "EnRuBig" then it worked for me.
I had the same issue when the box name contained slash in integration tests, IE:
'tests/test_${testName}_${DateTime.now().microsecond}'
.
It might be worth to assert that the name does not contain black listed characters or replace those characters.
Could it be related to the non-relative path on iOS : D0964550-86ED-43BE-A833-41BE76271E58
because the app directory ID is changed by the OS for each app session
Is there any update regarding this issue?
Steps to Reproduce Upgraded previously working app using HiveDB to Hive 1.2.0
Error
Code sample
main.dart
contact.dart
contact_data.dart
Version