-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No modification allowed Error #3063
Comments
No idea on what could have caused this yet. Docs say that If opening the same database two times at the same time is indeed the problem here, deleting databases won't fix this. One way to delete all files for a website is to go to (async () => {
let opfsRoot = await navigator.storage.getDirectory();
let deleted = 0;
for await (const [key, value] of opfsRoot.entries()) {
await opfsRoot.removeEntry(key, { recursive: true });
deleted++;
}
console.log(`Done, deleted ${deleted} entries!`);
})() |
Thanks for the quick answer! If i run the script in Firefox i receive: When i run in in another Browser it deletes the db as expected and after a reload the db is recreated and works as expected. Firefox runs with WasmStorageImplementation.opfsShared and my other Browsers with WasmStorageImplementation.opfsLocks. On another machine the App works fine in Firefox. |
If the With |
I managed to delete the db with the script before the app opens the db. After a reload i noticed, that the app now runs with WasmStorageImplementation.sharedIndexedDb and i receive:
error. Im stuck in this state until i delte the indexed db via dev tools and reload. After reload im in WasmStorageImplementation.opfsShared mode again and everything works as expected! The app now works fine from the affected browser. unfortunately I don't know how to reproduce the initial problem. When I had the initial problem, neither reloading nor restarting the browser helped. If i have an open tab with the app the abount:debugging#workers shows this: If i close the tab the three entries disappear. |
In my Flutter Web export, I somehow ended up in a state that no longer allows me to access the database. Unfortunately I don't know how to reproduce this.
I get the following error message:
**NoModificationAllowedError: No modification allowed** main.dart.js:63922:17 ===== asynchronous gap =========================== main.dart.js:63922:17 main.dart.js 16597:38 StackTrace_current main.dart.js:63922:17 main.dart.js 111079:131 request$1$2$requestId main.dart.js:63922:17 main.dart.js 111084:19 request$1$1 main.dart.js:63922:17 main.dart.js 111002:102 ensureOpen$body$_RemoteQueryExecutor.<fn> main.dart.js:63922:17 main.dart.js 13632:17 _wrapJsFunctionForAsync.<fn> main.dart.js:63922:17 main.dart.js 94958:12 call$2 main.dart.js:63922:17 main.dart.js 13596:20 _asyncStartSync main.dart.js:63922:17 main.dart.js 111011:16 ensureOpen$body$_RemoteQueryExecutor main.dart.js:63922:17 main.dart.js 110986:19 ensureOpen$1 main.dart.js:63922:17 main.dart.js 114516:17 call$1 main.dart.js:63922:17 main.dart.js 14212:18 _rootRunUnary main.dart.js:63922:17 main.dart.js 247136:16 <fn> main.dart.js:63922:17 main.dart.js 97440:39 runUnary$2$2 main.dart.js:63922:17 main.dart.js 95952:51 call$0 main.dart.js:63922:17 main.dart.js 13949:93 _Future__propagateToListeners main.dart.js:63922:17 main.dart.js 95816:9 _completeWithValue$1 main.dart.js:63922:17 main.dart.js 95894:18 call$0 main.dart.js:63922:17 main.dart.js 14202:16 _rootRun main.dart.js:63922:17 main.dart.js 247132:16 <fn> main.dart.js:63922:17 main.dart.js 97435:39 run$1$1 main.dart.js:63922:17 main.dart.js 97371:14 runGuarded$1 main.dart.js:63922:17 main.dart.js 97565:25 call$0 main.dart.js:63922:17 main.dart.js 14010:24 _microtaskLoop main.dart.js:63922:17 main.dart.js 14016:11 _startMicrotaskLoop main.dart.js:63922:17 main.dart.js 94837:9 call$1 main.dart.js:63922:17 main.dart.js 13559:9 MutationCallback*_AsyncRun__initializeScheduleImmediate main.dart.js:63922:17 main.dart.js 256829:110 <fn> main.dart.js:63922:17 main.dart.js 116:21 lazyFinal.<fn> main.dart.js:63922:17 main.dart.js 14030:13 _scheduleAsyncCallback main.dart.js:63922:17 main.dart.js 14255:9 _rootScheduleMicrotask main.dart.js:63922:17 main.dart.js 97734:9 scheduleMicrotask$1 main.dart.js:63922:17 main.dart.js 95832:18 _asyncCompleteWithValue$1 main.dart.js:63922:17 main.dart.js 95828:12 _asyncComplete$1 main.dart.js:63922:17 main.dart.js 94923:23 complete$1 main.dart.js:63922:17 main.dart.js 13604:17 _asyncReturn main.dart.js:63922:17 main.dart.js 20137:24 bootstrapEngine.<fn> main.dart.js:63922:17 main.dart.js 13632:17 _wrapJsFunctionForAsync.<fn> main.dart.js:63922:17 main.dart.js 94958:12 call$2 main.dart.js:63922:17 main.dart.js 13596:20 _asyncStartSync main.dart.js:63922:17 main.dart.js 20140:16 bootstrapEngine main.dart.js:63922:17 main.dart.js 63900:38 main.<fn> main.dart.js:63922:17 main.dart.js 13632:17 _wrapJsFunctionForAsync.<fn> main.dart.js:63922:17 main.dart.js 94958:12 call$2 main.dart.js:63922:17 main.dart.js 13596:20 _asyncStartSync main.dart.js:63922:17 main.dart.js 63907:16 main main.dart.js:63922:17 main.dart.js 257504:15 <fn> main.dart.js:63922:17 main.dart.js 257485:15 <fn> main.dart.js:63922:17 main.dart.js 257498:5 dartProgram main.dart.js:63922:17 main.dart.js 257507:3 <fn> main.dart.js:63922:17 <empty string> 2 main.dart.js:63922:17
This error is currently occurring in Firefox and I see that WasmStorageImplementation.opfsShared is being used. Does anyone have any idea what this could be and how I can at least delete the database from Firefox so that it is recreated? Other browsers work fine.
The text was updated successfully, but these errors were encountered: