hive icon indicating copy to clipboard operation
hive copied to clipboard

FormatException: Missing extension byte (at offset 14)

Open lucascardo12 opened this issue 3 years ago • 0 comments

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]

lucascardo12 avatar May 14 '22 03:05 lucascardo12