Project No Longer Functional in Android Studio - android

I originally imported the Adobe Marketing Cloud (Omniture) v3x into my project, then changed my mind and replaced it with v4. I ran into problems with v4 though, and decided to remove it and go back to the original v3 library. When I tested it last night, it was working fine and sending hits like I expected. This morning I fired it up, and the project no longer works at all. It tries to start up, seems to fail at remotely loading assets (never a problem before), and eventually crashes without giving me a meaningful exception. All I get are screens and screens of stuff like this:
08-20 12:17:05.018 31576-31777/com.newspress.hurricanehub D/dalvikvm﹕ JIT unchain all for threadid=1
08-20 12:17:05.769 31576-31777/com.newspress.hurricanehub W/dalvikvm﹕ threadid=32: spin on suspend #1 threadid=1 (pcf=0)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub W/dalvikvm﹕ threadid=32: spin on suspend #2 threadid=1 (pcf=0)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ "downloader" prio=5 tid=32 RUNNABLE
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ | group="main" sCount=0 dsCount=0 obj=0x43195640 self=0x61f07738
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ | sysTid=31777 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1643150224
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ | state=R schedstat=( 0 0 0 ) utm=4 stm=1 core=0
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:208)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.Connection.connect(Connection.java:161)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:246)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:186)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:375)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:328)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:196)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
08-20 12:17:06.519 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.squareup.okhttp.internal.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.mapbox.mapboxsdk.tileprovider.tilesource.WebSourceTileLayer.getBitmapFromURL(WebSourceTileLayer.java:174)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.mapbox.mapboxsdk.tileprovider.tilesource.WebSourceTileLayer.getDrawableFromTile(WebSourceTileLayer.java:120)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.mapbox.mapboxsdk.tileprovider.tilesource.WebSourceTileLayer.getDrawableFromTile(WebSourceTileLayer.java:28)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.mapbox.mapboxsdk.tileprovider.modules.MapTileDownloader$TileLoader.loadTile(MapTileDownloader.java:154)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at com.mapbox.mapboxsdk.tileprovider.modules.MapTileModuleLayerBase$TileLoader.run(MapTileModuleLayerBase.java:316)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-20 12:17:06.529 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-20 12:17:06.549 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ at java.lang.Thread.run(Thread.java:841)
08-20 12:17:06.569 31576-31777/com.newspress.hurricanehub I/dalvikvm﹕ [ 08-20 12:17:06.569 31576:31777 I/dalvikvm ]
"main" prio=5 tid=1 RUNNABLE JIT
I could post my full log if that would helpful, but there's a LOT of that. I've tried everything I know. I took the module out of the project and put it back in, I tried deleting my gradle and iml files and reimporting, I even reset the project to a previous commit from before I changed any libraries or had done anything that would hurt the project. Same result, it's just completely broken now, won't load anything, and eventually crashes. Any insight? I don't really know where to look or what to try at this point.

Turned out I was mistaken in assuming something I had changed in the code was causing the issue. Once I realized older apks were also broken, further testing revealed the data stream for the map was trying to load so many polygons it was crashing the Linux kernel. Once I removed the polygons from the map, everything worked fine. If something breaks I just always figure I probably broke it, but that isn't always a safe assumption!

Related

at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

When i am running application in android then these problems is coming , my error is as follow i am copying here ,
07-17 11:46:49.780 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:503)
07-17 11:46:49.780 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:356)
07-17 11:46:49.784 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:379)
07-17 11:46:49.784 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
com.squareup.picasso.ResourceRequestHandler.decodeResource(ResourceRequestHandler.java:54)
07-17 11:46:49.784 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
com.squareup.picasso.ResourceRequestHandler.load(ResourceRequestHandler.java:45)
07-17 11:46:49.792 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206) 07-17
11:46:49.792 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159) 07-17
11:46:50.152 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
07-17 11:46:50.152 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
java.util.concurrent.FutureTask.run(FutureTask.java:234) 07-17
11:46:50.152 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
07-17 11:46:50.152 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
07-17 11:46:50.152 1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
java.lang.Thread.run(Thread.java:841) 07-17 11:46:50.152
1507-1532/com.shubham.MeraIndore I/dalvikvm﹕ at
com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
Ok so i am explaining you what these all about ,
java.lang.Object
↳ android.graphics.BitmapFactory
Creates Bitmap objects from various sources, including files, streams, and byte-arrays.
you are getting error because of limited memory , ideally you only want to load a lower resolution version in memory. The lower resolution version should match the size of the UI component that displays it. An image with a higher resolution does not provide any visible benefit, but still takes up precious memory and incurs additional performance overhead due to additional on the fly scaling.
Although it will not causes any run time error in app .for more details you can visit https://developer.android.com/training/displaying-bitmaps/load-bitmap.html

Android PackageManger -- Exception

When getting the list of packages which is running in devices, i am getting the execption proxy stub exception from my logcat
This the code i used
List packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);
This the exception which im am getting
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x40ab1478 self=0x112f910
| sysTid=1801 nice=0 sched=0/0 cgrp=default handle=1074439528
| schedstat=( 0 0 0 ) utm=465 stm=85 core=1
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getInstalledApplications(IPackageManager.java:1930)
at android.app.ApplicationPackageManager.getInstalledApplications(ApplicationPackageManager.java:414)
at com.informate.smnpd.DataUsageAppManager.processData1(DataUsageAppManager.java:237)
at com.informate.smnpd.DataUsageAppManager.processData(DataUsageAppManager.java:114)
at com.informate.smnpd.BackgroundService.getData(BackgroundService.java:667)
at com.informate.smnpd.ManualUpdate.onClick(ManualUpdate.java:221)
at android.view.View.performClick(View.java:3526)
at android.view.View$PerformClick.run(View.java:14133)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4697)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)
Can anyone please guide me on why this exception will occures at the time of getting installed package name. Thanks in advance

Android Mupdf : PDF viewer silenty crashed due to low memory after 13 pages

I am trying opened a large pdf file (10MB) which has high resolution images embedded on it with internal links,It seems to be working fine up to 13 pages when I continuous clicked the next page button. After 13 pages the application silently restart with list of all magazines files.
I am facing the issue with both 1.0 and 1.1 version.
Source for apk : http://code.google.com/p/mupdf/downloads/list
Tested on : Sony Ericsson XPERIA
model : X10i
sdk version : 2.3.3
Please check the log cat content attached below.
Any help will be appreciated
Thank You.
08-20 13:58:52.670: I/libmupdf(10800): In native method
08-20 13:58:52.670: I/libmupdf(10800): Checking format
08-20 13:58:52.670: I/libmupdf(10800): locking pixels
08-20 13:58:52.670: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:58:53.370: E/libmupdf(10800): Rendered
08-20 13:58:53.370: E/libmupdf(10800): Goto page 2...
08-20 13:58:54.460: D/dalvikvm(10800): GC_CONCURRENT freed 1233K, 56% free 3165K/7047K, external 6492K/6609K, paused 2ms+7ms
08-20 13:58:54.660: E/libmupdf(10800): Goto page 3...
08-20 13:58:54.670: E/libmupdf(10800): PageWidth=1191
08-20 13:58:54.670: E/libmupdf(10800): PageHeight=1588
08-20 13:58:54.710: I/libmupdf(10800): In native method
08-20 13:58:54.710: I/libmupdf(10800): Checking format
08-20 13:58:54.710: I/libmupdf(10800): locking pixels
08-20 13:58:54.710: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:58:58.390: E/libmupdf(10800): Rendered
08-20 13:58:58.390: E/libmupdf(10800): Goto page 3...
08-20 13:58:58.390: E/libmupdf(10800): Goto page 4...
08-20 13:58:58.400: E/libmupdf(10800): PageWidth=1191
08-20 13:58:58.400: E/libmupdf(10800): PageHeight=1588
08-20 13:58:58.410: I/libmupdf(10800): In native method
08-20 13:58:58.410: I/libmupdf(10800): Checking format
08-20 13:58:58.410: I/libmupdf(10800): locking pixels
08-20 13:58:58.410: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:01.670: E/libmupdf(10800): Rendered
08-20 13:59:01.670: E/libmupdf(10800): Goto page 4...
08-20 13:59:01.670: E/libmupdf(10800): Goto page 5...
08-20 13:59:01.710: E/libmupdf(10800): PageWidth=1191
08-20 13:59:01.710: E/libmupdf(10800): PageHeight=1588
08-20 13:59:01.730: I/libmupdf(10800): In native method
08-20 13:59:01.730: I/libmupdf(10800): Checking format
08-20 13:59:01.730: I/libmupdf(10800): locking pixels
08-20 13:59:01.730: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:05.080: E/libmupdf(10800): Rendered
08-20 13:59:05.080: E/libmupdf(10800): Goto page 5...
08-20 13:59:05.080: E/libmupdf(10800): Goto page 6...
08-20 13:59:05.120: E/libmupdf(10800): PageWidth=1191
08-20 13:59:05.120: E/libmupdf(10800): PageHeight=1588
08-20 13:59:05.130: I/libmupdf(10800): In native method
08-20 13:59:05.130: I/libmupdf(10800): Checking format
08-20 13:59:05.130: I/libmupdf(10800): locking pixels
08-20 13:59:05.130: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:08.260: E/libmupdf(10800): Rendered
08-20 13:59:08.260: E/libmupdf(10800): Goto page 6...
08-20 13:59:08.260: E/libmupdf(10800): Goto page 7...
08-20 13:59:08.270: E/libmupdf(10800): PageWidth=1191
08-20 13:59:08.270: E/libmupdf(10800): PageHeight=1588
08-20 13:59:08.280: I/libmupdf(10800): In native method
08-20 13:59:08.280: I/libmupdf(10800): Checking format
08-20 13:59:08.280: I/libmupdf(10800): locking pixels
08-20 13:59:08.280: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:11.350: E/libmupdf(10800): Rendered
08-20 13:59:11.350: E/libmupdf(10800): Goto page 7...
08-20 13:59:11.350: E/libmupdf(10800): Goto page 8...
08-20 13:59:11.350: E/libmupdf(10800): PageWidth=1191
08-20 13:59:11.350: E/libmupdf(10800): PageHeight=1588
08-20 13:59:11.370: I/libmupdf(10800): In native method
08-20 13:59:11.370: I/libmupdf(10800): Checking format
08-20 13:59:11.370: I/libmupdf(10800): locking pixels
08-20 13:59:11.370: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:12.050: D/dalvikvm(10800): GC_CONCURRENT freed 1875K, 59% free 3239K/7751K, external 6492K/6609K, paused 2ms+8ms
08-20 13:59:14.350: E/libmupdf(10800): Rendered
08-20 13:59:14.350: E/libmupdf(10800): Goto page 8...
08-20 13:59:14.350: E/libmupdf(10800): Goto page 9...
08-20 13:59:14.390: E/libmupdf(10800): PageWidth=1191
08-20 13:59:14.390: E/libmupdf(10800): PageHeight=1588
08-20 13:59:14.390: I/libmupdf(10800): In native method
08-20 13:59:14.390: I/libmupdf(10800): Checking format
08-20 13:59:14.390: I/libmupdf(10800): locking pixels
08-20 13:59:14.390: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:17.500: E/libmupdf(10800): Rendered
08-20 13:59:17.500: E/libmupdf(10800): Goto page 9...
08-20 13:59:17.510: E/libmupdf(10800): Goto page 10...
08-20 13:59:17.550: E/libmupdf(10800): PageWidth=1191
08-20 13:59:17.550: E/libmupdf(10800): PageHeight=1588
08-20 13:59:17.550: I/libmupdf(10800): In native method
08-20 13:59:17.550: I/libmupdf(10800): Checking format
08-20 13:59:17.550: I/libmupdf(10800): locking pixels
08-20 13:59:17.550: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:22.690: E/libmupdf(10800): Rendered
08-20 13:59:22.830: E/libmupdf(10800): Goto page 10...
08-20 13:59:22.830: E/libmupdf(10800): Goto page 11...
08-20 13:59:22.850: E/libmupdf(10800): PageWidth=1191
08-20 13:59:22.850: E/libmupdf(10800): PageHeight=1588
08-20 13:59:22.890: I/ActivityManager(1231): Start proc com.sonyericsson.eventstream.telephonyplugin for service com.sonyericsson.eventstream.telephonyplugin/.TelephonyPluginService: pid=11006 uid=10058 gids={}
08-20 13:59:22.910: I/libmupdf(10800): In native method
08-20 13:59:22.910: I/libmupdf(10800): Checking format
08-20 13:59:22.910: I/libmupdf(10800): locking pixels
08-20 13:59:22.910: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:24.490: I/ActivityManager(1231): Process com.sonyericsson.pccompanion (pid 10834) has died.
08-20 13:59:25.110: I/ActivityManager(1231): Process com.sonyericsson.android.support (pid 10850) has died.
08-20 13:59:25.970: I/ActivityManager(1231): Process android.process.acore (pid 10914) has died.
08-20 13:59:27.460: E/libmupdf(10800): Rendered
08-20 13:59:27.460: E/libmupdf(10800): Goto page 11...
08-20 13:59:27.460: E/libmupdf(10800): Goto page 12...
08-20 13:59:27.490: E/libmupdf(10800): PageWidth=1191
08-20 13:59:27.490: E/libmupdf(10800): PageHeight=1588
08-20 13:59:27.510: I/libmupdf(10800): In native method
08-20 13:59:27.510: I/libmupdf(10800): Checking format
08-20 13:59:27.510: I/libmupdf(10800): locking pixels
08-20 13:59:27.510: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:30.990: E/libmupdf(10800): Rendered
08-20 13:59:30.990: E/libmupdf(10800): Goto page 12...
08-20 13:59:30.990: E/libmupdf(10800): Goto page 13...
08-20 13:59:31.010: E/libmupdf(10800): PageWidth=1191
08-20 13:59:31.010: E/libmupdf(10800): PageHeight=1588
08-20 13:59:31.040: I/libmupdf(10800): In native method
08-20 13:59:31.040: I/libmupdf(10800): Checking format
08-20 13:59:31.040: I/libmupdf(10800): locking pixels
08-20 13:59:31.040: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:32.140: I/ActivityManager(1231): Process com.sonyericsson.customization (pid 10860) has died.
08-20 13:59:32.140: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:33.200: I/ActivityManager(1231): Process com.sonyericsson.eventstream.telephonyplugin (pid 11006) has died.
08-20 13:59:33.200: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.eventstream.telephonyplugin/.TelephonyPluginService in 705872ms
08-20 13:59:33.200: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:33.660: I/ActivityManager(1231): Process com.sonyericsson.devicemonitor (pid 10951) has died.
08-20 13:59:33.660: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.devicemonitor/.DeviceMonitorService in 5000ms
08-20 13:59:33.660: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:34.310: I/ActivityManager(1231): Process com.sonyericsson.sync.service (pid 10876) has died.
08-20 13:59:34.310: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.sync.service/sync.service.SemcRepeatingSyncManagerService in 34213ms
08-20 13:59:34.310: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:34.960: E/libmupdf(10800): Rendered
08-20 13:59:34.960: E/libmupdf(10800): Goto page 13...
08-20 13:59:34.960: E/libmupdf(10800): Goto page 14...
08-20 13:59:34.970: E/libmupdf(10800): PageWidth=1191
08-20 13:59:34.970: E/libmupdf(10800): PageHeight=1588
08-20 13:59:35.010: I/libmupdf(10800): In native method
08-20 13:59:35.010: I/libmupdf(10800): Checking format
08-20 13:59:35.010: I/libmupdf(10800): locking pixels
08-20 13:59:35.010: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:35.160: I/ActivityManager(1231): Process com.sonyericsson.crashmonitor (pid 10986) has died.
08-20 13:59:35.170: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.crashmonitor/.CrashMonitorService in 579664ms
08-20 13:59:35.170: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:35.920: I/ActivityManager(1231): Process com.sonyericsson.android.bootinfo:remote (pid 10995) has died.
08-20 13:59:35.920: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:36.610: I/ActivityManager(1231): Process com.sonyericsson.secureclockservice (pid 10808) has died.
08-20 13:59:36.610: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.secureclockservice/.SecureClockEventListenerService in 41912ms
08-20 13:59:36.610: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.secureclockservice/.SecureClockStartupService in 51912ms
08-20 13:59:36.610: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:37.210: I/ActivityManager(1231): Process com.sonyericsson.eventstream.calllogplugin (pid 10963) has died.
08-20 13:59:37.210: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.eventstream.calllogplugin/.CallLogPluginService in 61313ms
08-20 13:59:37.210: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:38.370: E/libmupdf(10800): Rendered
08-20 13:59:38.370: E/libmupdf(10800): Goto page 14...
08-20 13:59:38.370: E/libmupdf(10800): Goto page 15...
08-20 13:59:38.420: E/libmupdf(10800): PageWidth=1191
08-20 13:59:38.420: E/libmupdf(10800): PageHeight=1588
08-20 13:59:38.430: I/libmupdf(10800): In native method
08-20 13:59:38.430: I/libmupdf(10800): Checking format
08-20 13:59:38.430: I/libmupdf(10800): locking pixels
08-20 13:59:38.430: E/libmupdf(10800): Rendering page=480x640 patch=[0,0,480,640]
08-20 13:59:38.600: I/ActivityManager(1231): Process com.sonyericsson.textinput.uxp (pid 10943) has died.
08-20 13:59:38.600: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.textinput.uxp/.glue.InputMethodServiceGlue in 69922ms
08-20 13:59:38.600: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:38.630: W/InputManagerService(1231): Session failed to close due to remote exception
08-20 13:59:38.630: W/InputManagerService(1231): android.os.DeadObjectException
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.BinderProxy.transact(Native Method)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.internal.view.IInputMethodSession$Stub$Proxy.finishSession(IInputMethodSession.java:346)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.finishSession(InputMethodManagerService.java:896)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.clearCurMethodLocked(InputMethodManagerService.java:907)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.onServiceDisconnected(InputMethodManagerService.java:924)
08-20 13:59:38.630: W/InputManagerService(1231): at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1069)
08-20 13:59:38.630: W/InputManagerService(1231): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1083)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Handler.handleCallback(Handler.java:587)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Handler.dispatchMessage(Handler.java:92)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Looper.loop(Looper.java:123)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.ServerThread.run(SystemServer.java:549)
08-20 13:59:38.630: W/InputManagerService(1231): Session failed to close due to remote exception
08-20 13:59:38.630: W/InputManagerService(1231): android.os.DeadObjectException
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.BinderProxy.transact(Native Method)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.internal.view.IInputMethodSession$Stub$Proxy.finishSession(IInputMethodSession.java:346)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.finishSession(InputMethodManagerService.java:896)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.clearCurMethodLocked(InputMethodManagerService.java:911)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.InputMethodManagerService.onServiceDisconnected(InputMethodManagerService.java:924)
08-20 13:59:38.630: W/InputManagerService(1231): at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1069)
08-20 13:59:38.630: W/InputManagerService(1231): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1083)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Handler.handleCallback(Handler.java:587)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Handler.dispatchMessage(Handler.java:92)
08-20 13:59:38.630: W/InputManagerService(1231): at android.os.Looper.loop(Looper.java:123)
08-20 13:59:38.630: W/InputManagerService(1231): at com.android.server.ServerThread.run(SystemServer.java:549)
08-20 13:59:38.690: I/ActivityManager(1231): Start proc com.sonyericsson.devicemonitor for service com.sonyericsson.devicemonitor/.DeviceMonitorService: pid=11015 uid=10010 gids={3003, 3002, 1007}
08-20 13:59:39.230: I/ActivityManager(1231): Process com.sonyericsson.devicemonitor (pid 11015) has died.
08-20 13:59:39.230: W/ActivityManager(1231): Scheduling restart of crashed service com.sonyericsson.devicemonitor/.DeviceMonitorService in 79293ms
08-20 13:59:39.230: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:39.700: I/ActivityManager(1231): Process com.google.process.gapps (pid 10888) has died.
08-20 13:59:39.700: W/ActivityManager(1231): Scheduling restart of crashed service com.google.android.gsf/.gtalkservice.service.GTalkService in 5000ms
08-20 13:59:39.700: W/ActivityManager(1231): Scheduling restart of crashed service com.google.android.location/.NetworkLocationService in 88820ms
08-20 13:59:39.700: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:40.100: D/GeocoderProxy(1231): onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
08-20 13:59:40.100: D/LocationProviderProxy(1231): LocationProviderProxy.onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
08-20 13:59:40.440: D/dalvikvm(10800): GC_CONCURRENT freed 1939K, 59% free 3249K/7815K, external 6492K/6609K, paused 3ms+12ms
08-20 13:59:42.190: I/ActivityManager(1231): Process com.artifex.mupdf (pid 10800) has died.
08-20 13:59:42.190: I/WindowManager(1231): WIN DEATH: Window{4091b3f0 com.artifex.mupdf/com.artifex.mupdf.MuPDFActivity paused=false}
08-20 13:59:42.190: E/InputDispatcher(1231): channel '409046a0 com.artifex.mupdf/com.artifex.mupdf.ChoosePDFActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
08-20 13:59:42.190: E/InputDispatcher(1231): channel '409046a0 com.artifex.mupdf/com.artifex.mupdf.ChoosePDFActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
08-20 13:59:42.210: I/WindowManager(1231): WIN DEATH: Window{409046a0 com.artifex.mupdf/com.artifex.mupdf.ChoosePDFActivity paused=false}
08-20 13:59:42.210: E/InputDispatcher(1231): Received spurious receive callback for unknown input channel. fd=190, events=0x8
08-20 13:59:42.230: I/ActivityManager(1231): Start proc com.artifex.mupdf for activity com.artifex.mupdf/.ChoosePDFActivity: pid=11024 uid=10146 gids={}
08-20 13:59:42.230: I/ActivityManager(1231): Low Memory: No more background processes.
08-20 13:59:42.710: W/InputManagerService(1231): Got RemoteException sending setActive(false) notification to pid 10800 uid 10146
08-20 13:59:42.740: I/ActivityManager(1231): Displayed com.artifex.mupdf/.ChoosePDFActivity: +521ms
08-20 13:59:44.720: I/ActivityManager(1231): Start proc com.google.process.gapps for service com.google.android.gsf/.gtalkservice.service.GTalkService: pid=11032 uid=10022 gids={3003, 1015, 2001, 1007}
08-20 13:59:44.790: I/ActivityThread(11032): Pub com.google.settings: com.google.android.gsf.settings.GoogleSettingsProvider
08-20 13:59:44.811: I/ActivityThread(11032): Pub subscribedfeeds: com.google.android.gsf.subscribedfeeds.SubscribedFeedsProvider
08-20 13:59:44.940: I/ActivityThread(11032): Pub com.google.android.gsf.gservices: com.google.android.gsf.gservices.GservicesProvider
08-20 13:59:44.940: I/GservicesProvider(11032): Gservices pushing to system: true; secure: true
08-20 13:59:44.940: I/ActivityThread(11032): Pub com.google.android.providers.talk: com.google.android.gsf.talk.TalkProvider
08-20 13:59:45.160: D/SyncManager(1231): setSyncAutomatically: , provider subscribedfeeds -> true
08-20 13:59:45.160: D/SyncManager(1231): setSyncAutomatically: already set to true, doing nothing
08-20 13:59:45.170: D/GTalkService(11032): lost connectivity, notify
08-20 13:59:45.300: D/GTalkService(11032): [GTalkConnection.26] init: initialized presence to AVAILABLE(x) pmuc-v1
08-20 13:59:45.300: D/GTalkService(11032): [GTalkConnection.26] ensurePresenceHandlerLoginState: call RosterListenerImpl.onLoggedIn
08-20 13:59:45.300: D/GTalkService(11032): [RosterListenerImpl] onLoggedIn
08-20 13:59:45.430: I/ActivityManager(1231): Start proc android.process.acore for content provider com.android.providers.contacts/.SemcContactsProvider2: pid=11058 uid=10012 gids={3003}
08-20 13:59:45.470: D/dalvikvm(1145): GC_EXPLICIT freed 11K, 53% free 2556K/5379K, external 1685K/2133K, paused 38ms
08-20 13:59:45.510: D/GTalkService(11032): [GTalkImSession] login: kbvk527#gmail.com, hostConn.connState = RECONNECTION_SCHEDULED, hostConn.error=NO ERROR
08-20 13:59:45.510: D/GTalkService(11032): [GTalkConnection.26] connect: network unavailable, set state=PENDING, err=NO_NETWORK
08-20 13:59:45.510: D/GTalkService(11032): [RosterListenerImpl] onLoggedIn
08-20 13:59:45.520: D/dalvikvm(1145): GC_EXPLICIT freed <1K, 53% free 2556K/5379K, external 1685K/2133K, paused 46ms
08-20 13:59:45.520: I/ActivityThread(11058): Pub contacts;com.android.contacts: com.android.providers.contacts.SemcContactsProvider2
08-20 13:59:45.580: D/dalvikvm(1145): GC_EXPLICIT freed <1K, 53% free 2556K/5379K, external 1685K/2133K, paused 66ms
08-20 13:59:45.870: I/ActivityThread(11058): Pub user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
08-20 13:59:45.880: I/ActivityThread(11058): Pub call_log: com.android.providers.contacts.SemcCallLogProvider
08-20 13:59:45.880: I/ActivityThread(11058): Pub com.android.social: com.android.providers.contacts.SocialProvider
08-20 13:59:45.880: I/ActivityThread(11058): Pub applications: com.android.providers.applications.ApplicationsProvider
08-20 13:59:45.990: D/GTalkService(11032): [GTalkConnection.24] EVENT_REQUEST_ROSTER: not connected
08-20 13:59:50.120: D/skia(1299): purging 8K from font cache [1 entries]
08-20 13:59:50.150: D/dalvikvm(1299): GC_EXPLICIT freed 21K, 56% free 2870K/6407K, external 2586K/3164K, paused 30ms
08-20 13:59:55.120: D/skia(1231): purging 23K from font cache [3 entries]
08-20 13:59:55.210: D/dalvikvm(1231): GC_EXPLICIT freed 442K, 47% free 6830K/12743K, external 4080K/5095K, paused 93ms
08-20 13:59:58.540: I/ActivityManager(1231): Start proc com.sonyericsson.setupwizard for service com.sonyericsson.setupwizard/.simcard.SimService: pid=11067 uid=10092 gids={3003, 1015}
08-20 14:00:05.060: D/dalvikvm(1335): GC_EXPLICIT freed 4K, 51% free 3032K/6151K, external 1685K/2133K, paused 34ms
08-20 14:00:08.560: I/ActivityManager(1231): Start proc com.sonyericsson.sync.service for service com.sonyericsson.sync.service/sync.service.SemcRepeatingSyncManagerService: pid=11076 uid=10043 gids={3003}
08-20 14:00:08.730: I/ActivityThread(11076): Pub com.sonyericsson.syncml.Account: sync.service.provider.SonyEricssonAccountProvider
08-20 14:00:08.780: D/SYNCML/APPLICATION(11076): Creating wake-lock for BroadcastReceivers
08-20 14:00:08.780: D/SYNCML/PROVIDER(11076): onAccountsUpdated([Account {name=Phone contacts, type=com.sonyericsson.localcontacts}, Account {name=kbvk527#gmail.com, type=com.google}, Account {name=kbvk527#gmail.com, type=com.facebook.auth.login}, Account {name=kbvk527#gmail.com, type=com.sonyericsson.facebook.account}])
08-20 14:00:08.810: D/SYNCML/PROVIDER(11076): Starting static initialization of registry
08-20 14:00:08.810: D/SYNCML/MAINTENANCE(11076): Reading uri from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.contacts.ContactsDataService}
08-20 14:00:08.810: D/SYNCML/MAINTENANCE(11076): Reading authority from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.contacts.ContactsDataService}
08-20 14:00:08.810: D/SYNCML/MAINTENANCE(11076): Reading name from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.contacts.ContactsDataService}
08-20 14:00:08.810: D/SYNCML/MAINTENANCE(11076): Reading description from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.contacts.ContactsDataService}
08-20 14:00:08.810: D/SYNCML/MAINTENANCE(11076): Reading mime-type from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.contacts.ContactsDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading uri from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.bookmarks.BookmarksDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading authority from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.bookmarks.BookmarksDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading name from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.bookmarks.BookmarksDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading description from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.bookmarks.BookmarksDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading mime-type from ComponentInfo{com.sonyericsson.sync.service/versit.rpc.bookmarks.BookmarksDataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading uri from ComponentInfo{com.sonyericsson.sync.service/sync.service.SEMCCalendar2DataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading authority from ComponentInfo{com.sonyericsson.sync.service/sync.service.SEMCCalendar2DataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading name from ComponentInfo{com.sonyericsson.sync.service/sync.service.SEMCCalendar2DataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading description from ComponentInfo{com.sonyericsson.sync.service/sync.service.SEMCCalendar2DataService}
08-20 14:00:08.820: D/SYNCML/MAINTENANCE(11076): Reading mime-type from ComponentInfo{com.sonyericsson.sync.service/sync.service.SEMCCalendar2DataService}
08-20 14:00:08.830: D/SYNCML/MAINTENANCE(11076): Row already exists, skipping update
08-20 14:00:08.830: D/SYNCML/MAINTENANCE(11076): Row already exists, skipping update
08-20 14:00:08.840: D/SYNCML/MAINTENANCE(11076): Row already exists, skipping update
08-20 14:00:08.840: D/SYNCML/MAINTENANCE(11076): Found rows, deleting all missing rows in registry
08-20 14:00:08.880: I/ActivityManager(1231): Start proc com.sonyericsson.customization for content provider com.sonyericsson.provider.customization/.CustomizationProvider: pid=11086 uid=10083 gids={}
08-20 14:00:08.900: I/ActivityThread(11086): Pub com.sonyericsson.provider.useragent: com.sonyericsson.provider.useragent.UserAgentProvider
08-20 14:00:08.910: D/ActivityThread(11086): Loading provider com.sonyericsson.provider.customization: com.sonyericsson.provider.customization.CustomizationProvider
08-20 14:00:08.920: I/CustomizationProvider(11086): No configuration file: /system/etc/customization/settings/com/sonyericsson/provider/useragent/custom_settings.xml
08-20 14:00:08.920: W/UserAgentProvider(11086): onCreatejava.io.FileNotFoundException
08-20 14:00:08.920: I/ActivityThread(11086): Pub com.sonyericsson.provider.customization: com.sonyericsson.provider.customization.CustomizationProvider
08-20 14:00:08.920: I/CustomizationProvider(11086): No configuration file: /system/etc/customization/settings/com/sonyericsson/sync/service/customization/custom_settings.xml
08-20 14:00:08.920: W/SyncAccountCustomization(11076): Unable to find customization file
08-20 14:00:09.930: W/SyncAccountCustomization(11076): Stop CustomizationService
08-20 14:00:18.540: I/ActivityManager(1231): Start proc com.sonyericsson.secureclockservice for service com.sonyericsson.secureclockservice/.SecureClockEventListenerService: pid=11096 uid=10085 gids={3003}
08-20 14:00:18.570: I/SecureClock(11096): The listener for network connectivity is set up
08-20 14:00:18.570: I/SecureClock(11096): Generate an initial secure clock value.
08-20 14:00:18.570: I/SecureClock(11096): Network not connected
08-20 14:00:18.580: I/SecureClock(11096): network state changed
08-20 14:00:18.580: I/SecureClock(11096): Network not connected
08-20 14:00:28.530: I/JNI(11096): Trying to load libJNISecureClock.so
08-20 14:00:28.530: D/dalvikvm(11096): Trying to load lib /data/data/com.sonyericsson.secureclockservice/lib/libJNISecureClock.so 0x4051ae00
08-20 14:00:28.550: D/dalvikvm(11096): Added shared lib /data/data/com.sonyericsson.secureclockservice/lib/libJNISecureClock.so 0x4051ae00
08-20 14:00:28.550: D/dalvikvm(11096): No JNI_OnLoad found in /data/data/com.sonyericsson.secureclockservice/lib/libJNISecureClock.so 0x4051ae00, skipping init
08-20 14:00:28.550: I/SecureClock(11096): Setting up timer
08-20 14:00:28.550: I/SecureClock(11096): Delay=120000
08-20 14:00:28.550: I/SecureClock(11096): Period=43200000
A bug has been opened for this at:
http://bugs.ghostscript.com/show_bug.cgi?id=693288
and progress can be tracked there. However, no progress will be made without a specimen file to reproduce the problem.....

Screen orientation in PhoneGap / Android [duplicate]

This question already has answers here:
Phonegap app crashes when switched orientation even with AndroidManifest changes
(2 answers)
Closed 3 years ago.
I'm currently developing a small demo in PhoneGap to test out some functionalities. I want to use the PhoneGap-OrientationLock plugin available from Github to be able to dynamically change my screen orientation from JavaScript, I've updated the plugin to use it in Cordova.
My problem right now is that it crashes as soon as I want to change my screen orientation. Even if I try something as simple as setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); (without using PhoneGap technically) from my onCreate method, my application just quits to the launcher with the following debug log:
08-20 08:57:17.083: D/DroidGap(21383): DroidGap.onCreate()
08-20 08:57:17.193: D/CordovaWebView(21383): Origin to allow: http://127.0.0.1*
08-20 08:57:17.193: I/CordovaLog(21383): Found log level DEBUG
08-20 08:57:17.193: I/CordovaLog(21383): Changing log level to DEBUG(3)
08-20 08:57:17.193: I/CordovaLog(21383): Found preference for fullscreen=true
08-20 08:57:17.193: D/CordovaLog(21383): Found preference for fullscreen=true
08-20 08:57:17.193: I/CordovaLog(21383): Found preference for useBrowserHistory=false
08-20 08:57:17.193: D/CordovaLog(21383): Found preference for useBrowserHistory=false
08-20 08:57:17.223: D/DroidGap(21383): DroidGap.init()
08-20 08:57:17.223: D/CordovaWebView(21383): >>> loadUrl(file:///android_asset/www/index.html)
08-20 08:57:17.223: D/PluginManager(21383): init()
08-20 08:57:17.233: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.243: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.243: D/DroidGap(21383): onDestroy()
08-20 08:57:17.243: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.243: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.263: D/DroidGap(21383): DroidGap.onCreate()
08-20 08:57:17.263: D/CordovaWebView(21383): Origin to allow: http://127.0.0.1*
08-20 08:57:17.263: I/CordovaLog(21383): Found log level DEBUG
08-20 08:57:17.263: I/CordovaLog(21383): Changing log level to DEBUG(3)
08-20 08:57:17.263: I/CordovaLog(21383): Found preference for fullscreen=true
08-20 08:57:17.263: D/CordovaLog(21383): Found preference for fullscreen=true
08-20 08:57:17.263: I/CordovaLog(21383): Found preference for useBrowserHistory=false
08-20 08:57:17.263: D/CordovaLog(21383): Found preference for useBrowserHistory=false
08-20 08:57:17.273: D/DroidGap(21383): DroidGap.init()
08-20 08:57:17.273: D/CordovaWebView(21383): >>> loadUrl(file:///android_asset/www/index.html)
08-20 08:57:17.273: D/PluginManager(21383): init()
08-20 08:57:17.293: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.313: D/DroidGap(21383): onMessage(onPageStarted,file:///android_asset/www/index.html)
08-20 08:57:17.313: D/SoftKeyboardDetect(21383): Ignore this event
08-20 08:57:17.373: D/SoftKeyboardDetect(21383): Ignore this event
08-20 08:57:17.483: D/Cordova(21383): onPageFinished(file:///android_asset/www/index.html)
08-20 08:57:17.483: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:17.483: D/DroidGap(21383): onMessage(onNativeReady,null)
08-20 08:57:17.483: D/DroidGap(21383): onMessage(onPageFinished,file:///android_asset/www/index.html)
08-20 08:57:17.483: D/DroidGap(21383): onMessage(onPageStarted,about:blank)
08-20 08:57:17.503: D/dalvikvm(21383): GC_CONCURRENT freed 326K, 9% free 7566K/8263K, paused 8ms+2ms, total 33ms
08-20 08:57:17.513: D/Cordova(21383): onPageFinished(about:blank)
08-20 08:57:17.513: D/DroidGap(21383): onMessage(onPageFinished,about:blank)
08-20 08:57:17.513: D/DroidGap(21383): onMessage(exit,null)
08-20 08:57:17.563: D/DroidGap(21383): onMessage(onPageStarted,file:///android_asset/www/index.html)
08-20 08:57:17.563: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:18.023: D/Cordova(21383): onPageFinished(file:///android_asset/www/index.html)
08-20 08:57:18.023: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:18.023: D/DroidGap(21383): onMessage(onNativeReady,null)
08-20 08:57:18.023: D/DroidGap(21383): onMessage(onPageFinished,file:///android_asset/www/index.html)
08-20 08:57:18.053: E/SQLiteLog(21383): (14) cannot open file at line 30174 of [00bb9c9ce4]
08-20 08:57:18.053: E/SQLiteLog(21383): (14) os_unix.c:30174: (2) open(/CachedGeoposition.db) -
08-20 08:57:18.053: D/WebKit(21383): ERROR:
08-20 08:57:18.053: D/WebKit(21383): SQLite database failed to load from /CachedGeoposition.db
08-20 08:57:18.053: D/WebKit(21383): Cause - unable to open database file
08-20 08:57:18.053: D/WebKit(21383): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
08-20 08:57:18.143: D/DroidGap(21383): onMessage(networkconnection,wifi)
08-20 08:57:18.183: D/DroidGap(21383): onMessage(spinner,stop)
08-20 08:57:18.223: W/IInputConnectionWrapper(21383): showStatusIcon on inactive InputConnection
08-20 08:57:18.263: D/DroidGap(21383): onDestroy()
08-20 08:57:18.263: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:18.263: D/CordovaWebView(21383): >>> loadUrlNow()
08-20 08:57:18.283: D/DroidGap(21383): onMessage(onPageStarted,about:blank)
08-20 08:57:18.303: D/Cordova(21383): onPageFinished(about:blank)
08-20 08:57:18.303: D/DroidGap(21383): onMessage(onPageFinished,about:blank)
08-20 08:57:18.303: D/DroidGap(21383): onMessage(exit,null)
08-20 08:57:19.483: D/DroidGap(21383): onMessage(spinner,stop)
08-20 08:57:19.513: D/DroidGap(21383): onMessage(spinner,stop)
08-20 08:57:20.023: D/DroidGap(21383): onMessage(spinner,stop)
So it looks like as soon as I call setRequestedOrientation like so:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
super.loadUrl("file:///android_asset/www/index.html");
}
My application calls onDestroy and goes back to the launcher. Am I just not understanding an Android concept? Anyone has a clue?
You should add android:configChanges="orientation|keyboardHidden" in the Android Manifest in the first <activity> that appears. I had the same problem, it crashed my app too.

Android: crash on drawPicture() call?

I have an application which displays a series of custom views in a LinearLayout. The LinearLayout is in a ScrollView. The custom views draw a picture, when their onDraw method is called. Generally this works fine. But occasionally the application crashes on a drawPicture() call. When it crashes, no exception seems to be thrown, but I do get this message in logcat: "Wrote stack trace to 'data/anr/traces.txt'".
The contents of traces.txt is below:
DALVIK THREADS:
"main" prio=5 tid=3 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2aac2250 self=0x84d00
| sysTid=412 nice=0 sched=0/0 cgrp=unknown handle=2130112448
at android.graphics.Canvas.native_drawPicture(Native Method)
at android.graphics.Canvas.drawPicture(Canvas.java:1404)
at com.MyView.onDraw(PDFPageView.java:100)
at android.view.View.draw(View.java:6534)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1849)
at android.view.ViewRoot.draw(ViewRoot.java:1349)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4325)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
"AsyncTask #1" prio=5 tid=17 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x2e4262b0 self=0x351ab8
| sysTid=420 nice=10 sched=0/0 cgrp=unknown handle=3480528
at java.lang.Object.wait(Native Method)
- waiting on <0x195468> (a java.lang.VMThread)
at java.lang.Thread.parkFor(Thread.java:1535)
at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
at sun.misc.Unsafe.park(Unsafe.java:317)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:131)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1996)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1001)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
"Binder Thread #3" prio=5 tid=15 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9cc0 self=0x191798
| sysTid=419 nice=0 sched=0/0 cgrp=unknown handle=1738736
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #2" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9c00 self=0x1a7510
| sysTid=418 nice=0 sched=0/0 cgrp=unknown handle=1792360
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #1" prio=5 tid=11 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9b40 self=0x1aae60
| sysTid=417 nice=0 sched=0/0 cgrp=unknown handle=1738512
at dalvik.system.NativeStart.run(Native Method)
"JDWP" daemon prio=5 tid=9 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2e3e82a0 self=0x1b82a0
| sysTid=416 nice=0 sched=0/0 cgrp=unknown handle=1792208
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=7 RUNNABLE
| group="system" sCount=0 dsCount=0 s=N obj=0x2e3e81e8 self=0x1b9420
| sysTid=415 nice=0 sched=0/0 cgrp=unknown handle=1791968
at dalvik.system.NativeStart.run(Native Method)
"HeapWorker" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2d68c4c8 self=0x1b9968
| sysTid=413 nice=0 sched=0/0 cgrp=unknown handle=1792792
at dalvik.system.NativeStart.run(Native Method)
This is the logcat output:
W/WindowManager( 53): Key dispatching timed out sending to com.mypackage/com.mypackage.MyActivity
W/WindowManager( 53): Dispatch state: {{KeyEvent{action=1 code=82 repeat=0 met
a=0 scancode=229 mFlags=8} to Window{4387d7f8 Keyguard paused=false} # 129122478
0532 lw=Window{4387d7f8 Keyguard paused=false} lb=android.view.ViewRoot$W#4387d4
08 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false}}}
W/WindowManager( 53): Current state: {{null to Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false} # 1291225159009 lw=Window{4
392eb90 com.mypackage/com.mypackage.MyActivity paused=false} lb=an
droid.os.BinderProxy#4392e9b8 fin=false gfw=true ed=true tts=0 wf=false fp=false
mcf=Window{4392eb90
com.mypackage/com.mypackage.MyActivity paused
=false}}}
I/ActivityManager( 53): ANR in process: com.mypackage
(last in com.mypackage)
I/ActivityManager( 53): Annotation: keyDispatchingTimedOut
I/ActivityManager( 53): CPU usage:
I/ActivityManager( 53): Load: 0.71 / 0.81 / 0.44
I/ActivityManager( 53): CPU usage from 19028ms to 19ms ago:
I/ActivityManager( 53): com.mypackage: 34% = 34% user + 0% kernel / f
aults: 24 minor
I/ActivityManager( 53): system_server: 2% = 1% user + 0% kernel / faults: 8
minor
I/ActivityManager( 53): com.android.phone: 0% = 0% user + 0% kernel
I/ActivityManager( 53): adbd: 0% = 0% user + 0% kernel / faults: 72 minor
I/ActivityManager( 53): TOTAL: 38% = 36% user + 2% kernel
I/ActivityManager( 53): Removing old ANR trace file from /data/anr/traces.txt
I/Process ( 53): Sending signal. PID: 514 SIG: 3
I/dalvikvm( 514): threadid=7: reacting to signal 3
I/dalvikvm( 514): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 53 SIG: 3
I/dalvikvm( 53): threadid=7: reacting to signal 3
I/dalvikvm( 53): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 96 SIG: 3
I/dalvikvm( 96): threadid=7: reacting to signal 3
I/dalvikvm( 96): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 223 SIG: 3
I/dalvikvm( 223): threadid=7: reacting to signal 3
I/dalvikvm( 223): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 140 SIG: 3
I/dalvikvm( 140): threadid=7: reacting to signal 3
I/dalvikvm( 140): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 120 SIG: 3
I/dalvikvm( 120): threadid=7: reacting to signal 3
I/dalvikvm( 120): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 172 SIG: 3
I/dalvikvm( 172): threadid=7: reacting to signal 3
I/dalvikvm( 172): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 175 SIG: 3
I/dalvikvm( 175): threadid=7: reacting to signal 3
I/dalvikvm( 175): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 94 SIG: 3
I/dalvikvm( 94): threadid=7: reacting to signal 3
I/dalvikvm( 94): Wrote stack trace to '/data/anr/traces.txt'
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 0
W/WindowManager( 53): No window to dispatch pointer action 1
D/dalvikvm( 53): GC freed 12498 objects / 629776 bytes in 174ms
This is not a crash, it's an ANR (Application Not Responding.) It means your application is taking too long to respond to an event (more than 5 seconds.)

Categories

Resources