hive icon indicating copy to clipboard operation
hive copied to clipboard

Safari Failed to execute 'transaction'

Open woutervanwijk opened this issue 2 years ago • 11 comments

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

  • Platform: Web, Safari
  • Flutter version: 2.5.3
  • Hive version: hive: ^2.0.4 and hive_flutter: ^1.1.0

woutervanwijk avatar Dec 01 '21 12:12 woutervanwijk

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(?)

GP4cK avatar Aug 12 '22 09:08 GP4cK

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

puspharaj-teachspot avatar Jun 04 '23 02:06 puspharaj-teachspot

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.

thuanlegit avatar Jun 26 '23 02:06 thuanlegit

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)

bueltan avatar Jul 15 '23 12:07 bueltan

Experiencing the same problem here

AliEasy avatar Aug 12 '23 05:08 AliEasy

Any reaction or updates? Experiencing the same problem

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

abigotado avatar Aug 24 '23 17:08 abigotado

Any update?

nqhhdev avatar Sep 12 '23 15:09 nqhhdev

Any update on this?

adar2378 avatar Dec 15 '23 17:12 adar2378

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

Avejack avatar Feb 02 '24 08:02 Avejack

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

Binozo avatar Jun 02 '24 21:06 Binozo

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

neoacevedo avatar Jun 25 '24 03:06 neoacevedo