Skip to content
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

IndexedDB regression in WebWorkers #231

Open
billiegoose opened this issue Apr 30, 2018 · 5 comments
Open

IndexedDB regression in WebWorkers #231

billiegoose opened this issue Apr 30, 2018 · 5 comments
Labels

Comments

@billiegoose
Copy link
Contributor

It may take me a while to get to the bottom of this; I've got a WebWorker that works fine with version 1.4.3:

importScripts('https://unpkg.com/browserfs@1.4.3/dist/browserfs.js')
BrowserFS.configure({
  fs: "IndexedDB",
  options: { }
}, (err) => ......

but silently fails to write files or create directories in version 2.0.0:

importScripts('https://unpkg.com/browserfs@2.0.0/dist/browserfs.js')
BrowserFS.configure({
  fs: "IndexedDB",
  options: { }
}, (err) => ......
@jvilk
Copy link
Owner

jvilk commented May 1, 2018

Oh, that's odd! I'll take a look when I have some free cycles.

btw, is the 2.0 code using a fresh database, or a version created with 1.4.3? (either design should work)

@jvilk jvilk added the bug label May 1, 2018
@billiegoose
Copy link
Contributor Author

@isysd It was probably this one: https://github.com/wmhilton/wills-wonderful-service-worker

@billiegoose
Copy link
Contributor Author

Actually that's not the exact one ,but that's close enough.

@jcubic
Copy link

jcubic commented May 3, 2020

Not sure if this is the same, but I got error

Error: ENOENT: No such file or directory., '/'
Error
    at new ApiError (https://cdn.jsdelivr.net/npm/browserfs@2.x.x/dist/browserfs.js:5430:22)
    at Function.FileError (https://cdn.jsdelivr.net/npm/browserfs@2.x.x/dist/browserfs.js:5455:16)
    at Function.ENOENT (https://cdn.jsdelivr.net/npm/browserfs@2.x.x/dist/browserfs.js:5458:21)
    at https://cdn.jsdelivr.net/npm/browserfs@2.x.x/dist/browserfs.js:13987:37
    at IDBRequest. (https://cdn.jsdelivr.net/npm/browserfs@2.x.x/dist/browserfs.js:14270:17)

When calling fs.readdir('/') inside service worker, outside everything works fine, I Have recursive function that list all the files with meta data, it work without problems in normal code.

It's been 2 years since this bug was created same as last commit, is this project maintained?

@dr-vortex
Copy link
Collaborator

Closing (stale). If you would like to reopen this issue, please do so by creating a new issue in the relevant repositories of @browser-fs

@dr-vortex dr-vortex closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
Repository owner locked and limited conversation to collaborators Oct 25, 2023
@dr-vortex dr-vortex reopened this May 17, 2024
Repository owner unlocked this conversation May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@jcubic @billiegoose @jvilk @dr-vortex and others