Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
thorito opened this issue Dec 11, 2024 · 0 comments
Open
3 tasks done

Comments

@thorito
Copy link

thorito commented Dec 11, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant