FormatException: Missing extension byte (at offset 14)
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Steps to Reproduce**
error when opening the box
import 'package:hive_flutter/hive_flutter.dart';
await Hive.initFlutter();
await Hive.openBox('boxFavoritos').then((value) => boxFavoritos = value);
```
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: FormatException: Missing extension byte (at offset 14). Error thrown null.
at Utf8Decoder.convert(dart:convert)
at BinaryReaderImpl.readKey(binary_reader_impl.dart:224)
at BinaryReaderImpl.readFrame(binary_reader_impl.dart:269)
at FrameHelper.framesFromBytes(frame_helper.dart:21)
at FrameIoHelper.framesFromFile(frame_io_helper.dart:42)
at StorageBackendVm.initialize(storage_backend_vm.dart:86)
at HiveImpl._openBox(hive_impl.dart:110)
at HiveImpl.openBox(hive_impl.dart:140)
at HiveDB.carregaBoxs(hiveDb.dart:25)
at HiveDB.inicia(hiveDb.dart:16)
at AppModule.initialiseSevices(app_module.dart:48)
at SplashController.carregaDependencias(splash_controller.dart:16)
```
**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: [3.0]
- Hive version: [2.1.0]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.