We have this error in one of our computer. The database seems corrupted and it won't open anymore.
Remote error: Invalid argument(s): length cannot be negative
The minified stack symbolicated against a source-map:
package:sqlite3_web/src/channel.dart 202:7 ProtocolChannel.sendRequest
dart-sdk/_internal/js_runtime/async_patch.dart 339:19 _wrapJsFunctionForAsync
dart-sdk/_internal/js_runtime/async_patch.dart 365:23 _wrapJsFunctionForAsync.<fn>
dart-sdk/_internal/js_runtime/async_patch.dart 313:7 _awaitOnObject.<fn>
dart-sdk/async/zone.dart 962:46 _RootZone.runUnary
dart-sdk/async/future_impl.dart 186:29 _FutureListener.handleValue
dart-sdk/async/future_impl.dart 977:13 _Future._propagateToListeners
dart-sdk/async/future_impl.dart 711:7 _Future._complete
dart-sdk/async/future_impl.dart 113:5 _SyncCompleter.complete
package:sqlite3_web/src/channel.dart 131:20 ProtocolChannel._handleIncoming.<fn>
package:sqlite3_web/src/protocol/helper.g.dart 810:14 dispatchMessage
package:sqlite3_web/src/channel.dart 128:5 ProtocolChannel._handleIncoming
package:sqlite3_web/src/channel.dart 98:11 ProtocolChannel.<fn>
package:web/src/helpers/events/streams.dart 165:45 _EventStreamSubscription.<fn>
dart-sdk/_internal/js_runtime/js_allow_interop_patch.dart 367:27 _callDartFunctionFast1
Versions: sqlite3_web 0.8.1, sqlite3 3.3.2, powersync 2.2.0. Observed on Safari only so far.
If this is useful for you, we can try to extract the IndexedDB bytes from the browser to understand the corruption.
We have this error in one of our computer. The database seems corrupted and it won't open anymore.
Remote error: Invalid argument(s): length cannot be negativeThe minified stack symbolicated against a source-map:
Versions: sqlite3_web 0.8.1, sqlite3 3.3.2, powersync 2.2.0. Observed on Safari only so far.
If this is useful for you, we can try to extract the IndexedDB bytes from the browser to understand the corruption.