2022-02-26 00:24:09.641 32217-32217/com.example.kampusegel1 E/SQLiteAssetHelper: Couldn't open EatItDB.db for writing (will try read-only):
com.readystatesoftware.sqliteasset.SQLiteAssetHelper$SQLiteAssetException: Missing databases/EatItDB.db file (or .zip, .gz archive) in assets, or target folder not writable
at android.content.res.AssetManager.nativeOpenAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:875)
at android.content.res.AssetManager.open(AssetManager.java:852)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.copyDatabaseFromAssets(SQLiteAssetHelper.java:436)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.createOrOpenDatabase(SQLiteAssetHelper.java:400)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.getWritableDatabase(SQLiteAssetHelper.java:176)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.getReadableDatabase(SQLiteAssetHelper.java:254)
at com.example.kampusegel1.Database.Database.addToCart(Database.java:55)
at com.example.kampusegel1.FoodDetail$1.onClick(FoodDetail.java:58)
at android.view.View.performClick(View.java:7870)
at android.widget.TextView.performClick(TextView.java:14970)
at android.view.View.performClickInternal(View.java:7839)
at android.view.View.access$3600(View.java:886)
at android.view.View$PerformClick.run(View.java:29363)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7860)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 W/SQLiteLog: (28) failed to open "/data/user/0/com.example.kampusegel1/databases/EatItDB.db" with flag (131072) and mode_t (0) due to error (2)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (14) cannot open file at line 37805 of [68b898381a]
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (14) os_unix.c:37805: (2) open(/data/user/0/com.example.kampusegel1/databases/EatItDB.db) -
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Process ple.kampusegel1 : Pid (32217) Uid (10420) Euid (10420) Gid (10420) Egid (10420)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) osStat failed "/data/user/0/com.example.kampusegel1/databases/EatItDB.db" due to error (2)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Stat of /data/user/0/com.example.kampusegel1/databases : st_mode(40771) st_uid(10420) st_gid(10420) st_ino(3678242)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Stat of /data/user/0/com.example.kampusegel1 : st_mode(40700) st_uid(10420) st_gid(10420) st_ino(3678239)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Stat of /data/user/0 : st_mode(40771) st_uid(1000) st_gid(1000) st_ino(3473409)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Stat of /data/user : st_mode(40711) st_uid(1000) st_gid(1000) st_ino(2555905)
2022-02-26 00:24:09.644 32217-32217/com.example.kampusegel1 E/SQLiteLog: (1) Stat of /data : st_mode(40771) st_uid(1000) st_gid(1000) st_ino(2)
2022-02-26 00:24:09.646 32217-32217/com.example.kampusegel1 E/SQLiteDatabase: Failed to open database '/data/user/0/com.example.kampusegel1/databases/EatItDB.db'.
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294 SQLITE_CANTOPEN_ENOENT[1294]): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:300)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:737)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:284)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:251)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1386)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1331)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:994)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:940)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.getReadableDatabase(SQLiteAssetHelper.java:264)
at com.example.kampusegel1.Database.Database.addToCart(Database.java:55)
at com.example.kampusegel1.FoodDetail$1.onClick(FoodDetail.java:58)
at android.view.View.performClick(View.java:7870)
at android.widget.TextView.performClick(TextView.java:14970)
at android.view.View.performClickInternal(View.java:7839)
at android.view.View.access$3600(View.java:886)
at android.view.View$PerformClick.run(View.java:29363)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7860)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2022-02-26 00:24:09.646 32217-32217/com.example.kampusegel1 D/AndroidRuntime: Shutting down VM
2022-02-26 00:24:09.647 32217-32217/com.example.kampusegel1 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.kampusegel1, PID: 32217
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294 SQLITE_CANTOPEN_ENOENT[1294]): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:300)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:737)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:284)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:251)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1386)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1331)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:994)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:940)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.getReadableDatabase(SQLiteAssetHelper.java:264)
at com.example.kampusegel1.Database.Database.addToCart(Database.java:55)
at com.example.kampusegel1.FoodDetail$1.onClick(FoodDetail.java:58)
at android.view.View.performClick(View.java:7870)
at android.widget.TextView.performClick(TextView.java:14970)
at android.view.View.performClickInternal(View.java:7839)
at android.view.View.access$3600(View.java:886)
at android.view.View$PerformClick.run(View.java:29363)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7860)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
This is how the app crashes when I click the button.
I created the assets/databases folder.
I also deleted the cache files, but my problem is still not resolved.
Can you help me?
Is there an updated version?
Uninstalled and re-run, if passed, it must be no update, the version of the data
From China, English is not good
Related
My app is simple, I want to load the existing '/storage/emulated/0/Download/my_database' as readonly in the android app.
But when I tried using
SQLiteDatabase.openDatabase("/storage/emulated/0/Download/my_database", null, SQLiteDatabase.OPEN_READONLY);
It fails with following error
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.sagar.towerlocator, PID: 7660
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sagar.towerlocator/com.sagar.towerlocator.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/storage/emulated/0/Download/my_database': File /storage/self/primary/Download/db_verizon is not readable
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/storage/emulated/0/Download/my_database': File /storage/emulated/0/Download/my_database is not readable
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:252)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:205)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:918)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:898)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:789)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:736)
at com.sagar.towerlocator.MainActivity.loadDatabase(MainActivity.java:58)
at com.sagar.towerlocator.MainActivity.onCreate(MainActivity.java:53)
at android.app.Activity.performCreate(Activity.java:8000)
at android.app.Activity.performCreate(Activity.java:7984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:224)
Note: Everything seems working if I store database under '/data/data/<package>/databases/' directory, but my requirement is to work from any other location
Please advice me.
There can be many reasons why you are getting SQLiteCantOpenDatabaseException.
I believe you can check if the file is corrupted or not, by starting adb shell and then by running:
sqlite3 <your-db-name>.db
Also, since you are reading from external storage, have you declared read permission for external storage in Android Manifest.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Ref: READ_EXTERNAL_STORAGE
I have Html stored in sqllite db class, I need to update text of that html. When I make that change and run my application , I get the following exception. Not sure why the file is not getting created
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-04-06 07:09:41.540 2082-3288/system_process E/SQLiteDatabase: DB wipe detected: package=com.exceed reason=corruption file=/storage/emulated/0/Android/data/com.exceed/files/DataModel3.sqlite ctime=2020-04-06T03:09:41Z mtime=2020-04-06T03:09:41Z atime=2020-04-06T03:09:41Z checkfile [unable to obtain timestamp]
2020-04-06 07:09:41.540 2082-3288/system_process E/SQLiteDatabase: at java.lang.Throwable: STACKTRACE
at android.database.sqlite.SQLiteDatabase.wipeDetected(SQLiteDatabase.java:2741)
at android.database.DefaultDatabaseErrorHandler.onCorruption(DefaultDatabaseErrorHandler.java:55)
at android.database.sqlite.SQLiteDatabase.onCorruption(SQLiteDatabase.java:399)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:899)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:786)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:733)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.returnDatabase(SQLiteAssetHelper.java:408)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.createOrOpenDatabase(SQLiteAssetHelper.java:401)
at com.readystatesoftware.sqliteasset.SQLiteAssetHelper.getWritableDatabase(SQLiteAssetHelper.java:176)
at com.exceed.uae.new_build.database.OpenHelper.<init>(OpenHelper.java:23)
at com.exceed.uae.new_build.database.OpenHelper.getDatabase(OpenHelper.java:28)
at com.exceed.uae.new_build.FcaApplication.onCreate(FcaApplication.java:92)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-04-06 07:09:41.540 2082-3288/system_process E/SQLiteDatabase: DB wipe detected: package=com.exceed reason=corruption file=/storage/emulated/0/Android/data/com.exceed/files/DataModel3.sqlite ctime=2020-04-06T03:09:41Z mtime=2020-04-06T03:09:41Z atime=2020-04-06T03:09:41Z checkfile [unable to obtain timestamp]
2020-04-06 07:09:41.541 18613-18613/com.exceed E/DefaultDatabaseErrorHandler: deleting the database file: /storage/emulated/0/Android/data/com.exceed/files/DataModel3.sqlite
2020-04-06 07:09:41.542 18613-18613/com.exceed E/SQLiteLog: (14) cannot open file at line 36683 of [c255889bd9]
2020-04-06 07:09:41.542 18613-18613/com.exceed E/SQLiteLog: (14) os_unix.c:36683: (2) open(/storage/emulated/0/Android/data/com.exceed/files/DataModel3.sqlite) -
2020-04-06 07:09:41.544 18613-18613/com.exceed E/SQLiteDatabase: Failed to open database '/storage/emulated/0/Android/data/com.exceed./files/DataModel3.sqlite'.
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:197)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:915)
at android.database
In order to make any changes to sqllite file in ios or android, we cant just directly change the sqllite file, it will give error. We need to download sqllite for db and then we can change the data by firing sql query.
Although This question has been asked many time but they all are discussing about Sqlite Database. But in my Application I am using Content Provider for database. and I am using this for chat window.Using aSmack Lib.
Below is exception I am getting.
Fatal Exception: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(SQLiteConnection.java)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:1188)
at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:267)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
at com.adgyde.android.j.<init>(Unknown Source)
at com.adgyde.android.h.f(Unknown Source)
at com.adgyde.android.h.a(Unknown Source)
at com.adgyde.android.o.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5318)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:922)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:717)
Note:
I am getting this on fewer devices Like Vivo,Intex etc. But not on other devices Like Moto G,Samsung Note etc.
Some body has suggested about Write Storage permssion,Which I have declared in manifest. Other has suggested to ask at run time.
Please help me in right direction.
i know there exists many posts regarding this issue but the issue i am facing goes like this..
The app works perfectly when run on 4.0,5.0,5.1,6 ets
"SQLiteCantOpenDatabaseException: unknown error (code 14): Could not
open database"
if its run i 4.0.1,5.0.2 or 6.0.1 or to be in general X.0.X but works fine in X.1.X
can any one help me out with this issue
My crash logs proof:
USER_COMMENT=null
ANDROID_VERSION=6.0.1
APP_VERSION_NAME=0.0337
BRAND=google
PHONE_MODEL=Nexus 5
CUSTOM_DATA=
STACK_TRACE=java.lang.RuntimeException: Unable to start receiver com.evernews.evernews.AlarmReceiver: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2732)
at android.app.ActivityThread.-wrap14(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:207)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:191)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
at com.evernews.evernews.AlarmReceiver.onReceive(AlarmReceiver.java:48)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2725)
... 8 more
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:207)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:191)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
at com.evernews.evernews.AlarmReceiver.onReceive(AlarmReceiver.java:48)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2725)
at android.app.ActivityThread.-wrap14(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
One more version :
USER_COMMENT=null
ANDROID_VERSION=5.0.2
APP_VERSION_NAME=0.0337
BRAND=htc
PHONE_MODEL=HTC Desire 816 dual sim
CUSTOM_DATA=
STACK_TRACE=android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:235)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:219)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:854)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:834)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:737)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:712)
at com.evernews.evernews.Main.parseResultsRefresh(Main.java:1194)
at com.evernews.evernews.Main$GetNewsTaskRestart.onPostExecute(Main.java:827)
at com.evernews.evernews.Main$GetNewsTaskRestart.onPostExecute(Main.java:778)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
I working on a project that listing an order from citizen include text and images.
I have encountered an awesome problem that Qgraphicsscene->addPixmap, sometimes works and sometimes it does not. I cannot detect what problem is.
QGraphicsPixmapItem* pItem;
pItem = scene->addPixmap(QPixmap::fromImage(img));
img is loaded properly and tested if it did not loaded.
When I Run Application Qt Creator output Below:
Starting remote process.E/Zygote (23262): MountEmulatedStorage()
E/Zygote (23262): v2
I/SELinux (23262): Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-A500F_4.4.4 ver=46
I/SELinux (23262): Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-A500F_5.0.2-1_0039
E/SELinux (23262): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
I/libpersona(23262): KNOX_SDCARD checking this for 10276
I/libpersona(23262): KNOX_SDCARD not a persona
I/ActivityManager( 1004): Start proc org.qtproject.serikbelediyesi for activity org.qtproject.serikbelediyesi/org.qtproject.qt5.android.bindings.QtActivity: pid=23262 uid=10276 gids={50276, 9997, 3003, 1028, 1015} abi=armeabi-v7a
D/TimaKeyStoreProvider(23262): TimaSignature is unavailable
D/ActivityThread(23262): Added TimaKeyStore provider
E/Qt (23262): Can't create main activity
E/Qt (23262): java.io.FileNotFoundException: /data/data/org.qtproject.serikbelediyesi/lib/libplugins_platforms_libqoffscreen.so: open failed: ENOENT (No such file or directory)
E/Qt (23262): at libcore.io.IoBridge.open(IoBridge.java:456)
E/Qt (23262): at java.io.FileInputStream.<init>(FileInputStream.java:76)
E/Qt (23262): at java.io.FileInputStream.<init>(FileInputStream.java:103)
E/Qt (23262): at org.qtproject.qt5.android.bindings.QtActivity.createBundledBinary(QtActivity.java:416)
E/Qt (23262): at org.qtproject.qt5.android.bindings.QtActivity.extractBundledPluginsAndImports(QtActivity.java:489)
E/Qt (23262): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:582)
E/Qt (23262): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
E/Qt (23262): at android.app.Activity.performCreate(Activity.java:6374)
E/Qt (23262): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
E/Qt (23262): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2752)
E/Qt (23262): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2873)
E/Qt (23262): at android.app.ActivityThread.access$900(ActivityThread.java:181)
E/Qt (23262): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)
E/Qt (23262): at android.os.Handler.dispatchMessage(Handler.java:102)
E/Qt (23262): at android.os.Looper.loop(Looper.java:145)
E/Qt (23262): at android.app.ActivityThread.main(ActivityThread.java:6145)
E/Qt (23262): at java.lang.reflect.Method.invoke(Native Method)
E/Qt (23262): at java.lang.reflect.Method.invoke(Method.java:372)
E/Qt (23262): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
E/Qt (23262): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
E/Qt (23262): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/Qt (23262): at libcore.io.Posix.open(Native Method)
E/Qt (23262): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
E/Qt (23262): at libcore.io.IoBridge.open(IoBridge.java:442)
E/Qt (23262): ... 19 more
D/PhoneWindow(23262): *FMB* installDecor mIsFloating : false
yes OK, Updrage your Qt Library to Qt 5.6 Release Candidate
I haven't found any solution yet. but i upgraded to Qt 5.6 Release Candidate, Any Problem Seeing. many times change my code and add some example code to my project, there is not any problem. libplugins_platforms_libqoffscreen.so
always creating and loding properly and QLabel or any QWidget show my pixmap.