-
Notifications
You must be signed in to change notification settings - Fork 29
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
BUG : Fatal Exception: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14): Could not open database, (OS error - 2:No such file or directory) #479
Comments
Hey @jiebo, Thanks for raising this issue. I investigated this issue, and it appears to be caused by the storage permission not being granted. The problem occurs right when the Rudder Android SDK initialization starts. For now, could you please try the following steps:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Additionally, I would like to clarify a few points:
|
Hey @jiebo, Could you please provide the information requested above? |
Hi @1abhishekpandey, sorry for the delayed response. We updated the Adapty SDK version to 1.25.0 but the issue is still persisting. Also, we already have the For the next few points you requested:
For what it's worth, since the call site is within Rudderstack's code, is it possible to simply try-catch the exception? |
Hey @jiebo, We were also considering catching this exception, as you mentioned, since we haven't been able to reproduce the crash on any simulator devices. We will plan to work on this fix soon. Meanwhile can you please help us with one more info:
|
Hello, I don't think it's possible to know the percentage of events affected by this crash since we don't know how many events we will get actually get without the crash. That being said, I don't suppose it to be a huge number. |
Hey @jiebo, |
Hi @1abhishekpandey, sorry for the late response. Yes, we've updated to the new version and we can confirm that the issue is resolved, please close this issue as needed. Thanks for the quick turnaround! |
Describe the bug
From our Firebase Crashlytics, we are seeing an issue that seems to be caused by
DefaultPersistence.getWritableDatabase
. Please check the stack trace below.Stack Trace
Over the past 7 days, we've recorded 43k crashes for 447 users. Here are the device details
Version of the Android SDK
We're using 1.22.0 of the Rudderstack Android SDK.
Mobile device mode integration
SDK initialisation snippet
Check for Correct Usage of writeKey and dataPlaneUrl
Events are flowing as expected
The text was updated successfully, but these errors were encountered: