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

BrowserFS.InMemory is undefined error in Firefox #129

Open
christislord12 opened this issue Oct 26, 2023 · 6 comments
Open

BrowserFS.InMemory is undefined error in Firefox #129

christislord12 opened this issue Oct 26, 2023 · 6 comments

Comments

@christislord12
Copy link

On first load of a pygbag project in Firefox it gives a BrowserFS.InMemory error. After reloading the page twice, the error does not happen and the project loads. This error does not occur in Safari or Opera.

Screenshot 2023-10-26 at 3 30 07 PM
@Memopentagone
Copy link

yeah can confirm it is happening on Firefox but also appears to be happening on ios with safari

@pmp-p
Copy link
Member

pmp-p commented Dec 13, 2023

[long term decision] is to drop BrowserFS and use Panda3D vfs instead. There's no drop-in replacement for it i can see right now ( zipfs+overlayfs ) so not worth the work.

If anyone find something close please drop a note. Basically BrowserFS is a Node FS emulator ( with added complexity) like the one emscripten provides

@pmp-p
Copy link
Member

pmp-p commented Mar 8, 2024

They are moving to https://github.com/browser-fs
and now i don't even know how to load emscripten fs now ( it there's still any)

Javascript bundlers world seems as simple as python packaging so help very welcome here.

zen-fs/core#22 (comment)

@james-pre
Copy link

james-pre commented May 5, 2024

Hi @pmp-p and @christislord12, I'm the maintainer of BrowserFS. BrowserFS has been deprecated. Please see the notice in the readme at https://github.com/jvilk/browserfs for more info.

Would you be interested in updating your project to use the updated fork, ZenFS?

Support for Emscripten is pending on DefinitelyTyped#69218.

@pmp-p
Copy link
Member

pmp-p commented May 6, 2024

Would you be interested in updating your project to use the updated fork, ZenFS?

I would be very interested if support for overlayfs emscripten/WASM-OPFS is coming. If not i cannot justify time to make the switch :(

currently pygbag only use : zipfs + overlayed memfs

the next move would be to get user file persistence > 5 MiB for distributed applications otherwise localStorage still does the job.

@james-pre
Copy link

@pmp-p,

OPFS is already available with the WebAccess backend, provided as part of @zenfs/dom. As I mentioned before, I'm waiting for the PR to merge before releasing the Emscripten backend. I expect it to be released one to two weeks after the PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants