isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.05k stars 403 forks source link

Safari Failed to execute 'transaction' #850

Open woutervanwijk opened 2 years ago

woutervanwijk commented 2 years ago

Steps to Reproduce Running an app with Hive (thanks btw, great!) gives this error when running the web-version in Safari, not in Firefox and Chrome:

"Unhandled Promise Rejection: NotFoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found."

This was also reported in #812 But that was only closed because the submitter removed Hive.

Code sample

var box = await Hive.openBox('abc');
box.put('abc', 'cde');

and run the web-version in Safari

Version

GP4cK commented 2 years ago

We're tracking this with Sentry and we've also seen this on Chrome and Edge. EDIT: further details on this, we're using ferry with hive as cache and apparently there's an issue that there is a memory leak. Maybe it's related(?)

puspharaj-teachspot commented 1 year ago

This pops-up in dart 3.10.0, please fix it! especially this happens firebase hosting release of flutter web.

thuanlegit commented 1 year ago

This pops-up in dart 3.10.0, please fix it! especially this happens firebase hosting release of flutter web.

Same here. The message is InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

bueltan commented 1 year ago

DOMException: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

Same here with chromium Version 114.0.5735.198 (Official Build) built on Debian 11.7, running on Debian 11.7 (64-bit) and chrome Version 114.0.5735.198 (Official Build) (64-bit)

AliEasy commented 1 year ago

Experiencing the same problem here

abigotado commented 1 year ago

Any reaction or updates? Experiencing the same problem

https://github.com/famedly/matrix-dart-sdk/issues/1533

nqhhdev commented 1 year ago

Any update?

adar2378 commented 9 months ago

Any update on this?

Avejack commented 8 months ago

I have this same problem and it makes my whole App unusable... Any news on that? Do i have to migrate away from Hive?

Binozo commented 4 months ago

Having the same problem, seems to only occur on iOS in my case 🤔

neoacevedo commented 3 months ago

Uhm... seems hive won't give anymore support for web?