universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

"getReceivedNotificationsPacked" exception leading to log spam #80

Closed fayf closed 6 years ago

fayf commented 6 years ago

I'm getting some log spam related to the getReceivedNotificationsPacked call. This only starts happening when I initialize Facebook in my app. This happens roughly every 0.5s

AndroidJNI_CUSTOM_INTERNAL_CALL_NewStringUTF()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewStringUTF()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_CallStaticObjectMethod(0x347a, 0xe8c405fc
                   , 00003442
                   , 00000015
                   , 00000021
                   , 00000001
                   )
getMethodID("java.lang.Class", "forName", "(Ljava/lang/String;)Ljava/lang/Object;", static)
Class Class.forName(String);
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_FromReflectedMethod()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewStringUTF()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_CallStaticObjectMethod(0x3442, 0x70d70db0
                   , 00000019
                   )
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_GetObjectClass()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewGlobalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewGlobalRef()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewGlobalRef()
AndroidJNI_CUSTOM_DeleteGlobalRef()
AndroidJNI_CUSTOM_DeleteGlobalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewStringUTF()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_NewStringUTF()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_INTERNAL_CALL_CallStaticObjectMethod(0x347a, 0xe8c405fc
                   , 000040e2
                   , 00000011
                   , 00000025
                   , 00000001
                   )
getMethodID("universal.tools.notifications.Manager", "getReceivedNotificationsPacked", "()Ljava/lang/String;", static)
String Manager.getReceivedNotificationsPacked();
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_INTERNAL_CALL_FromReflectedMethod()
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_DeleteLocalRef()
AndroidJNI_CUSTOM_CallStaticStringMethod(0x40e2, 0xe857b09c)
AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred()
AndroidJNI_CUSTOM_DeleteGlobalRef()

I'm using the following plugin versions: UTNotifications - 1.7.1 Facebook - 7.10.1 Google Play Games Plugin for Unity - 0.9.50 Play Services Resolver - 1.2.61

And these are the libraries in my Assets/Plugins/Android:

animated-vector-drawable-25.3.1.aar
appcompat-v7-25.3.1.aar
cardview-v7-25.3.1.aar
com.android.support.animated-vector-drawable-25.3.1.aar
com.android.support.appcompat-v7-25.3.1.aar
com.android.support.cardview-v7-25.3.1.aar
com.android.support.customtabs-25.3.1.aar
com.android.support.support-compat-25.3.1.aar
com.android.support.support-core-ui-25.3.1.aar
com.android.support.support-core-utils-25.3.1.aar
com.android.support.support-fragment-25.3.1.aar
com.android.support.support-media-compat-25.3.1.aar
com.android.support.support-v4-25.3.1.aar
com.android.support.support-vector-drawable-25.3.1.aar
com.google.android.gms.play-services-auth-11.8.0.aar
com.google.android.gms.play-services-auth-api-phone-11.8.0.aar
com.google.android.gms.play-services-auth-api-phone-license-11.8.0.aar
com.google.android.gms.play-services-auth-base-11.8.0.aar
com.google.android.gms.play-services-auth-base-license-11.8.0.aar
com.google.android.gms.play-services-base-11.8.0.aar
com.google.android.gms.play-services-base-license-11.8.0.aar
com.google.android.gms.play-services-basement-11.8.0.aar
com.google.android.gms.play-services-basement-license-11.8.0.aar
com.google.android.gms.play-services-drive-11.8.0.aar
com.google.android.gms.play-services-drive-license-11.8.0.aar
com.google.android.gms.play-services-games-11.8.0.aar
com.google.android.gms.play-services-games-license-11.8.0.aar
com.google.android.gms.play-services-gcm-11.8.0.aar
com.google.android.gms.play-services-gcm-license-11.8.0.aar
com.google.android.gms.play-services-iid-11.8.0.aar
com.google.android.gms.play-services-iid-license-11.8.0.aar
com.google.android.gms.play-services-nearby-11.8.0.aar
com.google.android.gms.play-services-nearby-license-11.8.0.aar
com.google.android.gms.play-services-tasks-11.8.0.aar
com.google.android.gms.play-services-tasks-license-11.8.0.aar
com.google.games.gpgs-plugin-support-0.9.50.aar
customtabs-25.3.1.aar
ShortcutBadger-1.1.21.aar
support-vector-drawable-25.3.1.aar
utnotifications.aar
yuriy-universal-ivanov commented 6 years ago

Hi @fayf ,

It's not really an error: just Facebook SDK by default enables logging any native calls in Unity. There is no problem here, just ignore it. You can also disable it by setting the debug mode back to false: AndroidJNIHelper.debug = false;

See also https://forum.unity.com/threads/androidjni_custom_internal_call_exceptionoccurred-errors-when-calling-java-code-from-c.473412/

Best regards, Yuriy, Universal Tools team.

fayf commented 6 years ago

I see. I was thrown off by the AndroidJNI_CUSTOM_INTERNAL_CALL_ExceptionOccurred() line in the stack trace. Thanks for the clarification!