-
Notifications
You must be signed in to change notification settings - Fork 110
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
"Disk I/O error" on .Net 9 Blazor WebAssembly App and IDBFS #613
Comments
I need LOTS more info. A sample that reproduces the problem. Etc. |
I can't upload files from my work computer, but I can copy the code as text and describe the small modifications to a standard Blazor app template. Is that enough for you? I'll put it in step by step, it's not much. |
I don't know, but it's moving in the right direction. |
If you then run this, you will get the "disk i/o error" when executing the "create table" sql. |
I suggest changing from sqlite-net-sqlcipher to sqlite-net base, and then add a call to SQLitePCL.Batteries.Init(). Also, if you have the bundle_e_sqlcipher package, you don't need to have entries for the other three SQLitePCLRaw packages. Did the same (or equivalent) test work under .NET 8? Do you get the same results with this test if you change from SQLCipher to regular SQLite? |
In .Net 8 this code runs without any problems (with a few adjustments in the Javascript). I have now changed my project file as follows:
Then I added "SQLitePCL.Batteries.Init();" before creating the connection. The basic version works, the cypher version generates the following exception: SQLite.SQLiteException: disk I/O error Of course we want to continue using the cypher version. |
OK, so this appears to be a problem with the build of e_sqlcipher for wasm. The e_sqlcipher builds are unsupported, but I'll take a look at the build configuration and see if I see an easy or obvious problem. |
Thank you. |
Any news about the problem? |
Nothing significant yet. I verified that my build system is doing a net9 build for e_sqlcipher, which I wasn't sure about, but I haven't found time to dig deeper. |
After updating to .Net 9 we get "Disk I/O error". A read and write test with a simple text file in IDBFS was successful in .Net 9. See this thread:
#472 (comment)
The text was updated successfully, but these errors were encountered: