Meaning of these logcat messages - android

I got this error in Log but it doesn't prevent my app from processing and doesn't do any errors in app but i don't what's it
01-12 09:54:41.726 14988-15006/com.android.muslimstudios.bookstore W/EGL_emulation: eglSurfaceAttrib not implemented
01-12 09:54:41.731 14988-15006/com.android.muslimstudios.bookstore W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe0513980, error=EGL_SUCCESS
01-12 09:54:41.908 14988-15006/com.android.muslimstudios.bookstore D/OpenGLRenderer: endAllStagingAnimators on 0xe03c5a00 (RippleDrawable) with handle 0xe0dbe390
01-12 09:54:52.360 14988-14998/com.android.muslimstudios.bookstore W/art: Suspending all threads took: 9.121ms

None of those are errors. W/ is a warning; D/ is a debug message.
Pretty much any Android app will trigger those specific messages from time to time. Please ignore them.

If logcat gives you an error message, it will be E/ tag and red text

These are messages from the Android emulator and can be helpful in some situations. If you would like to filter these out, however, I would suggest (per here) only filtering out the Debug messages, and not the Warning or Error messages as those may be useful.
Prefix:
D/ - Debug
W/ - Warning
E/ - Error
For Android Studio Logcat logs:
Use the method recommended here in logcat but modify to ^(?!(D/EGL_emulation)) so that Warnings and Errors will still show.
For VSCode Debug Console logs:
Simply use a Filter exclusion string as !D/EGL_emulation.

Related

Blank screen with release mode, app does not start. Working fine in debug mode

I just created my release candidate with Android Studio in release mode and generating a signed apk. Everything fine, but when I test it in my device or other devices, the app starts and just shows a blank screen. No login screen, nothing.
The logs of the release version doesn't say anything to me. It's the first time that happens to me after 4 years of app development. I don't really understand what's going on.
I've also tried the rolling back to the version that we have in Google Play Store, same happens. Debug working fine, Release signed not working.
I tried it with another computer and another phone, same issues.
I will appreciate any help, because I never felt that lost.
These are the logs
09-13 17:27:07.837 16977-16977/? I/applabs.sharif: Late-enabling -Xcheck:jni
09-13 17:27:07.918 16977-16977/es.sharifyapplabs.sharify I/applabs.sharif: The ClassLoaderContext is a special shared library.
09-13 17:27:08.052 16977-16977/es.sharifyapplabs.sharify I/MultiDex: VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
Installing application
VM has multidex support, MultiDex support library is disabled.
09-13 17:27:08.080 16977-16977/es.sharifyapplabs.sharify D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 17:27:08.096 16977-16977/es.sharifyapplabs.sharify I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 17:27:08.138 16977-16977/es.sharifyapplabs.sharify I/CrashlyticsCore: Initializing Crashlytics 2.6.1.23
09-13 17:27:08.151 16977-16977/es.sharifyapplabs.sharify I/CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful
09-13 17:27:08.168 16977-16977/es.sharifyapplabs.sharify E/com.facebook.internal.a: getAttributionIdentifiers should not be called from the main thread
09-13 17:27:08.178 16977-17019/es.sharifyapplabs.sharify D/NetworkSecurityConfig: No Network Security Config specified, using platform default
09-13 17:27:08.276 16977-17002/es.sharifyapplabs.sharify I/FA: App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app es.sharifyapplabs.sharify
09-13 17:27:18.273 16977-17014/es.sharifyapplabs.sharify W/Fabric: Could not call getAdvertisingIdInfo on com.google.android.gms.ads.identifier.AdvertisingIdClient
09-13 17:27:18.274 16977-17014/es.sharifyapplabs.sharify W/Fabric: Could not call getId on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
09-13 17:27:28.333 16977-17014/es.sharifyapplabs.sharify W/Fabric: Could not call getAdvertisingIdInfo on com.google.android.gms.ads.identifier.AdvertisingIdClient
09-13 17:27:28.334 16977-17014/es.sharifyapplabs.sharify W/Fabric: Could not call isLimitAdTrackingEnabled on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
09-13 17:27:28.658 16977-17006/es.sharifyapplabs.sharify D/skia: --- Failed to create image decoder with message 'unimplemented'
09-13 17:27:29.907 16977-17006/es.sharifyapplabs.sharify W/CrashlyticsCore: Expected method missing: registerOnMeasurementEventListener
java.lang.NoSuchMethodException: parameter type is null
at java.lang.Class.getMethod(Class.java:2060)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at com.crashlytics.android.c.u.a(DefaultAppMeasurementEventListenerRegistrar.java:89)
at com.crashlytics.android.c.u.a(DefaultAppMeasurementEventListenerRegistrar.java:54)
at com.crashlytics.android.c.k.a(CrashlyticsController.java:1574)
at com.crashlytics.android.c.l.d(CrashlyticsCore.java:320)
at com.crashlytics.android.c.l.e(CrashlyticsCore.java:44)
at c.a.a.a.h.a(InitializationTask.java:63)
at c.a.a.a.h.a(InitializationTask.java:28)
at c.a.a.a.a.c.a$2.call(AsyncTask.java:311)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
09-13 17:27:38.083 16977-16996/es.sharifyapplabs.sharify E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
09-13 17:28:38.101 16977-16996/es.sharifyapplabs.sharify E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
09-13 17:30:08.126 16977-16996/es.sharifyapplabs.sharify E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
1) Invalidate Cache/Restart Android Studio.
2) Refresh Build completely, Sign Apk & test!
I just found the solution. Basically Facebook messed up again.
Related to the dependency in gradle.
App getting stuck with E/com.facebook.internal.AttributionIdentifiers

What is causing E/BufferItemConsumer error messages in Android Studio logcat?

When debugging my android app, the Android Studio logcat window is flooded with dozens and dozens of identical BufferItemConsumer errors on every click. This is regardless of using the emulator or a physical device.
08-13 18:15:44.497 6005-6005/org.xx.debug E/BufferItemConsumer: [unnamed-6005-129] Failed to release buffer: Unknown error -1 (1)
08-13 18:15:44.499 6005-6005/org.xx.debug E/BufferItemConsumer: [unnamed-6005-130] Failed to release buffer: Unknown error -1 (1)
08-13 18:15:44.502 6005-6005/org.xx.debug E/BufferItemConsumer: [unnamed-6005-131] Failed to release buffer: Unknown error -1 (1)
AS claims the messages are related to the app but no other information is provided in the logs. A google search doesn't turn up anything either.
Any idea where I should start searching to either fix whatever underlying error causes this is or at least suppress the messages? They are more than a nuisance since they crowd out any meaningful log message.

Fatal Signal 31 error when upgrading android app from API 24 to 26

I am getting this error -
A/libc: Fatal signal 31 (SIGSYS), code 1 in tid 4168 (m.messagingdapp)
When I upgrade my app from API 24 to 26 (have to do to get java.nio.file features). It is the only error that I can see in my logcat. It works fine when running with API 24. It gets the error when accessing an API I'm using called go-ethereum on this line -
String f = this.getFilesDir() + "/.ethereum";
Long n = Geth.LightScryptN;
Long p = Geth.LightScryptP;
AccountManager am = Geth.newAccountManager(f, n, p); //HERE
There seem to be lots of other errors on different parts of the logcat in the drop down menu i.e system_process. However, I am new to android and don't really know what I am looking for (I have googled all of them separately but have gotten no fix). Thanks.
Full lolcat -
07-25 22:17:14.774 9625-9625/? I/zygote: Not late-enabling -Xcheck:jni
(already on)
07-25 22:17:14.825 9625-9625/? W/zygote: Unexpected CPU variant for X86
using defaults: x86
07-25 22:17:15.181 9625-9625/benkrarup.ethereum.messagingdapp W/zygote:
Class android.support.v4.util.SimpleArrayMap failed lock verification
and will run slower.
07-25 22:17:15.181 9625-9625/benkrarup.ethereum.messagingdapp W/zygote:
Common causes for lock verification issues are non-optimized dex code
07-25 22:17:15.181 9625-9625/benkrarup.ethereum.messagingdapp W/zygote:
and incorrect proguard optimizations.
07-25 22:17:15.184 9625-9625/benkrarup.ethereum.messagingdapp W/zygote:
Class cz.msebera.android.httpclient.conn.util.PublicSuffixMatcherLoader
failed lock verification and will run slower.
07-25 22:17:15.191 9625-9625/benkrarup.ethereum.messagingdapp
D/NetworkSecurityConfig: No Network Security Config specified, using
platform default
07-25 22:17:15.216 9625-9625/benkrarup.ethereum.messagingdapp
W/Java7Support: Unable to load JDK7 types (annotations,
java.nio.file.Path): no Java7 support added
07-25 22:17:15.596 9625-9657/benkrarup.ethereum.messagingdapp A/libc:
Fatal signal 31 (SIGSYS), code 1 in tid 9657 (m.messagingdapp)
Android 8 O (SDK 26) limits which system calls are allowed for security reasons by enabling a feature called secure computing in the Linux kernel.
This means only whitelisted calls can be executed and that any other call will result in signal 31 (SIGSYS), code 1 (SYS_SECCOMP), like you are experiencing. You will need to examine the stack trace of this signal to find out which system call was not allowed (which was not listed completely in your question).
You can find a list of allowed calls here. Any other call is not allowed.
You can find what Google wrote about this here.

Android app force stop on modelBatch.render

I'm trying to render a model in libgdx - everything runs perfectly on the desktop, but on android force stop on modelBatch.render(poleInstance, environment);
Log:
03-30 16:37:40.317 5249-5249/? E/cutils-trace﹕ Error opening trace file: No such file or directory (2)
03-30 16:37:42.621 5269-5269/? E/cutils-trace﹕ Error opening trace file: No such file or directory (2)
03-30 16:37:46.181 5283-5283/com.badlogic.gdx.tests E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from GradienCache
03-30 16:37:46.209 5283-5283/com.badlogic.gdx.tests E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
03-30 16:37:46.533 5283-5297/com.badlogic.gdx.tests E/EGL_genymotion﹕ [getAttribValue] Bad attribute idx
03-30 16:37:46.533 5283-5297/com.badlogic.gdx.tests E/EGL_genymotion﹕ tid 5297: eglGetConfigAttrib(605): error 0x3004 (EGL_BAD_ATTRIBUTE)
03-30 16:37:46.533 5283-5297/com.badlogic.gdx.tests E/EGL_genymotion﹕ [getAttribValue] Bad attribute idx
03-30 16:37:46.533 5283-5297/com.badlogic.gdx.tests E/EGL_genymotion﹕ tid 5297: eglGetConfigAttrib(605): error 0x3004 (EGL_BAD_ATTRIBUTE)
03-30 16:37:46.825 5283-5297/com.badlogic.gdx.tests E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 168
com.badlogic.gdx.utils.GdxRuntimeException: File not found: com/badlogic/gdx/graphics/g3d/shaders/default.vertex.glsl (Classpath)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:134)
at com.badlogic.gdx.backends.android.AndroidFileHandle.read(AndroidFileHandle.java:78)
at com.badlogic.gdx.files.FileHandle.length(FileHandle.java:548)
at com.badlogic.gdx.backends.android.AndroidFileHandle.length(AndroidFileHandle.java:167)
at com.badlogic.gdx.files.FileHandle.estimateLength(FileHandle.java:229)
at com.badlogic.gdx.files.FileHandle.readString(FileHandle.java:194)
at com.badlogic.gdx.files.FileHandle.readString(FileHandle.java:187)
at com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.getDefaultVertexShader(DefaultShader.java:409)
at com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.<init>(DefaultShader.java:504)
at com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.<init>(DefaultShader.java:500)
at com.badlogic.gdx.graphics.g3d.utils.DefaultShaderProvider.createShader(DefaultShaderProvider.java:46)
at com.badlogic.gdx.graphics.g3d.utils.BaseShaderProvider.getShader(BaseShaderProvider.java:34)
at com.badlogic.gdx.graphics.g3d.ModelBatch.render(ModelBatch.java:269)
at com.badlogic.gdx.tests.PathTest.render(PathTest.java:221)
at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:391)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
03-30 16:37:51.401 5283-5283/com.badlogic.gdx.tests E/AndroidGraphics﹕ waiting for pause synchronization took too long; assuming deadlock and killing
03-30 16:37:51.521 475-517/system_process E/InputDispatcher﹕ channel '528ce2b4 com.badlogic.gdx.tests/com.badlogic.gdx.tests.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
Yes, my question is similar to this, but updating the library didn't helped
And yes, file com/badlogic/gdx/graphics/g3d/shaders/default.vertex.glsl in place
My code place here
The error is File not found, so apparently it cannot find the file. If you are sure the file is included, this might be caused by duplicate references (although it doesn't have to). For example if you include (and export) the gdx library in both your core and android project. You could check this by right clicking each project, click on Java Build Path and then the Order and Export tab. Make sure that the gdx project (or jar, depending if you work from source or nightly/stable) is only included (and exported by clicking the checkbox) in the core project.
However, having assets (which the shader files are) on the classpath is merely to support out-of-box rendering for libgdx. In your case would advise to copy the shader files to (a subfolder of) your assets folder and use those instead. That makes managing your assets a lot cleaner. You can load the shaders using the constructor of ModelBatch, e.g.:
modelbatch = new ModelBatch(Gdx.files.internal("data/default.vertex.glsl"), Gdx.files.internal("data/default.fragment.glsl"));
Of course, you still might want to double check your project configuration.
Please install Arm Transition on your Genymotion Emulator
Here is a detailed guide on How to install this transition :
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
I hope this helps.

egl_emulation eglsurfaceattrib not implemented error in android application

I am getting the following error in console logs:
egl_emulation eglsurfaceattrib not implemented
I am not able to see what I am drawing using Draw function.
I have tried changing manifest file, adding library. But no luck.

Categories

Resources