Watch face uninstalled by WearablePkgInstaller after a reboot - android

I am facing a problem with one of my watch face "fr.thema.wear.watch.eyeonbattery".
When I install it on a wear device or on emulator, nothing goes wrong and it works fine.
Then I reboot the wear device or the emulator. It restarts on my watch face as expected, but some seconds after, the screens turns black, and it falls back on the default android watch face "simple".
In the logs, I am getting the following :
04-20 11:26:43.801 3013-3041/com.google.android.clockwork.packageinstaller W/WearablePkgInstaller﹕ Version number of new app (0) is equal to existing app for com.google.android.apps.maps
04-20 11:26:43.805 350-357/system_process W/art﹕ Suspending all threads took: 6.715ms
04-20 11:26:43.842 1919-2913/com.google.android.wearable.app D/WearablePackageInfoProvider﹕ 3013 is a system app.
04-20 11:26:43.952 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent installation request for com.google.android.apps.maps
04-20 11:26:43.990 1919-1945/com.google.android.wearable.app D/WearablePackageInfoProvider﹕ 3013 is a system app.
04-20 11:26:44.337 350-357/system_process W/art﹕ Suspending all threads took: 29.792ms
04-20 11:26:44.807 350-357/system_process W/art﹕ Suspending all threads took: 7.394ms
04-20 11:26:45.476 350-357/system_process W/art﹕ Suspending all threads took: 105.178ms
04-20 11:26:45.523 350-362/system_process W/art﹕ Suspending all threads took: 49.255ms
04-20 11:26:45.622 350-362/system_process I/art﹕ Background partial concurrent mark sweep GC freed 17258(692KB) AllocSpace objects, 11(1453KB) LOS objects, 19% free, 7MB/9MB, paused 52.684ms total 635.886ms
04-20 11:26:45.631 350-361/system_process I/art﹕ WaitForGcToComplete blocked for 572.338ms for cause HeapTrim
04-20 11:26:46.050 1949-1949/fr.thema.wear.watch.eyeonbattery I/Choreographer﹕ Skipped 36 frames! The application may be doing too much work on its main thread.
04-20 11:26:46.383 350-357/system_process W/art﹕ Suspending all threads took: 65.046ms
04-20 11:26:48.444 3013-3041/com.google.android.clockwork.packageinstaller W/WearablePkgInstaller﹕ Version number of new app (1401) is equal to existing app for com.google.android.music
04-20 11:26:48.548 1919-1948/com.google.android.wearable.app D/WearablePackageInfoProvider﹕ 3013 is a system app.
04-20 11:26:48.975 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent installation request for com.google.android.music
04-20 11:26:49.085 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent delete request for fr.thema.wear.watch.eyeonbattery
04-20 11:26:49.089 350-997/system_process I/PackageManager﹕ Package doesn't exist in get block uninstall fr.thema.wear.watch.glowingtron
04-20 11:26:49.090 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent delete request for fr.thema.wear.watch.glowingtron
04-20 11:26:49.124 1919-2447/com.google.android.wearable.app D/WearablePackageInfoProvider﹕ 3013 is a system app.
04-20 11:26:49.328 350-357/system_process W/art﹕ Suspending all threads took: 20.445ms
04-20 11:26:49.648 350-362/system_process I/art﹕ Background sticky concurrent mark sweep GC freed 26253(917KB) AllocSpace objects, 8(464KB) LOS objects, 14% free, 8MB/9MB, paused 2.719ms total 213.076ms
04-20 11:26:50.357 350-357/system_process W/art﹕ Suspending all threads took: 29.915ms
04-20 11:26:50.625 350-426/system_process D/PackageManager﹕ Renaming /data/app/vmdl250365332.tmp to /data/app/com.google.android.apps.fitness-1
04-20 11:26:50.659 350-426/system_process W/PackageManager﹕ New package has a different signature: com.google.android.apps.fitness
04-20 11:26:50.727 350-386/system_process I/ActivityManager﹕ Force stopping fr.thema.wear.watch.eyeonbattery appid=10038 user=-1: uninstall pkg
04-20 11:26:50.729 350-386/system_process I/ActivityManager﹕ Killing 1949:fr.thema.wear.watch.eyeonbattery/u0a38 (adj 1): stop fr.thema.wear.watch.eyeonbattery
04-20 11:26:50.759 350-2672/system_process I/WindowState﹕ WIN DEATH: Window{34900f38 u0 fr.thema.wear.watch.eyeonbattery.WatchFaceService}
04-20 11:26:50.781 350-350/system_process W/WallpaperManagerService﹕ Wallpaper service gone: ComponentInfo{fr.thema.wear.watch.eyeonbattery/fr.thema.wear.watch.eyeonbattery.WatchFaceService}
04-20 11:26:50.827 350-357/system_process W/art﹕ Suspending all threads took: 18.019ms
04-20 11:26:50.853 350-386/system_process W/ActivityManager﹕ Scheduling restart of crashed service fr.thema.wear.watch.eyeonbattery/.WatchFaceService in 1000ms
04-20 11:26:50.877 350-386/system_process I/ActivityManager﹕ Force stopping service ServiceRecord{2fb89f01 u0 fr.thema.wear.watch.eyeonbattery/.WatchFaceService}
04-20 11:26:50.951 350-2179/system_process W/ActivityManager﹕ Spurious death for ProcessRecord{2a3fc305 1949:fr.thema.wear.watch.eyeonbattery/u0a38}, curProc for 1949: null
04-20 11:26:51.024 350-405/system_process I/Choreographer﹕ Skipped 75 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.148 350-405/system_process I/Choreographer﹕ Skipped 77 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.218 350-405/system_process I/Choreographer﹕ Skipped 58 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.278 350-405/system_process I/Choreographer﹕ Skipped 30 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.376 350-405/system_process I/Choreographer﹕ Skipped 88 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.455 350-405/system_process I/Choreographer﹕ Skipped 64 frames! The application may be doing too much work on its main thread.
04-20 11:26:51.827 350-357/system_process W/art﹕ Suspending all threads took: 15.446ms
04-20 11:26:52.035 350-426/system_process I/ActivityManager﹕ Force stopping fr.thema.wear.watch.eyeonbattery appid=10038 user=0: pkg removed
04-20 11:26:52.159 350-1049/system_process I/InputReader﹕ Reconfiguring input devices. changes=0x00000010
04-20 11:26:52.569 350-357/system_process W/art﹕ Suspending all threads took: 256.793ms
04-20 11:26:52.624 350-350/system_process D/JobSchedulerService﹕ Receieved: android.intent.action.PACKAGE_REMOVED
04-20 11:26:52.659 1919-1919/com.google.android.wearable.app I/art﹕ Explicit concurrent mark sweep GC freed 8554(574KB) AllocSpace objects, 7(501KB) LOS objects, 24% free, 2MB/3MB, paused 1.676ms total 571.570ms
04-20 11:26:52.790 350-383/system_process W/Searchables﹕ No global search activity found
04-20 11:26:52.918 350-357/system_process W/art﹕ Suspending all threads took: 104.949ms
04-20 11:26:52.957 350-362/system_process I/art﹕ Background partial concurrent mark sweep GC freed 49001(2MB) AllocSpace objects, 7(338KB) LOS objects, 19% free, 6MB/8MB, paused 17.728ms total 706.074ms
04-20 11:26:53.187 2099-2819/com.google.process.gapps I/art﹕ WaitForGcToComplete blocked for 6.850ms for cause DisableMovingGc
04-20 11:26:53.499 350-383/system_process W/WallpaperManagerService﹕ Wallpaper uninstalled, removing: ComponentInfo{fr.thema.wear.watch.eyeonbattery/fr.thema.wear.watch.eyeonbattery.WatchFaceService}
04-20 11:26:53.715 1919-1941/com.google.android.wearable.app I/art﹕ Background sticky concurrent mark sweep GC freed 2023(241KB) AllocSpace objects, 3(48KB) LOS objects, 6% free, 3MB/3MB, paused 2.063ms total 276.771ms
04-20 11:26:54.007 1919-1941/com.google.android.wearable.app I/art﹕ Background partial concurrent mark sweep GC freed 2065(191KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 3MB/4MB, paused 1.844ms total 274.264ms
04-20 11:26:54.443 350-357/system_process W/art﹕ Suspending all threads took: 616.049ms
04-20 11:26:54.547 350-426/system_process W/art﹕ Suspending all threads took: 10.861ms
04-20 11:26:54.761 1919-1919/com.google.android.wearable.app W/ClockworkHome.HomeView﹕ Watch face removed
It seems that the watch face is uninstalled due to a conflict with android.music.
04-20 11:26:48.444 3013-3041/com.google.android.clockwork.packageinstaller W/WearablePkgInstaller﹕ Version number of new app (1401) is equal to existing app for com.google.android.music
04-20 11:26:48.548 1919-1948/com.google.android.wearable.app D/WearablePackageInfoProvider﹕ 3013 is a system app.
04-20 11:26:48.975 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent installation request for com.google.android.music
04-20 11:26:49.085 3013-3041/com.google.android.clockwork.packageinstaller I/WearablePkgInstaller﹕ Sent delete request for fr.thema.wear.watch.eyeonbattery
Am I right?
Is there a solution to this issue? I did not found out what was the problem in the first place :(

I found out that after installing the release apk on the phone, the embedded wear apk deployed on wear device was an older version (features missing, pretty weird).
By searching on internet, I found an other thread (in which you participated in) from a dev experiencing the same problem of older version deployed.
android-wear embedding old (cached) wear apk in the mobile-release apk
I followed your procedure, and it solved the problem of older version. And the problem of watch face uninstalled also.
I think that the wear device does these delete of watch face when this problem of version occurs.
So it seems to be an issue of the "Google Play Service". I hope it will not happen to often.
Thanks a lot Wayne Piekarski for your answer on this thread and the other one, It was very helpful

Related

Interceptor get stuck on it's creation, in POST request

I have a application that need to do a POST request for my server sending a list of item through JSON. But to perform this POST it needs a header configuration with a token auth. When I send the request from the app, on the logcat, it´s possible to see the interceptor instantiation get stuck.
Please, take a look on my code and the logcat debug:
public static Retrofit getServerClient(String token) {
Log.d("DEBUG 1 -> ","getServerClient");
OkHttpClient httpClient;
Gson gson = new GsonBuilder()
.setDateFormat("yyyy-MM-dd'T'HH:mm:ss")
.create();
Retrofit.Builder builder = new Retrofit.Builder()
.baseUrl(SERVER_BASE_URL)
.addConverterFactory(GsonConverterFactory.create(gson));
if (token!=null && !TextUtils.isEmpty(token)) {
Log.d("DEBUG 2 -> ","getServerClient needs add header");
httpClient = getHttpClientWithInterceptor(token);
Log.d("DEBUG 8 -> ","getServerClient with headers");
}else {
httpClient = getOkHttpClient();
}
builder.client(httpClient);
Log.d("DEBUG 9 -> ","Return server client");
return builder.build();
}
private static OkHttpClient getHttpClientWithInterceptor(final String token) {
Log.d("DEBUG 3 -> ","Instantiate interceptor");
Interceptor interceptor = new Interceptor() {
#Override
public Response intercept(Chain chain) {
try {
Log.d("DEBUG 4 -> ","Add headers START");
final Request request = chain.request().newBuilder()
.addHeader("Authorization", "Bearer "+token)
.addHeader("Content-Type", "application/json")
.build();
Log.d("DEBUG 5 -> ","Add headers END");
return chain.proceed(request);
}catch (Exception e){
Log.d("DEBUG 6 -> ","Failure on request build");
e.printStackTrace();
return null;
}
}
};
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.addNetworkInterceptor(interceptor);
Log.d("DEBUG 7 -> ","Return client with interceptor");
return httpClient.build();
}
What is weird in the GET request it works as you can see:
10-30 09:40:16.081 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 1 ->: getServerClient
10-30 09:40:16.097 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 2 ->: getServerClient needs add header
10-30 09:40:16.097 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 3 ->: Instantiate interceptor
10-30 09:40:16.103 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 7 ->: Return client with interceptor
10-30 09:40:16.104 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 8 ->: getServerClient with headers
10-30 09:40:16.104 8379-8379/br.com.vegait.android.hotelexperience D/DEBUG 9 ->: Return server client
10-30 09:40:16.193 8379-8425/br.com.vegait.android.hotelexperience D/EGL_emulation: eglMakeCurrent: 0xa39a67a0: ver 2 0 (tinfo 0xa39ef300)
10-30 09:40:16.256 8379-8455/br.com.vegait.android.hotelexperience D/DEBUG 4 ->: Add headers START
10-30 09:40:16.256 8379-8455/br.com.vegait.android.hotelexperience D/DEBUG 5 ->: Add headers END
But on the POST it drops on a loops as the follow log:
10-30 09:45:56.882 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 1 ->: getServerClient
10-30 09:45:56.897 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 2 ->: getServerClient needs add header
10-30 09:45:56.897 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 3 ->: Instantiate interceptor
10-30 09:45:56.901 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 7 ->: Return client with interceptor
10-30 09:45:56.902 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 8 ->: getServerClient with headers
10-30 09:45:56.902 12054-12054/br.com.vegait.android.hotelexperience D/DEBUG 9 ->: Return server client
10-30 09:45:56.920 12054-12059/br.com.vegait.android.hotelexperience I/art: Do partial code cache collection, code=30KB, data=26KB
10-30 09:45:56.921 12054-12059/br.com.vegait.android.hotelexperience I/art: After code cache collection, code=29KB, data=26KB
10-30 09:45:56.921 12054-12059/br.com.vegait.android.hotelexperience I/art: Increasing code cache capacity to 128KB
10-30 09:45:56.994 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.348ms
10-30 09:45:57.005 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.870ms
10-30 09:45:57.412 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 47547(884KB) AllocSpace objects, 6(120KB) LOS objects, 3% free, 18MB/19MB, paused 5.274ms total 17.663ms
10-30 09:45:57.928 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 5.320ms
10-30 09:45:57.934 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 175307(3MB) AllocSpace objects, 22(576KB) LOS objects, 16% free, 15MB/18MB, paused 6.735ms total 28.375ms
10-30 09:45:58.380 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.855ms
10-30 09:45:58.388 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 149517(2MB) AllocSpace objects, 18(572KB) LOS objects, 18% free, 17MB/21MB, paused 9.750ms total 35.467ms
10-30 09:45:58.493 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.182ms
10-30 09:45:58.555 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.622ms
10-30 09:45:58.563 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 180086(3MB) AllocSpace objects, 17(548KB) LOS objects, 14% free, 18MB/21MB, paused 9.906ms total 36.522ms
10-30 09:45:58.569 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.073ms
10-30 09:45:58.718 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 8.127ms
10-30 09:45:58.726 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 151954(2MB) AllocSpace objects, 17(604KB) LOS objects, 17% free, 19MB/23MB, paused 9.878ms total 43.588ms
10-30 09:45:58.732 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 5.808ms
10-30 09:45:58.995 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.158ms
10-30 09:45:59.277 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 5.132ms
10-30 09:45:59.640 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.369ms
10-30 09:45:59.981 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.514ms
10-30 09:45:59.994 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 186259(3MB) AllocSpace objects, 13(572KB) LOS objects, 10% free, 24MB/27MB, paused 14.243ms total 54.366ms
10-30 09:46:00.003 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.053ms
10-30 09:46:00.190 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.135ms
10-30 09:46:00.397 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 8.317ms
10-30 09:46:00.508 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.196ms
10-30 09:46:00.576 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 5.746ms
10-30 09:46:00.763 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.054ms
10-30 09:46:00.936 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.152ms
10-30 09:46:01.014 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.358ms
10-30 09:46:01.207 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 173843(3MB) AllocSpace objects, 11(572KB) LOS objects, 10% free, 29MB/32MB, paused 3.833ms total 120.445ms
10-30 09:46:01.499 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 176026(3MB) AllocSpace objects, 13(676KB) LOS objects, 11% free, 29MB/33MB, paused 7.948ms total 158.936ms
10-30 09:46:01.513 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.086ms
10-30 09:46:01.768 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 183401(3MB) AllocSpace objects, 10(540KB) LOS objects, 8% free, 30MB/33MB, paused 6.976ms total 55.042ms
10-30 09:46:01.782 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.141ms
10-30 09:46:02.091 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 83.993ms
10-30 09:46:02.119 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 146812(2MB) AllocSpace objects, 10(556KB) LOS objects, 11% free, 31MB/35MB, paused 4.086ms total 148.374ms
10-30 09:46:02.132 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.503ms
10-30 09:46:02.355 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 10.725ms
10-30 09:46:02.538 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 13.960ms
10-30 09:46:02.551 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 179103(3MB) AllocSpace objects, 8(448KB) LOS objects, 5% free, 33MB/35MB, paused 16.906ms total 86.519ms
10-30 09:46:02.561 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.621ms
10-30 09:46:02.713 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 13.718ms
10-30 09:46:02.730 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 176741(3MB) AllocSpace objects, 13(744KB) LOS objects, 10% free, 33MB/37MB, paused 17.026ms total 105.761ms
10-30 09:46:02.740 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.648ms
10-30 09:46:02.919 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.148ms
10-30 09:46:03.093 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.640ms
10-30 09:46:03.278 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 8.964ms
10-30 09:46:03.466 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.234ms
10-30 09:46:03.523 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.985ms
10-30 09:46:03.622 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.846ms
10-30 09:46:03.749 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.134ms
10-30 09:46:03.911 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.538ms
10-30 09:46:04.108 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 10.659ms
10-30 09:46:04.264 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.444ms
10-30 09:46:04.429 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 16.430ms
10-30 09:46:04.446 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 177011(3MB) AllocSpace objects, 13(860KB) LOS objects, 8% free, 40MB/44MB, paused 20.255ms total 121.688ms
10-30 09:46:04.461 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.013ms
10-30 09:46:04.530 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 6.298ms
10-30 09:46:04.670 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.041ms
10-30 09:46:04.839 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.578ms
10-30 09:46:05.030 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 7.919ms
10-30 09:46:05.242 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 13.381ms
10-30 09:46:05.400 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.841ms
10-30 09:46:05.537 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.684ms
10-30 09:46:05.735 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.828ms
10-30 09:46:05.755 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 191824(3MB) AllocSpace objects, 12(860KB) LOS objects, 8% free, 45MB/49MB, paused 19.760ms total 154.848ms
10-30 09:46:05.770 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.253ms
10-30 09:46:05.953 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.552ms
10-30 09:46:06.044 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 9.720ms
10-30 09:46:06.138 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.542ms
10-30 09:46:06.284 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.762ms
10-30 09:46:06.464 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 194534(3MB) AllocSpace objects, 13(968KB) LOS objects, 7% free, 48MB/52MB, paused 3.728ms total 127.593ms
10-30 09:46:06.476 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.657ms
10-30 09:46:06.550 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 13.106ms
10-30 09:46:06.664 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 13.684ms
10-30 09:46:06.821 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.076ms
10-30 09:46:07.000 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 16.330ms
10-30 09:46:07.016 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 202163(3MB) AllocSpace objects, 11(836KB) LOS objects, 7% free, 51MB/55MB, paused 19.939ms total 136.394ms
10-30 09:46:07.028 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.080ms
10-30 09:46:07.227 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.434ms
10-30 09:46:07.395 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 17.207ms
10-30 09:46:07.525 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 16.650ms
10-30 09:46:07.713 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 214425(3MB) AllocSpace objects, 12(948KB) LOS objects, 6% free, 53MB/57MB, paused 4.599ms total 122.695ms
10-30 09:46:07.725 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.268ms
10-30 09:46:07.928 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 16.880ms
10-30 09:46:08.080 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 20.240ms
10-30 09:46:08.094 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 160556(2MB) AllocSpace objects, 5(400KB) LOS objects, 3% free, 55MB/57MB, paused 24.451ms total 71.926ms
10-30 09:46:08.113 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 18.642ms
10-30 09:46:08.305 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 212686(3MB) AllocSpace objects, 11(880KB) LOS objects, 6% free, 55MB/59MB, paused 5.110ms total 134.449ms
10-30 09:46:08.319 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 14.065ms
10-30 09:46:08.535 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 15.462ms
10-30 09:46:08.712 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 17.943ms
10-30 09:46:08.907 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 19.325ms
10-30 09:46:08.930 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 219521(3MB) AllocSpace objects, 12(1004KB) LOS objects, 6% free, 58MB/62MB, paused 24.278ms total 157.949ms
10-30 09:46:08.948 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 17.521ms
10-30 09:46:09.067 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.066ms
10-30 09:46:09.170 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 18.647ms
10-30 09:46:09.361 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 19.054ms
10-30 09:46:09.583 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 25.753ms
10-30 09:46:09.619 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 18.583ms
10-30 09:46:09.634 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 228847(4MB) AllocSpace objects, 11(924KB) LOS objects, 6% free, 61MB/65MB, paused 22.781ms total 182.292ms
10-30 09:46:09.645 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 11.615ms
10-30 09:46:09.922 12054-12065/br.com.vegait.android.hotelexperience I/art: Background sticky concurrent mark sweep GC freed 209342(3MB) AllocSpace objects, 6(528KB) LOS objects, 4% free, 62MB/65MB, paused 5.230ms total 98.012ms
10-30 09:46:09.943 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 21.805ms
10-30 09:46:10.175 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 114.591ms
10-30 09:46:10.206 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 157725(2MB) AllocSpace objects, 10(876KB) LOS objects, 6% free, 62MB/66MB, paused 4.308ms total 153.014ms
10-30 09:46:10.223 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 17.394ms
10-30 09:46:10.460 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 18.833ms
10-30 09:46:10.579 12054-12061/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 16.845ms
10-30 09:46:10.739 12054-12065/br.com.vegait.android.hotelexperience I/art: Background partial concurrent mark sweep GC freed 278135(4MB) AllocSpace objects, 11(968KB) LOS objects, 5% free, 64MB/68MB, paused 4.272ms total 179.332ms
10-30 09:46:10.752 12054-12065/br.com.vegait.android.hotelexperience W/art: Suspending all threads took: 12.981ms
And keep like this until crash. What I am doing wrong?
it´s me again.
Just to leave a feedback about my issue. I found the problem.
The object I was sending on request was different from the one mapped to be send.
Idk why it stuck de interceptor, but when I just change the object it worked like a charm. I will leave this here for someone else that might have the same problem.
Thank you any way.
First of all you have to add crash log. But anyway log that you provide means that you're using memory, then it's being freed by the GC But seems like you do to much work and GC can't provide tp you enought memory and your app shot down with OutOfMemory exception. So first of all in this case you have to use Singleton pattern to avoid creation all of this Objects like (HttpClient, Gson, Interceptor ect..)So let's pretend this class entitled HttpClient. Then you need something like NetManager that will be a singleton..
public class NetManager {
private static NetManager instance;
private HttpClient httpClient;
private NetManager() {
httpClient = new HttpClient();
}
public static NetManager() {
if (instance == null) {
instance = new NetManager();
}
return instance;
}
public HttpClient getHttpClient() {
return httpClient;
}
}
And user your httpClient through this manager.
But in general it's a very very VERY bad to make network requests in a loop.

Crash when switching between activities on Smartphone but works fine on an Emulator

So I'm using Android Studio on my PC and im testing the app in an emulator which works totally fine.
But when i try to use my smartphone connected to the pc, the app always crashes, when i try to switch the activity.
Everything else seems to work fine.
Anyone knows why this could be happening?
Thats the exception, that i get when the app chrashes:
[ 01-08 16:31:19.455 2922: 2922 E/ ]
process stopped due to unexpected signal 13
E/HAL: load: id=gralloc != hmi->id=gralloc
I/OpenGLRenderer: Initialized EGL, version 1.4
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
I/art: Starting a blocking GC Alloc
I/art: Starting a blocking GC Alloc
I/art: Starting a blocking GC Alloc
I/art: Alloc partial concurrent mark sweep GC freed 20(944B) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 251us total 9.704ms
I/art: Starting a blocking GC Alloc
I/art: Alloc concurrent mark sweep GC freed 11(12KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 252us total 16.452ms
I/art: Forcing collection of SoftReferences for 91MB allocation
I/art: Starting a blocking GC Alloc
I/art: Alloc concurrent mark sweep GC freed 11(352B) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 343us total 16.178ms
W/art: Throwing OutOfMemoryError "Failed to allocate a 96412692 byte allocation with 12582912 free bytes and 15MB until OOM"

Unfortunately Android App stopped

I/art: Background sticky concurrent mark sweep GC freed 2534(750KB) AllocSpace objects, 2(32KB) LOS objects, 16% free, 1439KB/1723KB, paused 1.210ms total 209.320ms
W/art: Suspending all threads took: 48.938ms
W/MainActivity: onResume
W/art: Suspending all threads took: 33.435ms
I/art: Background partial concurrent mark sweep GC freed 1004(119KB) AllocSpace objects, 0(0B) LOS objects, 41% free, 1448KB/2MB, paused 33.859ms total 111.039ms
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-02 18:38:14.477 2286: 2286 D/ ]
HostConnection::get() New Host Connection established 0x7f5d1785eac0, tid 2286
D/Atlas: Validating map...
E/AndroidRuntime: FATAL EXCEPTION: IntentService[]
Process: com.example.user.gcmexample, PID: 2286
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
at com.google.android.gms.iid.zzd.zzdL(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
at com.example.user.gcmexample.GCMRegistrationIntentService.registerGCM(GCMRegistrationIntentService.java:31)
at com.example.user.gcmexample.GCMRegistrationIntentService.onHandleIntent(GCMRegistrationIntentService.java:24)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Enabling debug mode 0
W/EGL_emulation: eglSurfaceAttrib not implemented
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f5d1a94d200, error=EGL_SUCCESS
W/MainActivity: onPause
I/Process: Sending signal. PID: 2286 SIG: 9
Application terminated.
I am working on google cloud messaging with Android. When I am running program, my app not launching and giving error message
Unfortunately "Application name " has stopped.

android emulator keeps crashing when i attempt to change tab

i have no errors in my application but when i switch tabs it freezes and closes the application in the emulator and i'm new to the android studio and android development in general. i do not have a clue what to do next.
here is my logcat
03-23 11:56:05.749 2417-2417/com.example.hp_user.shoutfinal28 I/art: Not late-enabling -Xcheck:jni (already on)
03-23 11:56:05.994 2417-2417/com.example.hp_user.shoutfinal28 W/System: ClassLoader referenced unknown path: /data/app/com.example.hp_user.shoutfinal28-1/lib/x86
03-23 11:56:06.021 2417-2417/com.example.hp_user.shoutfinal28 I/GMPM: App measurement is starting up, version: 8487
03-23 11:56:06.021 2417-2417/com.example.hp_user.shoutfinal28 I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
03-23 11:56:06.032 2417-2417/com.example.hp_user.shoutfinal28 E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
03-23 11:56:06.032 2417-2417/com.example.hp_user.shoutfinal28 E/GMPM: Scheduler not set. Not logging error/warn.
03-23 11:56:06.209 2417-2433/com.example.hp_user.shoutfinal28 E/GMPM: Uploading is not possible. App measurement disabled
03-23 11:56:06.741 2417-2435/com.example.hp_user.shoutfinal28 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-23 11:56:07.233 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 42.830ms
03-23 11:56:07.507 2417-2435/com.example.hp_user.shoutfinal28 I/OpenGLRenderer: Initialized EGL, version 1.4
03-23 11:56:07.670 2417-2435/com.example.hp_user.shoutfinal28 W/EGL_emulation: eglSurfaceAttrib not implemented
03-23 11:56:07.670 2417-2435/com.example.hp_user.shoutfinal28 W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xad92f000, error=EGL_SUCCESS
03-23 11:56:07.874 2417-2417/com.example.hp_user.shoutfinal28 I/Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
03-23 11:56:09.040 2417-2417/com.example.hp_user.shoutfinal28 I/Choreographer: Skipped 67 frames! The application may be doing too much work on its main thread.
03-23 11:56:14.016 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 10.772ms
03-23 11:56:16.753 2417-2433/com.example.hp_user.shoutfinal28 I/GMPM: Tag Manager is not found and thus will not be used
03-23 11:56:16.910 2417-2422/com.example.hp_user.shoutfinal28 I/art: Thread[2,tid=2422,WaitingInMainSignalCatcherLoop,Thread*=0xad90ed00,peer=0x12c7a0a0,"Signal Catcher"]: reacting to signal 3
03-23 11:56:17.048 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 46.962ms
03-23 11:56:17.211 2417-2422/com.example.hp_user.shoutfinal28 I/art: Wrote stack traces to '/data/anr/traces.txt'
03-23 11:56:22.415 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 6.324ms
03-23 11:56:33.717 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 12.067ms
03-23 11:56:39.211 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 17.079ms
03-23 11:57:13.188 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 12.698ms
03-23 11:57:15.690 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.155ms
03-23 11:57:19.158 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.179ms
03-23 11:57:21.138 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 10.996ms
03-23 11:57:40.748 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.140ms
03-23 11:57:46.163 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 6.413ms
03-23 11:57:57.981 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 8.603ms
03-23 11:58:00.909 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 12.863ms
03-23 11:58:04.638 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 21.404ms
03-23 11:58:18.369 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 21.777ms
03-23 11:58:24.334 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 31.972ms
03-23 11:58:24.769 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 12.558ms
03-23 11:58:25.399 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 21.461ms
03-23 11:58:35.213 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.951ms
03-23 11:58:38.694 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.319ms
03-23 11:58:51.712 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 10.430ms
03-23 11:59:08.130 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.958ms
03-23 11:59:16.520 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 12.715ms
03-23 11:59:28.920 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 31.685ms
03-23 11:59:29.423 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 15.909ms
03-23 11:59:30.402 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.648ms
03-23 11:59:30.923 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 16.189ms
03-23 11:59:57.004 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 6.171ms
03-23 12:00:04.514 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.080ms
03-23 12:00:05.500 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 21.063ms
03-23 12:00:09.465 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.965ms
03-23 12:00:19.918 2417-2423/com.example.hp_user.shoutfinal28 W/art:
Suspending all threads took: 9.964ms
03-23 12:00:21.427 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 17.293ms
03-23 12:00:30.382 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 13.516ms
03-23 12:01:20.767 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.766ms
03-23 12:01:32.806 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 26.784ms
03-23 12:01:33.904 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 36.950ms
03-23 12:02:18.777 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 6.365ms
03-23 12:02:39.284 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 14.412ms
03-23 12:03:00.297 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 25.732ms
03-23 12:03:01.280 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 8.056ms
03-23 12:03:12.798 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.714ms
03-23 12:03:17.801 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 8.841ms
03-23 12:03:23.760 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.779ms
03-23 12:03:44.725 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 13.453ms
03-23 12:03:52.812 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 66.320ms
03-23 12:03:57.738 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.062ms
03-23 12:04:12.258 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.525ms
03-23 12:04:14.760 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.565ms
03-23 12:04:16.782 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 19.185ms
03-23 12:04:23.730 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.169ms
03-23 12:04:31.254 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.048ms
03-23 12:04:38.743 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 10.787ms
03-23 12:05:00.175 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 106.406ms
03-23 12:05:02.590 2417-2435/com.example.hp_user.shoutfinal28 W/EGL_emulation: eglSurfaceAttrib not implemented
03-23 12:05:02.590 2417-2435/com.example.hp_user.shoutfinal28 W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa21045c0, error=EGL_SUCCESS
03-23 12:05:04.016 2417-2435/com.example.hp_user.shoutfinal28 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xabfe4d10
03-23 12:05:06.035 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 15606(1053KB) AllocSpace objects, 6(120KB) LOS objects, 37% free, 2MB/3MB, paused 19.193ms total 246.150ms
03-23 12:05:06.076 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 16.765ms
03-23 12:05:06.509 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 1885(1770KB) AllocSpace objects, 1(24KB) LOS objects, 39% free, 3MB/6MB, paused 24.099ms total 241.046ms
03-23 12:05:06.553 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.531ms
03-23 12:05:06.767 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 20.589ms
03-23 12:05:06.918 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 1034(2MB) AllocSpace objects, 0(0B) LOS objects, 10% free, 5MB/6MB, paused 129.285ms total 303.506ms
03-23 12:05:06.929 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 9.437ms
03-23 12:05:07.075 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 39.477ms
03-23 12:05:07.086 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.998ms
03-23 12:05:07.187 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 464(1401KB) AllocSpace objects, 0(0B) LOS objects, 10% free, 5MB/6MB, paused 65.404ms total 239.195ms
03-23 12:05:07.220 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 31.710ms
03-23 12:05:07.510 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 517(1538KB) AllocSpace objects, 0(0B) LOS objects, 36% free, 7MB/11MB, paused 29.730ms total 245.372ms
03-23 12:05:07.865 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 810(3MB) AllocSpace objects, 0(0B) LOS objects, 19% free, 8MB/11MB, paused 60.048ms total 195.013ms
03-23 12:05:08.085 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.930ms
03-23 12:05:08.097 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 558(2MB) AllocSpace objects, 0(0B) LOS objects, 2% free, 10MB/11MB, paused 57.680ms total 199.141ms
03-23 12:05:08.372 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 330(1634KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 11MB/11MB, paused 45.586ms total 260.298ms
03-23 12:05:08.593 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.991ms
03-23 12:05:08.599 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 474(2MB) AllocSpace objects, 0(0B) LOS objects, 24% free, 12MB/16MB, paused 52.037ms total 213.333ms
03-23 12:05:08.871 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 13.742ms
03-23 12:05:08.973 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 1030(5MB) AllocSpace objects, 0(0B) LOS objects, 8% free, 15MB/16MB, paused 136.535ms total 320.111ms
03-23 12:05:09.127 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 61.076ms
03-23 12:05:09.133 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.412ms
03-23 12:05:09.227 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 366(1835KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 17MB/17MB, paused 69.814ms total 225.055ms
03-23 12:05:09.546 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 19.416ms
03-23 12:05:09.556 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 639(2MB) AllocSpace objects, 29(464KB) LOS objects, 17% free, 18MB/22MB, paused 70.188ms total 317.219ms
03-23 12:05:09.576 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 19.102ms
03-23 12:05:09.976 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 555(2MB) AllocSpace objects, 183(2MB) LOS objects, 10% free, 20MB/22MB, paused 79.907ms total 322.037ms
03-23 12:05:09.989 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 11.923ms
03-23 12:05:10.486 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 427(1679KB) AllocSpace objects, 140(2MB) LOS objects, 14% free, 23MB/27MB, paused 72.435ms total 402.265ms
03-23 12:05:10.875 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 501(2005KB) AllocSpace objects, 165(2MB) LOS objects, 7% free, 25MB/27MB, paused 81.908ms total 324.161ms
03-23 12:05:10.884 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.802ms
03-23 12:05:11.172 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 165.365ms
03-23 12:05:11.288 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 273(1063KB) AllocSpace objects, 89(1424KB) LOS objects, 12% free, 27MB/31MB, paused 75.815ms total 355.692ms
03-23 12:05:11.747 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 230.989ms
03-23 12:05:11.778 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 5.070ms
03-23 12:05:11.905 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 447(1787KB) AllocSpace objects, 147(2MB) LOS objects, 12% free, 27MB/31MB, paused 121.279ms total 547.928ms
03-23 12:05:11.913 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.013ms
03-23 12:05:12.200 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 144.899ms
03-23 12:05:12.218 2417-2427/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 7.041ms
03-23 12:05:12.394 2417-2427/com.example.hp_user.shoutfinal28 I/art: Clamp target GC heap from 32MB to 32MB
03-23 12:05:12.394 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background partial concurrent mark sweep GC freed 303(1183KB) AllocSpace objects, 98(1952KB) LOS objects, 10% free, 28MB/32MB, paused 167.749ms total 431.021ms
03-23 12:05:12.555 2417-2417/com.example.hp_user.shoutfinal28 I/art: Waiting for a blocking GC Alloc
03-23 12:05:12.629 2417-2423/com.example.hp_user.shoutfinal28 W/art: Suspending all threads took: 147.707ms
03-23 12:05:12.730 2417-2427/com.example.hp_user.shoutfinal28 I/art: Background sticky concurrent mark sweep GC freed 242(978KB) AllocSpace objects, 80(1600KB) LOS objects, 7% free, 29MB/32MB, paused 86.419ms total 299.323ms
03-23 12:05:12.732 2417-2417/com.example.hp_user.shoutfinal28 I/art: WaitForGcToComplete blocked for 177.147ms for cause Alloc
03-23 12:05:12.733 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:12.769 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:12.769 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.069 2417-2417/com.example.hp_user.shoutfinal28 I/art: Clamp target GC heap from 34MB to 32MB
03-23 12:05:13.069 2417-2417/com.example.hp_user.shoutfinal28 I/art: Alloc partial concurrent mark sweep GC freed 168(604KB) AllocSpace objects, 51(1020KB) LOS objects, 5% free, 30MB/32MB, paused 65.635ms total 298.511ms
03-23 12:05:13.101 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.102 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.321 2417-2417/com.example.hp_user.shoutfinal28 I/art: Alloc sticky concurrent mark sweep GC freed 74(301KB) AllocSpace objects, 24(480KB) LOS objects, 4% free, 30MB/32MB, paused 62.666ms total 217.832ms
03-23 12:05:13.329 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.329 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.643 2417-2417/com.example.hp_user.shoutfinal28 I/art: Clamp target GC heap from 34MB to 32MB
03-23 12:05:13.643 2417-2417/com.example.hp_user.shoutfinal28 I/art: Alloc partial concurrent mark sweep GC freed 48(145KB) AllocSpace objects, 14(280KB) LOS objects, 4% free, 30MB/32MB, paused 63.546ms total 312.988ms
03-23 12:05:13.660 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.661 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
03-23 12:05:13.870 2417-2417/com.example.hp_user.shoutfinal28 I/art: Alloc sticky concurrent mark sweep GC freed 31(37KB) AllocSpace objects, 26(468KB) LOS objects, 3% free, 30MB/32MB, paused 63.375ms total 208.351ms
03-23 12:05:13.877 2417-2417/com.example.hp_user.shoutfinal28 I/art: Starting a blocking GC Alloc
i believe this is the class causing it to crash, before i created this class and 4th tab my app ran fine but the other two classes are pretty much empty apart from the tabs.
package com.example.hp_user.shoutfinal28;
import android.app.FragmentManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
public class FragmentShouts_Maps extends Fragment implements OnMapReadyCallback {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Get the view from fragment shouts.xml
View view = inflater.inflate(R.layout.fragmentshouts_maps, container, false);
SupportMapFragment fragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.maps);
if (fragment!= null) {
fragment.getMapAsync(this);
}
return view;
}
#Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
#Override
public void onMapReady (GoogleMap googleMap) {
}
}
here is my ViewPagerAdapter
public class ViewPagerAdapter extends FragmentPagerAdapter {
final int PAGE_COUNT = 4;
// Tab Titles
private String tabtitles[] = new String[] {"Home","Shouts","Maps","Shouters"};
Context context;
public ViewPagerAdapter(FragmentManager fm) {
super(fm);
}
#Override
public int getCount() {
return PAGE_COUNT;
}
public Fragment getItem(int position) {
switch (position) {
// Open Fragment home.java
case 0:
FragmentHome fragmenthome = new FragmentHome();
return fragmenthome;
// Open Fragment shouters.java
case 1:
FragmentShouts fragmentshouts = new FragmentShouts();
return fragmentshouts;
case 2:
FragmentShouts_Maps fragmentshouts_maps = new FragmentShouts_Maps();
return fragmentshouts_maps;
case 3:
FragmentShouters fragmentshouters = new FragmentShouters();
return fragmentshouters;
}
return null;
}
#Override
public CharSequence getPageTitle(int position) {
return tabtitles[position];
}
here is my main activity class, i think i slightly agree with you, its a sliding tab strip which isnt natural for android, more commonly seen in ios devices and it worked smoothly before the implementation of the fourth tab but i noticed my toast would react slowly when user input was stored after a button was clicked
public class MainActivity extends FragmentActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get the view from activity_main.xml
setContentView(R.layout.activity_main);
// Locate the viewpager in activity_main.xml
ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
// Set the ViewPagerAdapter into ViewPager
viewPager.setAdapter(new ViewPagerAdapter(getSupportFragmentManager()));
}
public void btnShout(View v) {
//allows for label to be changed to shouted once button is pressed
EditText txtInput = (EditText) findViewById(R.id.txtInput);
TextView lblShout = (TextView) findViewById(R.id.lblShout);
lblShout.setText("Shouted! ");
//allows for toast to be displayed once button is clicked
Toast toast = new Toast(getApplicationContext());
toast.setGravity(Gravity.TOP | Gravity.LEFT, 0, 0);
toast.makeText(MainActivity.this, txtInput.getText() + " Has Been Shouted.", toast.LENGTH_SHORT).show();
}
}
You're doing too much work on the main thread.
03-23 11:56:07.874 2417-2417/com.example.hp_user.shoutfinal28 I/Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
03-23 11:56:09.040 2417-2417/com.example.hp_user.shoutfinal28 I/Choreographer: Skipped 67 frames! The application may be doing too much work on its main thread.
If you are in need of executing long-running code, you should take a look at Android's threading tools (http://developer.android.com/guide/components/processes-and-threads.html and http://developer.android.com/training/multiple-threads/index.html). AsyncTask (http://developer.android.com/reference/android/os/AsyncTask.html) is your friend =)

Eclipse Android SDK Intel Atom disconnect and disapear

I use UBUNTU Eclipse IDE and Android SDK and my CPU is Intel so i decide to install intel atom from sdk manager to emulate faster, but after installing it successfully ,i start a virtual device with it and after 20 second the android windows diapear with this logs (The Emulator windows wich suppose to show Android close suddenly and i get this log on LogCat):
?:??: W/?(?): --------- beginning of /dev/log/main
04-20 17:16:51.090: E/logwrapper(912): executing /system/bin/e2fsck failed: No such file or directory
04-20 17:16:51.130: E/logwrapper(915): executing /system/bin/e2fsck failed: No such file or directory
04-20 17:16:52.460: I/qemu-props(919): connected to 'boot-properties' qemud service.
04-20 17:16:52.460: I/qemu-props(919): receiving..
04-20 17:16:52.460: I/qemu-props(919): received: dalvik.vm.heapsize=32m
04-20 17:16:52.490: I/qemu-props(919): receiving..
04-20 17:16:52.490: I/qemu-props(919): received: ro.config.low_ram=true
04-20 17:16:52.510: I/qemu-props(919): receiving..
04-20 17:16:52.510: I/qemu-props(919): received: qemu.sf.lcd_density=240
04-20 17:16:52.510: I/qemu-props(919): receiving..
04-20 17:16:52.510: I/qemu-props(919): received: qemu.hw.mainkeys=1
04-20 17:16:52.510: I/qemu-props(919): receiving..
04-20 17:16:52.510: I/qemu-props(919): received: qemu.sf.fake_camera=none
04-20 17:16:52.510: I/qemu-props(919): receiving..
04-20 17:16:52.510: I/qemu-props(919): exiting (5 properties set).
04-20 17:16:52.970: I/DEBUG(921): debuggerd: Jan 30 2014 03:59:47
04-20 17:16:53.080: I/installd(927): installd firing up
04-20 17:16:53.400: I/Netd(920): Netd 1.0 starting
04-20 17:16:53.430: W/InterfaceController(920): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
04-20 17:16:53.430: W/InterfaceController(920): --------- beginning of /dev/log/system
04-20 17:16:53.780: I/Vold(918): Vold 2.1 (the revenge) firing up
04-20 17:16:53.810: D/Vold(918): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
04-20 17:16:55.700: I/SurfaceFlinger(923): SurfaceFlinger is starting
04-20 17:16:55.700: I/SurfaceFlinger(923): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
04-20 17:16:55.720: D/libEGL(923): Emulator without GPU support detected. Fallback to software renderer.
04-20 17:16:55.830: D/libEGL(923): loaded /system/lib/egl/libGLES_android.so
04-20 17:16:56.000: D/gralloc_goldfish(923): Emulator without GPU emulation detected.
04-20 17:16:56.190: I/gralloc(923): using (fd=12)
04-20 17:16:56.190: I/gralloc(923): id =
04-20 17:16:56.190: I/gralloc(923): xres = 480 px
04-20 17:16:56.190: I/gralloc(923): yres = 800 px
04-20 17:16:56.190: I/gralloc(923): xres_virtual = 480 px
04-20 17:16:56.190: I/gralloc(923): yres_virtual = 1600 px
04-20 17:16:56.190: I/gralloc(923): bpp = 16
04-20 17:16:56.190: I/gralloc(923): r = 11:5
04-20 17:16:56.190: I/gralloc(923): g = 5:6
04-20 17:16:56.190: I/gralloc(923): b = 0:5
04-20 17:16:56.190: I/gralloc(923): width = 74 mm (164.756760 dpi)
04-20 17:16:56.190: I/gralloc(923): height = 123 mm (165.203247 dpi)
04-20 17:16:56.190: I/gralloc(923): refresh rate = 260.42 Hz
04-20 17:16:56.200: E/SurfaceFlinger(923): hwcomposer module not found
04-20 17:16:56.200: W/SurfaceFlinger(923): getting VSYNC period from fb HAL: 3840010
04-20 17:16:56.210: W/SurfaceFlinger(923): no suitable EGLConfig found, trying a simpler query
04-20 17:16:56.210: W/SurfaceFlinger(923): EGL_SLOW_CONFIG selected!
04-20 17:16:56.210: I/SurfaceFlinger(923): EGL informations:
04-20 17:16:56.210: I/SurfaceFlinger(923): vendor : Android
04-20 17:16:56.210: I/SurfaceFlinger(923): version : 1.4 Android META-EGL
04-20 17:16:56.210: I/SurfaceFlinger(923): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
04-20 17:16:56.210: I/SurfaceFlinger(923): Client API: OpenGL_ES
04-20 17:16:56.210: I/SurfaceFlinger(923): EGLSurface: 5-6-5-0, config=0x0
04-20 17:16:56.230: I/SurfaceFlinger(923): OpenGL ES informations:
04-20 17:16:56.230: I/SurfaceFlinger(923): vendor : Android
04-20 17:16:56.230: I/SurfaceFlinger(923): renderer : Android PixelFlinger 1.4
04-20 17:16:56.230: I/SurfaceFlinger(923): version : OpenGL ES-CM 1.0
04-20 17:16:56.230: I/SurfaceFlinger(923): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
04-20 17:16:56.230: I/SurfaceFlinger(923): GL_MAX_TEXTURE_SIZE = 4096
04-20 17:16:56.230: I/SurfaceFlinger(923): GL_MAX_VIEWPORT_DIMS = 4096
04-20 17:16:56.270: W/SurfaceFlinger(923): power module not found
04-20 17:16:56.270: W/SurfaceFlinger(923): power module not found
04-20 17:16:56.340: D/SurfaceFlinger(923): Screen acquired, type=0 flinger=0xb7954820
04-20 17:16:58.030: E/SurfaceFlinger(923): ro.sf.lcd_density must be defined as a build property
04-20 17:16:58.170: D/libEGL(992): Emulator without GPU support detected. Fallback to software renderer.
04-20 17:16:58.190: D/libEGL(992): loaded /system/lib/egl/libGLES_android.so
04-20 17:16:58.290: D/gralloc_goldfish(992): Emulator without GPU emulation detected.
04-20 17:16:59.900: I/mediaserver(926): ServiceManager: 0xb83a8d40
04-20 17:16:59.960: I/AudioFlinger(926): Using default 3000 mSec as standby time.
04-20 17:17:00.010: I/CameraService(926): CameraService started (pid=926)
04-20 17:17:00.130: D/EmulatedCamera_QemuClient(926): Emulated camera list:
04-20 17:17:00.190: I/CameraService(926): Loaded "Emulated Camera Module" camera module
04-20 17:17:00.400: I/AudioPolicyManagerBase(926): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
04-20 17:17:00.470: I/AudioFlinger(926): loadHwModule() Loaded primary audio interface from Generic audio HW HAL (audio) handle 1
04-20 17:17:00.470: I/AudioFlinger(926): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
04-20 17:17:00.710: I/AudioMixer(926): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
04-20 17:17:00.740: I/AudioFlinger(926): Using module 1 has the primary audio interface
04-20 17:17:00.760: I/AudioFlinger(926): AudioFlinger's thread 0xb5fc0010 ready to run
04-20 17:17:00.760: W/AudioFlinger(926): Thread AudioOut_2 cannot connect to the power manager service
04-20 17:17:00.810: W/AudioFlinger(926): Thread AudioOut_2 cannot connect to the power manager service
04-20 17:17:00.810: W/AudioFlinger(926): Thread AudioOut_2 cannot connect to the power manager service
04-20 17:17:00.810: E/AudioFlinger(926): no wake lock to update!
04-20 17:17:00.820: E/AudioFlinger(926): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.r_submix (No such file or directory)
04-20 17:17:00.820: I/AudioFlinger(926): loadHwModule() error -2 loading module r_submix
04-20 17:17:00.820: W/AudioPolicyManagerBase(926): could not open HW module r_submix
04-20 17:17:00.820: I/AudioPolicyService(926): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
04-20 17:17:01.910: D/AndroidRuntime(924): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
04-20 17:17:02.060: W/linker(924): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
04-20 17:17:02.490: D/AndroidRuntime(924): CheckJNI is ON
04-20 17:17:05.240: D/dalvikvm(924): Trying to load lib libjavacore.so 0x0
04-20 17:17:05.350: D/dalvikvm(924): Added shared lib libjavacore.so 0x0
04-20 17:17:05.760: D/dalvikvm(924): Trying to load lib libnativehelper.so 0x0
04-20 17:17:05.760: D/dalvikvm(924): Added shared lib libnativehelper.so 0x0
04-20 17:17:05.760: D/dalvikvm(924): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
04-20 17:17:09.260: D/dalvikvm(924): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
04-20 17:17:16.110: E/memtrack(924): Couldn't load memtrack module (No such file or directory)
04-20 17:17:16.110: E/android.os.Debug(924): failed to load memtrack module: -2
04-20 17:17:18.160: I/SamplingProfilerIntegration(924): Profiling disabled.
04-20 17:17:18.730: I/Zygote(924): Preloading classes...
04-20 17:17:18.940: D/dalvikvm(924): GC_EXPLICIT freed 38K, 8% free 511K/552K, paused 4ms+46ms, total 96ms
04-20 17:17:19.790: D/dalvikvm(924): GC_EXPLICIT freed 2K, 4% free 584K/604K, paused 1ms+46ms, total 49ms
04-20 17:17:21.750: D/dalvikvm(924): GC_EXPLICIT freed 15K, 4% free 628K/648K, paused 1ms+1ms, total 60ms
04-20 17:17:24.390: D/dalvikvm(924): GC_EXPLICIT freed 20K, 4% free 692K/716K, paused 22ms+1ms, total 75ms
04-20 17:17:26.990: D/dalvikvm(924): GC_EXPLICIT freed 27K, 4% free 727K/756K, paused 2ms+1ms, total 32ms
04-20 17:17:28.860: D/dalvikvm(924): GC_EXPLICIT freed 33K, 5% free 748K/784K, paused 1ms+70ms, total 314ms
04-20 17:17:33.210: D/dalvikvm(924): GC_EXPLICIT freed 9K, 2% free 800K/812K, paused 32ms+51ms, total 85ms
04-20 17:17:35.340: D/dalvikvm(924): GC_EXPLICIT freed 29K, 4% free 826K/860K, paused 2ms+2ms, total 43ms
04-20 17:17:38.260: D/TextLayoutCache(924): Using debug level = 0 - Debug Enabled = 0
04-20 17:17:38.710: D/dalvikvm(924): GC_EXPLICIT freed 17K, 3% free 867K/888K, paused 2ms+1ms, total 54ms
04-20 17:17:39.920: I/dalvikvm(924): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
04-20 17:17:39.920: D/MtpDeviceJNI(924): register_android_mtp_MtpDevice
04-20 17:17:39.970: I/dalvikvm(924): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
04-20 17:17:39.970: I/dalvikvm(924): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
04-20 17:17:40.010: I/dalvikvm(924): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
04-20 17:17:40.450: D/dalvikvm(924): GC_EXPLICIT freed 18K, 3% free 902K/924K, paused 2ms+1ms, total 54ms
04-20 17:17:40.700: W/dalvikvm(924): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/media/videoeditor/MediaArtistNativeHelper;
04-20 17:17:40.700: W/Zygote(924): Class not found for preloading: android.media.videoeditor.MediaArtistNativeHelper
04-20 17:17:41.400: D/dalvikvm(924): GC_EXPLICIT freed 24K, 3% free 934K/960K, paused 1ms+42ms, total 86ms
04-20 17:17:42.580: D/dalvikvm(924): GC_EXPLICIT freed 17K, 3% free 970K/992K, paused 1ms+4ms, total 111ms
04-20 17:17:43.850: D/dalvikvm(924): GC_EXPLICIT freed 25K, 3% free 1013K/1044K, paused 1ms+1ms, total 115ms
04-20 17:17:44.620: E/EmojiFactory_jni(924): Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found
04-20 17:17:44.680: D/dalvikvm(924): GC_EXPLICIT freed 16K, 2% free 1057K/1076K, paused 2ms+2ms, total 58ms
04-20 17:17:46.460: D/dalvikvm(924): GC_EXPLICIT freed 24K, 3% free 1352K/1380K, paused 2ms+2ms, total 165ms
04-20 17:17:47.710: D/dalvikvm(924): GC_EXPLICIT freed 34K, 3% free 1376K/1412K, paused 32ms+33ms, total 144ms
04-20 17:17:49.820: D/dalvikvm(924): GC_EXPLICIT freed 29K, 3% free 1400K/1432K, paused 46ms+6ms, total 204ms
04-20 17:17:51.791: D/dalvikvm(924): GC_EXPLICIT freed 37K, 3% free 1417K/1456K, paused 35ms+53ms, total 125ms
04-20 17:17:52.671: I/LibraryLoader(924): loading: webviewchromium
04-20 17:17:56.341: I/LibraryLoader(924): loaded: webviewchromium
04-20 17:17:57.361: D/dalvikvm(924): GC_EXPLICIT freed 14K, 2% free 1459K/1476K, paused 3ms+3ms, total 107ms
04-20 17:17:59.471: V/NatController(920): runCmd(/system/bin/iptables -F natctrl_FORWARD) res=0
04-20 17:17:59.851: V/NatController(920): runCmd(/system/bin/iptables -A natctrl_FORWARD -j DROP) res=0
04-20 17:18:00.211: V/NatController(920): runCmd(/system/bin/iptables -t nat -F natctrl_nat_POSTROUTING) res=0
04-20 17:18:00.271: E/logwrapper(1200): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.291: V/NatController(920): runCmd(/system/bin/ip rule flush) res=255
04-20 17:18:00.291: E/logwrapper(1201): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.301: V/NatController(920): runCmd(/system/bin/ip -6 rule flush) res=255
04-20 17:18:00.391: E/logwrapper(1202): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.391: V/NatController(920): runCmd(/system/bin/ip rule add from all lookup default prio 32767) res=255
04-20 17:18:00.401: E/logwrapper(1203): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.411: V/NatController(920): runCmd(/system/bin/ip rule add from all lookup main prio 32766) res=255
04-20 17:18:00.411: E/logwrapper(1204): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.441: V/NatController(920): runCmd(/system/bin/ip -6 rule add from all lookup default prio 32767) res=255
04-20 17:18:00.451: E/logwrapper(1205): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.481: V/NatController(920): runCmd(/system/bin/ip -6 rule add from all lookup main prio 32766) res=255
04-20 17:18:00.481: E/logwrapper(1206): executing /system/bin/ip failed: No such file or directory
04-20 17:18:00.511: V/NatController(920): runCmd(/system/bin/ip route flush cache) res=255
04-20 17:18:00.681: V/NatController(920): runCmd(/system/bin/iptables -F natctrl_tether_counters) res=1
04-20 17:18:01.001: V/NatController(920): runCmd(/system/bin/iptables -X natctrl_tether_counters) res=1
04-20 17:18:01.151: V/NatController(920): runCmd(/system/bin/iptables -N natctrl_tether_counters) res=0
04-20 17:18:01.501: D/dalvikvm(924): GC_EXPLICIT freed 24K, 2% free 1488K/1516K, paused 53ms+4ms, total 147ms
: E/(): Device disconnected
I tried to make the device with different options ,GPU use for example or Snapshots, but it happen again.what should i do ?

Categories

Resources