[MacOS] IsarError: Cannot open Environment: MdbxError (15): Block device required
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 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?
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
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
@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!
@simc any clues what might cause this?
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
@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.
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.
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:
- Clone the repo and go to the example project.
- Run pub get and build
- Run the app without changing anything
- Check the debug console
Note: If have markdown viewer problem, just remove it's usage and delete the file.
@dennislean unfortunately it works perfectly fine on my M1 Pro with the same OS
@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.
I use exactly the same setup @dennislean 😕
I also see the same error. I am building and running my app on M1 Apple macbook
Getting this error as well on iOS 17.0 Simulator. Any fixes?
Getting this error as well on macos x86_64 iOS 17.0 Simulator. But works well on m1 mac.