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

out of memory since 1.9.0 #509

Closed
k4ploc opened this issue Jan 24, 2024 · 8 comments
Closed

out of memory since 1.9.0 #509

k4ploc opened this issue Jan 24, 2024 · 8 comments

Comments

@k4ploc
Copy link

k4ploc commented Jan 24, 2024

I have tracked the issue in the sql.js repository because since version 1.9.0 I have had this problem, they just recently closed it but I continue with the problem.

sql-js/sql.js#561 (comment)

Latest version :
sql-js/sql.js#561 (comment)

@jepiqueau in the last commit I saw that you did a rollback to version 1.8.0 there is no way to use the last one?

@jepiqueau
Copy link
Collaborator

@JuanLongines you said they fix the issue but you continue to have the issue so for the time being i stick to the 1.8.0 release. If you can share on github your app where you have still the issue using 1.9.0 i may have a look

@k4ploc
Copy link
Author

k4ploc commented Jan 24, 2024

@JuanLongines you said they fix the issue but you continue to have the issue so for the time being i stick to the 1.8.0 release. If you can share on github your app where you have still the issue using 1.9.0 i may have a look

I'm using the repository example, no additional code just updating sql.js version 1.10.2
https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-angular-sqlite-app

@jepiqueau
Copy link
Collaborator

@JuanLongines Did it works with sql.js version 1.10.2

@jepiqueau
Copy link
Collaborator

@JuanLongines Fixed in release 5.5.2

@folsze
Copy link
Contributor

folsze commented Jan 25, 2024

Is it possible that this did not fix it?

I am still experiencing this error, even after updating to 5.5.2

I will update here if I was wrong, but if this happens to you too then maybe like this message.

@k4ploc
Copy link
Author

k4ploc commented Jan 25, 2024

@jepiqueau thank you !!, I have updated to the latest versions and its working now.
@folsze did you copy the wasm file to the assets folder?

image

And no errors:

image

@folsze
Copy link
Contributor

folsze commented Jan 25, 2024

I was missing this step! Thanks a lot, especially for mentioning this again, that I have to copy the sql-wasm.wasm file.

Here is how to find the wasm file, if anyone forgot too:
https://github.com/sql-js/sql.js/blob/master/README.md#usage

@jepiqueau
Copy link
Collaborator

@folsze you always have to copy the wasm file especially when the version of sql.js change that why it is better to have it in your scripts the build script should be amended to make the copy prior to build see example on my tutorial site

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

3 participants