isar / isar/hive

[WINDOWS] FileSystemException: FileSystemException: File closed, path = 'C:\Users\[..]\Documents\graphql.hive'

Open
#759 6 comments 2 reactions 0 assignees View on GitHub
problem
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

When releasing a desktop app using Hive (in conjunction with [`graphql_ferry`](https://ferrygraphql.com/)) I get the following error in production:

```
FileSystemException: FileSystemException: File closed, path = 'C:\Users\neals\Documents\graphql.hive'
```

**Steps to Reproduce**
1. Add Sentry to the project to log errors in release
2. Launch hive on windows in release mode
3. When trying to modify the cache the user gets a error listed above

**Code sample**
```
import 'package:ferry_hive_store/ferry_hive_store.dart';
await Hive.initFlutter();
final box = await Hive.openBox("graphql");
final store = HiveStore(box); // From ferry_graphql
```

**Version**
- Platform: Windows
- Flutter version: 2.2.4
- Hive version: 2.0.4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.