My application is showing very strange behavior for a tablet device, it crashes as it launches (Lollipop - 5.1.1 Tablet device, without any meaningful logs) though it runs fine on mobile devices even including Lollipop - 5.0 phone device with almost same log report
minSdkVersion 19
targetSdkVersion 28
Log report
E/com.samsung.app: [AccuTab_Magagine]>>> UIMK:1376 [0:0] time : 17:31
E/Watchdog: !#Sync 2614 [07-31 17:31:00.264]
? E/AffinityControl: AffinityControl: registerfunction enter
? E/AffinityControl: AffinityControl: registerfunction enter
E/WindowState: getStack: Window{2bd3ac2f u0 d0 com.project.debug/com.screens.account_login.AccountLoginActivity} couldn't find taskId=500 Callers=com.android.server.wm.WindowState.getDisplayContent:1059 com.android.server.wm.WindowState.isDefaultDisplay:1778 com.android.server.wm.WindowState.getMultiWindowStyleLw:2363 com.android.internal.policy.impl.multiwindow.MultiPhoneWindowManager.shouldEnableLayoutInsetsBySoftInput:1505
E/Zygote: MountEmulatedStorage()
E/Zygote: v2
E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
com.switchsolutions.agricultureapplication.mobilink.debug E/StudioProfiler: Studio Profilers encountered an unexpected error. Consider reporting a bug, including logcat output below.
See also: https://developer.android.com/studio/report-bugs.html#studio-bugs
Failed to capture application
E/WindowState: getStack: Window{2bd3ac2f u0 d0 com.project.debug/com.screens.account_login.AccountLoginActivity} couldn't find taskId=500 Callers=com.android.server.wm.WindowState.getDisplayContent:1059 com.android.server.wm.WindowState.isDefaultDisplay:1778 com.android.server.wm.WindowState.getMultiWindowStyleLw:2363 com.android.internal.policy.impl.multiwindow.MultiPhoneWindowManager.shouldEnableLayoutInsetsBySoftInput:1505
E/android.os.Debug: ro.product_ship = true
E/android.os.Debug: ro.debug_level = 0x4f4c
Related
I am using 2 build environments in parallel: Windows and Ubuntu.
When I build APK in Windows (via command line) - the APK is fine and runs great.
But when I build exactly the same project on Ubuntu - it fails (running on the same Android device).
I clone the project from the same git repository, and during the gradle build - I receive the one-to-one same messages.
Have no idea where I should start digging.
Any advise will be appreciated.
BTW, I have run-time logs from both APK's:
The logs:
============ Linux ============
08-16 09:02:35.455 5866-5975/com.growdirector.tabletapp.growdirectorapp D/JVM: JNIEnvironment::RegisterNatives(org/webrtc/voiceengine/WebRtcAudioManager)
NativeRegistration::ctor#[tid=5975]
NativeRegistration::NewObject#[tid=5975]
08-16 09:02:35.455 5866-5975/com.growdirector.tabletapp.growdirectorapp W/System.err: java.lang.NoSuchMethodError: no non-static method "Lorg/webrtc/voiceengine/WebRtcAudioManager;.<init>(Landroid/content/Context;J)V"
08-16 09:02:35.456 5866-5975/com.growdirector.tabletapp.growdirectorapp E/rtc: #
# Fatal error in ../../webrtc/modules/utility/source/helpers_android.cc, line 51
# last system error: 0
# Check failed: !jni->ExceptionCheck()
# Error during GetMethodID: <init>, (Landroid/content/Context;J)V
#
========================================================
======== WIN =========================================
08-14 19:06:15.210 2483-2656/com.growdirector.tabletapp.growdirectorapp D/JVM: JNIEnvironment::RegisterNatives(org/webrtc/voiceengine/WebRtcAudioManager)
NativeRegistration::ctor#[tid=2656]
NativeRegistration::NewObject#[tid=2656]
08-14 19:06:15.211 2483-2656/com.growdirector.tabletapp.growdirectorapp I/org.webrtc.Logging: WebRtcAudioManager: ctor#[name=Thread-318, id=318]
08-14 19:06:15.213 211-838/? D/AudioFlinger_Threads: thread 0xad4c0000 type 0 TID 838 waking up
08-14 19:06:15.213 211-840/? D/AudioFlinger_Threads: thread 0xad200000 type 0 TID 840 waking up
08-14 19:06:15.214 211-838/? D/AudioALSAStreamOut: latency(), flags 2, return 23
08-14 19:06:15.214 211-840/? D/AudioALSAStreamOut: latency(), flags 4, return 10
08-14 19:06:15.214 801-1380/? D/PowerManagerService: acquireWakeLockInternal: lock=137038916, flags=0x1, tag="AudioMix", ws=null, uid=1013, pid=0
updateWakeLockSummaryLocked: mWakefulness=Awake, mWakeLockSummary=0x1
08-14 19:06:15.214 2483-2568/com.growdirector.tabletapp.growdirectorapp D/AudioSystem: getIoDescriptor: ioHandle = 2, index = -2, mIoDescriptors = 0x9db88218
======================================================
Thanks!
When I updated the Android Studio a few days ago, the Android Emulator stopped working. I tried to open a blank activity and the emulator did not work as well.
All the SDK tools have been installed and updated. Below are the event log and Logcat of a blank activity (Hello World!) when I run the blank activity.
Event Log: 1/1/2018 4:43 PM Gradle sync started
4:43 PM Project setup started
4:44 PM Gradle sync finished in 34s 677ms
4:44 PM Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
4:45 PM Gradle build finished in 1m 28s 392ms
5:00 PM Unable to run 'adb': null
5:00 PM 'C:\Media\platform-tools\adb.exe start-server' failed -- run manually if necessary
5:00 PM * daemon not running; starting now at tcp:5037
5:00 PM * daemon started successfully
5:03 PM Executing tasks: [:app:assembleDebug]
5:03 PM Emulator: emulator: ERROR: Missing initial data partition file: C:\Users\Android Studio.android\avd\Nexus_5_API_27.avd/userdata.img
5:03 PM Emulator: compileAndValidateCoreShader: fail to compile. infolog Fragment shader failed to compile with the following errors:
5:03 PM Emulator: ERROR: 0:85: error(#143) Undeclared identifier undefined
5:03 PM Emulator: ERROR: 0:85: error(#132) Syntax error: '<' parse error
5:03 PM Emulator: ERROR: error(#273) 2 compilation errors. No code generated
5:03 PM Emulator:
5:03 PM Emulator: linkAndValidateProgram: fail to link program. infolog: Fragment shader(s) were not successfully compiled before glLinkProgram() was called. Link failed.
5:03 PM Emulator:
Logcat:
01-01 04:05:27.996 3188-3188/com.example.androidstudio.fixit I/zygote: Not late-enabling -Xcheck:jni (already on)
01-01 04:05:28.262 3188-3188/com.example.androidstudio.fixit W/zygote: Unexpected CPU variant for X86 using defaults: x86
01-01 04:05:28.565 3188-3201/com.example.androidstudio.fixit I/zygote: Debugger is no longer active
01-01 04:05:28.915 3188-3188/com.example.androidstudio.fixit I/InstantRun: starting instant run server: is main process
01-01 04:05:29.650 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: HWUI GL Pipeline
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit I/OpenGLRenderer: Initialized EGL, version 1.4
01-01 04:05:29.872 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: Swap behavior 1
01-01 04:05:29.873 3188-3235/com.example.androidstudio.fixit W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
01-01 04:05:29.873 3188-3235/com.example.androidstudio.fixit D/OpenGLRenderer: Swap behavior 0
01-01 04:05:30.001 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglCreateContext: 0xa2b59da0: maj 2 min 0 rcv 2
01-01 04:05:30.073 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglMakeCurrent: 0xa2b59da0: ver 2 0 (tinfo 0xac24c670)
01-01 04:05:30.269 3188-3235/com.example.androidstudio.fixit D/EGL_emulation: eglMakeCurrent: 0xa2b59da0: ver 2 0 (tinfo 0xac24c670)
I went to the Settings->Advanced in the Extented Controls in the emulator and then to Advanced and changed the OpenGL ES Render to SwiftShader and the OpenGL ES API level to Compatibility (OpenGL ES 1.1/2.0) and the errors appear to have gone away and the screen is now not displaying a white screen and is instead is displaying the google map, which is what the program is supposed to do. Does this seem like a good solution? Is there more I should do to not get screwed up in the future?
BUILD SUCCESSFULon Android Emulator \
Total time: 2 mins 32.03 secs
Built the following apk(s): mulator -
/var/meteor/met-wsecom/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /var/meteor/met-wsecom/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-debug.apk
Package name: com.id15ripp23h390l1sizzfo
INSTALL SUCCESS on Android Emulator /
Starting app on Android Emulator |
Tailing logs for Android Emulator
=> Started app on Android Emulator.
I20170221-10:02:19.232(5.5)? 02-21 10:00:35.411 7748 7748 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I20170221-10:02:20.637(5.5)? 02-21 10:00:36.053 7748 7748 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
I20170221-10:02:20.637(5.5)? 02-21 10:00:37.400 7748 7748 D MeteorWebApp: Detected new bundled version, removing versions directory if it exists
I20170221-10:02:20.638(5.5)? 02-21 10:00:37.759 7748 7774 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I20170221-10:02:20.638(5.5)? 02-21 10:00:41.538 7748 7748 I MeteorWebApp: Serving asset bundle with version: 8b3faaa5b6fa7637c474dd2669147eaefc505608
I20170221-10:02:20.638(5.5)? 02-21 10:00:52.066 7748 7748 I chromium: [INFO:CONSOLE(1185)] "deviceready has not fired after 5 seconds.", source: http://localhost:12672/cordova.js (1185)
I20170221-10:02:20.638(5.5)? 02-21 10:00:52.066 7748 7748 I chromium: [INFO:CONSOLE(1178)] "Channel not fired: onDOMContentLoaded", source: http://localhost:12672/cordova.js (1178)
Actually, I'm interested in know if by correcting any of this errors I can improve the performance of the AVD, which is too slow.
I'm on Android Studio 1.3.2, with Android SDK 6 and Java SDK 8. On a Intel i3 with 4GB RAM (~1.5GB free).
AVD: Nexus_5_API_23_x86 with 512MB RAM.
The complete errors log from Logcat is here:
http://pastebin.com/UReeY720
It starts with
09-04 23:02:09.902 0-945/? E/lowmemorykiller? Kernel does not support memory pressure events or in-kernel low memory killer
09-04 23:02:10.688 965-965/? E/perfprofd? unable to open configuration file /data/data/com.google.android.gms/files/perfprofd.conf
09-04 23:02:11.470 958-958/? E/? batterystats service unavailable!
09-04 23:02:11.470 958-958/? E/? batterystats service unavailable!
09-04 23:02:11.491 958-958/? E/? batterystats service unavailable!
and ends with
09-04 23:04:37.002 958-1286/? E/Drm? Failed to find drm plugin
09-04 23:04:40.318 1800-1828/com.google.process.gapps E/StrictMode? A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at java.util.zip.Inflater.<init>(Inflater.java:82)
at com.android.okhttp.okio.GzipSource.<init>(GzipSource.java:62)
at com.android.okhttp.internal.http.HttpEngine.unzip(HttpEngine.java:645)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:827)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:439)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:497)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)
at com.google.android.gms.http.GoogleHttpClient.a(SourceFile:811)
at com.google.android.gms.http.GoogleHttpClient.a(SourceFile:776)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:676)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:660)
at com.google.android.gms.auth.be.j.a(SourceFile:220)
at com.google.android.gms.auth.be.appcert.a.a(SourceFile:263)
at com.google.android.gms.auth.be.appcert.a.a(SourceFile:132)
at com.google.android.gms.auth.be.appcert.b.a(SourceFile:43)
at com.google.android.gms.auth.b.b.a(SourceFile:62)
at com.google.android.gms.auth.b.a.a(SourceFile:120)
at com.google.android.gms.auth.b.a.a(SourceFile:61)
at com.google.android.gms.auth.be.cron.AuthCronService.a(SourceFile:44)
at com.google.android.gms.gcm.al.run(SourceFile:135)
09-04 23:04:41.365 1743-2123/com.google.android.gms.persistent E/MDM? [93] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
(all this was just by initializing the AVD, I didn't run my app)
My app was working fine. I had to format my computer and phone. Now the keep app crashing. I'm using a web view to display youtube everything works fine until I try to switch to full screen then I get the errors. I don't know how to solve with this problem.
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ MountEmulatedStorage()
08-10 21:41:27.005 31363-31363/? E/Zygote﹕ v2
08-10 21:41:27.045 31363-31363/? E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
08-10 21:41:36.865 31363-31959/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = audio/mp4a-latm
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ onConfigureComponent mime.c_str() = video/x-vnd.on2.vp9
08-10 21:41:36.915 31363-31977/com.videowebviewtest.unknown.webview_video_test E/ACodec﹕ [OMX.google.vp9.decoder] storeMetaDataInBuffers failed w/ err -2147483648
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/chromium﹕ [FATAL:jni_android.cc(271)] Check failed: false.
08-10 21:41:45.915 31363-31363/com.videowebviewtest.unknown.webview_video_test A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 31363 (view_video_test)