-
Notifications
You must be signed in to change notification settings - Fork 114
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
Android 16KB: Crash on ISQLite3Provider.sqlite3_open_v2 #621
Comments
@phillippschmedt can you create a github repo with a small project that reproduces this issue? That would help the investigation |
I've seen this Android 16KB problem before, and I thought I had fixed it, but perhaps I'm mis-remembering, or perhaps I fixed it and never shipped a release with it, or something. I'm in the middle of something else right now, but I'll figure out what happened as soon as I can. |
Thank you! You shipped a fix with this release https://github.com/ericsink/SQLitePCL.raw/releases/tag/v2.1.10 and it solved the general warnings with wrong alignment for 16kb page sizes but the problem described here will remain with 2.1.10 and only when 16kb is enabled. |
Hi, |
Hi. You use an 16kb emulator or enable it on an device that supports 16kb page sizes: https://developer.android.com/guide/practices/page-sizes#16kb-emulator |
So this problem still needs to be figured out, right? Unless I'm missing something, we don't yet know what the right fix is. |
Hi Eric! Yes the problem exists. Thanks for trying to help! I don't know if it helps you but initially I came across the problem when working with https://github.com/praeclarum/sqlite-net and sqlite-net-sqlcipher. Unfortunately that library seems to be not really maintaned anymore. So I tried to dig through it and figure out where the problem is and ended up here. |
We are using .NET 9 MAUI with the following packages:
I am using SQLitePCL.Batteries_V2.Init() and then a call to ISQLite3Provider.sqlite3_open_v2 will crash on an Android Device (Pixel 8a, Pixel 8, Android 15) with page size set to 16kb. Crashes won't happen if 16kb is not enabled.
The text was updated successfully, but these errors were encountered: