hive icon indicating copy to clipboard operation
hive copied to clipboard

'Invalid argument, errno = 22' when calling .open()

Open kvenn opened this issue 2 years ago • 2 comments

I'm receiving the following error when trying to open a box. I haven't been able to find any indication on why this would fail (it's happening to about 5% of users).

Uncaught Platform Error: FileSystemException: read failed, path = '/var/mobile/Containers/Data/Application/D2B812D0-C5B0-45CB-9789-4D0D614B61A2/Documents/graphqlclientstore.hive' (OS Error: Invalid argument, errno = 22)

Full stack trace:

FileSystemException: FileSystemException: read failed, path = '/var/mobile/Containers/Data/Application/D2B812D0-C5B0-45CB-9789-4D0D614B61A2/Documents/graphqlclientstore.hive' (OS Error: Invalid argument, errno = 22) File "common.dart", line 42, in _checkForErrorResponse File "file_impl.dart", line 740, in _RandomAccessFile.read. File "zone.dart", line 1406, in _rootRunUnary File "" File "frame_io_helper.dart", line 41, in FrameIoHelper.framesFromFile File "" File "storage_backend_vm.dart", line 86, in StorageBackendVm.initialize File "" File "hive_impl.dart", line 111, in HiveImpl._openBox File "" File "hive_impl.dart", line 142, in HiveImpl.openBox File "" File "hive_store.dart", line 41, in HiveStore.openBox File "" File "hive_store.dart", line 52, in HiveStore.open

Potentially relevant information. We're seeing another Hive error:

  • (OS Error: Cannot allocate memory, errno = 12)

kvenn avatar Aug 25 '23 14:08 kvenn

I'm facing the same issue, any solution to this?

angwarati avatar Sep 26 '23 04:09 angwarati

Nope. We fixed the memory error and are still seeing this one :(

kvenn avatar Sep 26 '23 19:09 kvenn