I'm trying to execute my android application using phonegap but I'm having the following error when I execute a plugin that i created:
15:33:12.912: E/SQLiteLog(2249): (14) cannot open file at line
30174 of [00bb9c9ce4] 10-31 15:33:12.912: E/SQLiteLog(2249): (14)
os_unix.c:30174: (2) open(/CachedGeoposition.db) - 10-31
15:33:12.912: D/WebKit(2249): ERROR: 10-31 15:33:12.921:
D/WebKit(2249): SQLite database failed to load from
/CachedGeoposition.db 10-31 15:33:12.921: D/WebKit(2249): Cause -
unable to open database file 10-31 15:33:12.921: D/WebKit(2249):
external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) :
bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
By the way, I'm not using a sqlite database
Related
I am trying to compile the android app and getting this error, tried cleaning, rebuilding, deleting and creating new AVD but nothing working, help would be appreciated
08-30 12:52:20.508 1507-1518/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
Failed to chmod /data/misc_ce/0: No such file or directory
Failed to chmod /data/media/0: No such file or directory
08-30 12:52:32.317 1810-1828/? E/BatteryExternalStatsWorker: no controller energy info supplied for telephony
08-30 12:52:32.323 1810-1828/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
08-30 12:52:32.412 1810-1832/? E/LocalDisplayAdapter: Default and active color mode is no longer available! Reverting to first available mode.
08-30 12:52:33.696 1675-1780/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-30 12:52:34.031 1810-1822/? E/SystemServer: Unable to preload default resources
08-30 12:52:36.132 1507-1516/? E/vold: Failed to read field SystemLocale: Success
08-30 12:52:36.134 1810-1888/? E/StorageManagerService: Failed to read field SystemLocale
android.os.ServiceSpecificException: Failed to read field SystemLocale (code 0)
at android.os.Parcel.createException(Parcel.java:1956)
at android.os.Parcel.readException(Parcel.java:1910)
at android.os.Parcel.readException(Parcel.java:1860)
at android.os.IVold$Stub$Proxy.fdeGetField(IVold.java:1094)
at com.android.server.StorageManagerService.getField(StorageManagerService.java:2408)
at com.android.server.StorageManagerService.copyLocaleFromMountService(StorageManagerService.java:982)
at com.android.server.StorageManagerService.handleDaemonConnected(StorageManagerService.java:975)
at com.android.server.StorageManagerService.access$900(StorageManagerService.java:171)
at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:572)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
08-30 12:52:36.960 1810-1810/? E/UsbDeviceManager: failed to write to /sys/class/android_usb/android0/f_rndis/ethaddr
08-30 12:52:36.969 1810-1810/? E/UsbDeviceManager: Failed to open control for mtp
Failed to open control for mtp
08-30 12:52:36.988 1810-1810/? E/UsbDeviceManager: Error initializing UsbHandler
java.io.FileNotFoundException: /sys/class/android_usb/android0/state (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.<init>(FileInputStream.java:165)
at android.os.FileUtils.readTextFile(FileUtils.java:514)
at com.android.server.usb.UsbDeviceManager$UsbHandlerLegacy.<init>(UsbDeviceManager.java:1375)
at com.android.server.usb.UsbDeviceManager.<init>(UsbDeviceManager.java:297)
at com.android.server.usb.UsbService.<init>(UsbService.java:139)
at com.android.server.usb.UsbService$Lifecycle.onStart(UsbService.java:73)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:126)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:113)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:72)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:1299)
at com.android.server.SystemServer.run(SystemServer.java:431)
at com.android.server.SystemServer.main(SystemServer.java:294)
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:838)
08-30 12:52:36.996 1810-1810/? E/UsbPortManager: connectToProxy: usb hal service not found. Did the service fail to start?
I have the following problem.
I implemented a Webview in my Android App, the Webview should load a HTML File that uses JavaScript. This is the code:
WebView webView = (WebView) findViewById(R.id.webview);
webView.clearCache(true);
webView.setWebViewClient(new WebViewClient() {
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
System.out.println(errorCode);
}
});
System.out.println(getFilesDir());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
webView.getSettings().setAllowUniversalAccessFromFileURLs(true);
webView.getSettings().setJavaScriptEnabled(true);
if (Build.VERSION.SDK_INT < 18) {
webView.clearView();
} else {
webView.loadUrl("about:blank");
}
webView.loadDataWithBaseURL("file://"+getFilesDir()+File.separator+"0", line, "text/html", "UTF-8", null);
First everythings works fine, but if the WebView run for a view Hours, i will get the following Error and the app get terminated shortly after it:
I/SqliteDatabaseCpp: sqlite returned: error code = 14, msg = cannot open file at line 27862 of [ed759d5a9e], db=/data/data/com.example.rebmann.prozessueberwachungkonfignr2/databases/webview.db
I/SqliteDatabaseCpp: sqlite returned: error code = 14, msg = os_unix.c: open() at line 27862 - "" errno=2 path=/NotificationPermissions.db, db=/data/data/com.example.rebmann.prozessueberwachungkonfignr2/databases/webview.db
D/OpenGLRenderer: Flushing caches (mode 1)
D/OpenGLRenderer: Flushing caches (mode 0)
D/dalvikvm: GC_CONCURRENT freed 380K, 14% free 7767K/8967K, paused 5ms+2ms
Application terminated.
For that reason i trying to use the onReceivedError method to catch that Error, but the method never gets called. (I know it's the old version of the method, but since I use a old Version of Android on my Phone that's fine).
Does anyone have any idea why i get this Error and how i can handle it.
EDIT:
I upgraded my Android to the newest supported version (4.1.2) and now i'm getting a more detailed error log, maybe that helps:
E/SQLiteLog: (14) cannot open file at line 30241 of [00bb9c9ce4]
E/SQLiteLog: (14) os_unix.c:30241: (2) open(/FileSyetmQuota.db) -
D/WebKit: ERROR:
D/WebKit: SQLite database failed to load from /FileSyetmQuota.db
Cause - unable to open database file
D/WebKit: external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
E/SQLiteLog: (14) cannot open file at line 30241 of [00bb9c9ce4]
E/SQLiteLog: (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
D/WebKit: ERROR:
D/WebKit: SQLite database failed to load from /NotificationPermissions.db
Cause - unable to open database file
D/WebKit: external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
My app downloads .mp3 files one by one with DownloadManager. Usually it works as expected. But sometimes download hangs and a progress bar stops updating inside the DownloadManager notification. If I click on the notification at the moment - my app crashes with SQLiteCantOpenDatabaseException:
04-19 17:18:11.167 4533-29108/android.process.media E/SQLiteLog: (14) cannot open file at line 30059 of [b3bb660af9]
04-19 17:18:11.177 4533-29108/android.process.media E/SQLiteLog: (14) os_unix.c:30059: (24) open(/data/data/com.android.providers.downloads/databases/downloads.db-journal) -
04-19 17:18:11.177 4533-29108/android.process.media E/SQLiteLog: (14) cannot open file at line 30059 of [b3bb660af9]
04-19 17:18:11.177 4533-29108/android.process.media E/SQLiteLog: (14) os_unix.c:30059: (24) open(/data/data/com.android.providers.downloads/databases/downloads.db-journal) -
04-19 17:18:11.177 4533-29108/android.process.media E/SQLiteLog: (14) statement aborts at 11: [SELECT _id, bypass_recommended_size_limit, uri FROM downloads WHERE (_id = ?)] unable to open database file
04-19 17:18:11.177 4533-29108/android.process.media E/SQLiteQuery: exception: unable to open database file (code 14); query: SELECT _id, bypass_recommended_size_limit, uri FROM downloads WHERE (_id = ?)
04-19 17:18:11.437 4533-4551/android.process.media E/SQLiteLog: (14) cannot open file at line 30059 of [b3bb660af9]
04-19 17:18:11.447 4533-4551/android.process.media E/SQLiteLog: (14) os_unix.c:30059: (24) open(/data/data/com.android.providers.downloads/databases/downloads.db-journal) -
04-19 17:18:11.447 4533-4551/android.process.media E/SQLiteLog: (14) cannot open file at line 30059 of [b3bb660af9]
04-19 17:18:11.447 4533-4551/android.process.media E/SQLiteLog: (14) os_unix.c:30059: (24) open(/data/data/com.android.providers.downloads/databases/downloads.db-journal) -
04-19 17:18:11.447 4533-4551/android.process.media E/SQLiteLog: (14) statement aborts at 49: [SELECT _id, _data AS local_filename, mediaprovider_uri, destination, title, description, uri, status, hint, mimetype AS media_type, total_bytes AS total_size, lastmod AS last_modified_
04-19 17:18:11.447 4533-4551/android.process.media E/SQLiteQuery: exception: unable to open database file (code 14); query: SELECT _id, _data AS local_filename, mediaprovider_uri, destination, title, description, uri, status, hint, mimetype AS media_type, total_bytes AS total_size, lastmod AS last_modified_timestamp, current_bytes AS bytes_so_far, allow_write, errorMsg, notificationpackage, 'placeholder' AS local_uri, 'placeholder' AS reason, entity, file_create_time, downloading_current_speed, download_surplus_time, xl_accelerate_speed, downloaded_time, xl_vip_status, xl_vip_cdn_url, xl_task_open_mark, download_task_thumbnail, apk_package_name, errorMsg, notificationpackage, download_file_hash, download_apk_install_way, download_extra, download_speedup_time, download_speedup_status, download_speedup_mode FROM downloads WHERE ((status='192') AND deleted != '1') ORDER BY _id DESC
04-19 17:18:11.457 4533-4551/android.process.media E/DatabaseUtils: Writing exception to parcel
android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14)
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:845)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:146)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:135)
at android.database.CursorToBulkCursorAdaptor.getBulkCursorDescriptor(CursorToBulkCursorAdaptor.java:145)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:122)
at android.os.Binder.execTransact(Binder.java:446)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: android.database.sqlite.SQLiteException: unable to open database file (code 14)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at android.content.ContentResolver.query(ContentResolver.java:501)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at android.content.ContentResolver.query(ContentResolver.java:436)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at com.android.providers.downloads.marketRelease.XLDownloadManager$Query.runQuery(XLDownloadManager.java:1319)
04-19 17:18:11.457 16692-28705/android.process.mediaUI W/System.err: at com.android.providers.downloads.marketRelease.XLDownloadManager.query(XLDownloadManager.java:1471)
I know that DownloadManager should manage all the downloads and restart them in case of download failure. I don't use SQLite in my app so I believe that DownloadManager is the one who causes the problem.
So what crashes DownloadManager? Can I prevent it from crashing from my code? And is there way to prevent my app from crashing as well?
Did anyone face similar error?
Getting Error: SQLiteLog: (14) cannot open file at line 30241 of [00bb9c9ce4]
SQLiteLog: (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
Followed all steps as per below link:
https://developers.google.com/mobile-ads-sdk/docs/admob/advanced
Please see log below:
06-01 16:11:43.613: E/GooglePlayServicesUtil(19506): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
06-01 16:11:43.643: D/LOG_TAG(19506): Interstitial ad was not ready to be shown.
06-01 16:11:43.673: D/dalvikvm(19506): GC_CONCURRENT freed 730K, 16% free 12073K/14279K, paused 6ms+6ms, total 63ms
06-01 16:11:43.724: I/brcm-gr(19506): [gralloc_lock]: new usage 0x933
06-01 16:11:43.764: E/GooglePlayServicesUtil(19506): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
06-01 16:11:43.774: E/GooglePlayServicesUtil(19506): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
06-01 16:11:43.804: D/MainGamePanel(19506): Surface is being destroyed
06-01 16:11:43.804: D/Surface Destroyed(19506): Thread was shut down cleanly
06-01 16:11:43.804: W/SurfaceView(19506): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=true left=false top=false
06-01 16:11:43.814: W/SurfaceView(19506): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=false surfaceChanged=false realSizeChanged=false redrawNeeded=false left=false top=false
06-01 16:11:43.824: E/SpannableStringBuilder(19506): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-01 16:11:43.824: E/SpannableStringBuilder(19506): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-01 16:11:43.844: W/SurfaceView(19506): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=false surfaceChanged=false realSizeChanged=false redrawNeeded=false left=false top=false
06-01 16:12:07.036: W/Ads(19506): Timed out waiting for ad response.
06-01 16:12:07.036: W/Ads(19506): Timed out waiting for ad response.
06-01 16:12:07.086: E/SQLiteLog(19506): (14) cannot open file at line 30241 of [00bb9c9ce4]
06-01 16:12:07.086: E/SQLiteLog(19506): (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
06-01 16:12:07.086: D/WebKit(19506): ERROR:
06-01 16:12:07.086: D/WebKit(19506): SQLite database failed to load from /NotificationPermissions.db
06-01 16:12:07.086: D/WebKit(19506): Cause - unable to open database file
06-01 16:12:07.086: D/WebKit(19506): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
06-01 16:12:07.096: E/SQLiteLog(19506): (14) cannot open file at line 30241 of [00bb9c9ce4]
06-01 16:12:07.096: E/SQLiteLog(19506): (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
06-01 16:12:07.096: D/WebKit(19506): ERROR:
06-01 16:12:07.096: D/WebKit(19506): SQLite database failed to load from /NotificationPermissions.db
06-01 16:12:07.096: D/WebKit(19506): Cause - unable to open database file
06-01 16:12:07.106: D/WebKit(19506): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
06-01 16:12:07.106: W/Ads(19506): Failed to load ad: 2
06-01 16:12:07.106: W/Ads(19506): Failed to load ad: 2
This error happened occasionally when I did some user/stress test on Android. Files under /data disapppeared and system server crashed after this error occurred. I am curious about the name of database "contacts2.db-mj7742599A4". Normally it should be contacts2.db. What does "*.db-mj7742599A4" mean? Anyone can help please?
02-28 19:21:43.161 660 695 E SQLiteLog: (14) cannot open file at line 30174 of [00bb9c9ce4]
02-28 19:21:43.169 660 695 E SQLiteLog: (14) os_unix.c:30174: (2) open(/data/data/com.android.providers.contacts/databases/contacts2.db-mj7742599A4) -
02-28 19:21:43.520 397 409 I am_crash: [660,android.process.acore,572933,android.database.sqlite.SQLiteCantOpenDatabaseException,unable to open database file (code 14),SQLiteConnection.java,-2]
02-28 19:21:43.536 397 5671 I am_crash: [397,system_server,-1,java.lang.IllegalArgumentException,NULL,StatFs.java,-2]