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

Aborted in WebContainer #2

Open
d3lm opened this issue Feb 23, 2024 · 5 comments
Open

Aborted in WebContainer #2

d3lm opened this issue Feb 23, 2024 · 5 comments

Comments

@d3lm
Copy link
Contributor

d3lm commented Feb 23, 2024

I am trying to run this in WebContainer and now that #1 was merged and released I am seeing the following error:

RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
    at abort (file:///home/projects/node-oqtitn/node_modules/@electric-sql/pglite/dist/chunk-RM7SEAOI.js:412:15)
    at _abort (file:///home/projects/node-oqtitn/node_modules/@electric-sql/pglite/dist/chunk-RM7SEAOI.js:5626:7)
    at wasm://wasm/02d347d2:wasm-function[123]:0x77e6
    at wasm://wasm/02d347d2:wasm-function[6809]:0x6ac11a
    at wasm://wasm/02d347d2:wasm-function[4366]:0x437a87
    at wasm://wasm/02d347d2:wasm-function[14076]:0x9a2381
    at wasm://wasm/02d347d2:wasm-function[15480]:0x9de758

But only if there's a db folder. If you remove the folder then it works fine.

Any idea? I think it'd be nice to have a debug build as well where -sASSERTIONS is enabled. This could maybe be published under a specific debug tag?

@samwillis
Copy link
Collaborator

Hey @d3lm,

I've published a debug build with -s ASSERTIONS=1 although I'm unsure is it's giving us any more detailed errors.
https://www.npmjs.com/package/@electric-sql/pglite/v/0.0.1-debug.2

There is also the ASSERTIONS=2 and SAFE_HEAP=1 options we can try.

@d3lm
Copy link
Contributor Author

d3lm commented Mar 1, 2024

Thanks!

That's strange, cause it's still not giving more info and prints the same error 🤔

@vBuravlev
Copy link

Confirm. I couldn't run PG lite in any of the options. This repository is 100% erroneous code.

@Yaromey
Copy link

Yaromey commented Mar 24, 2024

Confirm. I couldn't run PG lite in any of the options. This repository is 100% erroneous code.

Same here. On Windows machine. Do you also use Windows?

@samwillis
Copy link
Collaborator

Same here. On Windows machine. Do you also use Windows?

Hey @Yaromey, there's a bug on Windows #34, should be fixed this week!

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