isar icon indicating copy to clipboard operation
isar copied to clipboard

[MacOS] IsarError: Cannot open Environment: MdbxError (15): Block device required

Open jackstefansky opened this issue 2 years ago • 16 comments

I'm opening the same issue again ( see #1125 for more context ), since v3.1.0+1 does not fix the it.

I can notice that the v3.1.0+1 at least does not crash the app.


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

jackstefansky avatar Apr 25 '23 11:04 jackstefansky

@jackstefansky sorry for incorrectly closing.

do you have more details about the issue?

Does it only happen on specific derices? Are you able to reproduce it? Any other details?

Did you also get this "error 15" in the previous issue?

simc avatar Apr 25 '23 12:04 simc

Yes, the #1125 was all about the error 15. I don't understand what does the "Block device required" means. When I started looking into it, I found some issues related to Mdbx database:

https://bytemeta.vip/repo/ledgerwatch/erigon/issues/2761 https://github.com/ledgerwatch/erigon/issues/4871

I am not able to reproduce it on my my machine, but I set up flutter enviroment on the device of person that happens to have this issue. It all started from crash on version 3.0.5 and after investigating it more, we notice that there is something wrong with mdbx

jackstefansky avatar Apr 25 '23 12:04 jackstefansky

Here are more info about the device that have this problem:

Model: MacBookPro16,1 Architecture: x86 ( Intel ) Kernel version: Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 Operating system version: 13.3.1(22E261)

Hope it helps. Let me know if there are some other infos I can provide

jackstefansky avatar Apr 25 '23 12:04 jackstefansky

@simc I'm experiencing the same issue on my macOS device with an Intel processor. Would you be able to provide any guidance on how to solve this problem, or suggest any potential workarounds? Thank you!

bartosz-timecamp avatar May 08 '23 12:05 bartosz-timecamp

@simc any clues what might cause this?

jackstefansky avatar May 19 '23 07:05 jackstefansky

Unfortunately has the same issue:

MacOS Ventura 13.4.1 (22F82) Macbook Pro 16,1 Intel Core i7

Flutter 3.10.5 Dart 3.0.5 Isar v3.1.0+1

turimm avatar Jun 27 '23 14:06 turimm

@simc, I've also been observing a significant number of similar crashes recently. It appears to be predominantly affecting older Macbook models, however, it's not exclusively confined to them as I see some M2's on the list as well.

image Screenshot 2023-07-13 at 08 59 13 image image

Flutter 3.10.5 Dart 3.0.5 Isar v3.1.0+1

What kind of assistance can we offer you? This seems to be a major bug; for instance, in my app, this error has affected 20% of the users and each user has encountered it ten times.

JulienDev avatar Jul 13 '23 07:07 JulienDev

OS: macOS Ventura 13.4.1 (Apple M2)

Flutter 3.10.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 84a1e904f4 (3 months ago) • 2023-05-09 07:41:44 -0700 Engine • revision d44b5a94c9 Tools • Dart 3.0.0 • DevTools 2.23.1

Isar: v3.1.0+1

Error Message

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: IsarError: Cannot open Environment: MdbxError (15): Block device required

Sample code to reproduce the error: I'm using Isar example code (v3.1.0+1).

https://github.com/isar/isar/tree/3.1.0%2B1/examples/pub

Steps to reproduce:

  1. Clone the repo and go to the example project.
  2. Run pub get and build
  3. Run the app without changing anything
  4. Check the debug console

Note: If have markdown viewer problem, just remove it's usage and delete the file.

dennislean avatar Aug 10 '23 02:08 dennislean

@dennislean unfortunately it works perfectly fine on my M1 Pro with the same OS

simc avatar Aug 17 '23 10:08 simc

@simc Here's more info. For my case, the problem only happen when using iOS Simulator.

XCode: 14.3.1 Simulator: iPhone 14 Pro Max iOS 16.4

It works on physical phone on both Android and iPhone and Android emulator.

dennislean avatar Aug 18 '23 16:08 dennislean

I use exactly the same setup @dennislean 😕

simc avatar Aug 18 '23 16:08 simc

I also see the same error. I am building and running my app on M1 Apple macbook

arlindiDev avatar Sep 05 '23 21:09 arlindiDev

Getting this error as well on iOS 17.0 Simulator. Any fixes?

sarbazx avatar Nov 02 '23 06:11 sarbazx

Getting this error as well on macos x86_64 iOS 17.0 Simulator. But works well on m1 mac.

gsmlg avatar Nov 09 '23 03:11 gsmlg