Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

IsarError: Cannot open Environment: MdbxError (38): Function not implemented #112

@thorito

Description

@thorito

Steps to Reproduce

I'm reporting a bug on Crashlytics for a OnePlus device, running Android 11

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: IsarError: Cannot open Environment: MdbxError (38): Function not implemented. Error thrown Error detected in runZonedGuarded.
#00 pc 0x81cc7b com.thorito.example (FirebaseCrashlytics.recordError [firebase_crashlytics.dart:119]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#01 pc 0x869e77 com.thorito.example (main.<anonymous closure> [main.dart:56]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#02 pc 0x869c07 com.thorito.example (runZonedGuarded.<anonymous closure> [zone.dart:1666]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#03 pc 0x7b3eb7 com.thorito.example (_Zone._processUncaughtError [zone.dart:1081]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#04 pc 0x26e0ef com.thorito.example (Future._propagateToListeners [zone.dart:1285]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#05 pc 0x26e1e7 com.thorito.example (Future._completeError [future_impl.dart:674]) (BuildId: 63956a45f814b3c910d24405fe4de070)
#06 pc 0x79ccdb com.thorito.example (_SuspendState._handleException [async_patch.dart:425]) (BuildId: 63956a45f814b3c910d24405fe4de070)
        

Code sample

class IsarHelper {
  // Singleton pattern
  static IsarHelper? _isar;
  static Isar? _isarDb;

  static IsarHelper get instance => _isar ??= const IsarHelper._internal();

  Isar get isar => _isarDb!;

  const IsarHelper._internal();

  Future<void> init() async {
    if (_isarDb != null) return;

    final path = (await getApplicationDocumentsDirectory()).path;
    _isarDb = await Isar.open(
      [
        NotificationDbSchema,
        MqttLocalMessageSchema,
      ],
      directory: path,
    );
  }
}

Details

  • Platform: OnePlus8Pro SDK: 11
  • Flutter version: Channel stable, 3.24.5
  • Isar version: ^3.1.8

Marca:OnePlus
Model: OnePlus8Pro
Orientation: Vertical
Available RAM: 1.97 GB
Available disk space: 2.86 GB

dependencies:
  
  isar:
    version: ^3.1.8
    hosted: https://pub.isar-community.dev/
  isar_flutter_libs:
    version: ^3.1.8
    hosted: https://pub.isar-community.dev/

  • I searched for similar issues already
  • I filled the details section with the exact device model and version
  • I am able to provide a reproducible example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions