isar / isar/hive

Unhandled Exception: Out of Memory

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

Description

E/flutter (25087): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Out of Memory
E/flutter (25087): #0 new Uint8List (dart:typed_data-patch/typed_data_patch.dart:2237:3)
E/flutter (25087): #1 BufferedFileReader.loadBytes (package:hive/src/io/buffered_file_reader.dart:73:18)
E/flutter (25087): #2 _KeyReader._load (package:hive/src/io/frame_io_helper.dart:89:40)
E/flutter (25087): #3 _KeyReader.readKeys (package:hive/src/io/frame_io_helper.dart:69:31)
E/flutter (25087): #4 _rootRunUnary (dart:async/zone.dart:1407:47)
E/flutter (25087): #5 _CustomZone.runUnary (dart:async/zone.dart:1308:19)
E/flutter (25087): #6 _FutureListener.handleValue (dart:async/future_impl.dart:162:18)
E/flutter (25087): #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:846:45)
E/flutter (25087): #8 Future._propagateToListeners (dart:async/future_impl.dart:875:13)
E/flutter (25087): #9 Future._completeWithValue (dart:async/future_impl.dart:647:5)
E/flutter (25087): #10 _rootRunUnary (dart:async/zone.dart:1407:47)
E/flutter (25087): #11 _CustomZone.runUnary (dart:async/zone.dart:1308:19)
E/flutter (25087): #12 _FutureListener.handleValue (dart:async/future_impl.dart:162:18)
E/flutter (25087): #13 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:846:45)
E/flutter (25087): #14 Future._propagateToListeners (dart:async/future_impl.dart:875:13)
E/flutter (25087): #15 Future._completeWithValue (dart:async/future_impl.dart:647:5)
E/flutter (25087): #16 _rootRunUnary (dart:async/zone.dart:1407:47)
E/flutter (25087): #17 _CustomZone.runUnary (dart:async/zone.dart:1308:19)
E/flutter (25087): #18 _FutureListener.handleValue (dart:async/future_impl.dart:162:18)
E/flutter (25087): #19 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:846:45)
E/flutter (25087): #20 Future._propagateToListeners (dart:async/future_impl.dart:875:13)
E/flutter (25087): #21 Future._completeWithValue (dart:async/future_impl.dart:647:5)
E/flutter (25087): #22 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:721:7)
E/flutter (25087): #23 _rootRun (dart:async/zone.dart:1399:13)
E/flutter (25087): #24 _CustomZone.run (dart:async/zone.dart:1301:19)
E/flutter (25087): #25 _CustomZone.bindCallback. (dart:async/zone.dart:1233:23)
E/flutter (25087): #26 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter (25087): #27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

Contributor guide

No contributing guide indexed for this repository

Research direction

The trace points to package:hive/src/io/buffered_file_reader.dart at BufferedFileReader.loadBytes and package:hive/src/io/frame_io_helper.dart in _KeyReader._load/readKeys. Start by reproducing the failure and tracing the file and data conditions that cause the allocation to exhaust memory. Done should include a confirmed cause and a regression test or documented reproduction showing the exception no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
databases, mobile-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.