OneSignal / OneSignal-Unity-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Unity app with OneSignal. https://onesignal.com
Other
222 stars 61 forks source link

[Bug]: JNI ERROR (app bug): global reference table overflow #698

Closed Hyuse69 closed 8 months ago

Hyuse69 commented 8 months ago

What happened?

The application crash after a few minute.

Steps to reproduce?

Install the latest version of One Signal (5.0.6).

What did you expect to happen?

That the app don't crash.

Unity version

2022.3.8f1

OneSignal Unity SDK version

5.0.6

Platform

Android

Relevant log output

02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702] JNI ERROR (app bug): global reference table overflow (max=51200)global reference table dump:
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]   Last 10 entries (of 51200):
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51199: 0x12e59e70 java.lang.Class<com.onesignal.user.internal.PushSubscription>
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51198: 0x12fe5ea0 com.onesignal.user.internal.PushSubscription
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51197: 0x12e59e70 java.lang.Class<com.onesignal.user.internal.PushSubscription>
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51196: 0x12fe5ea0 com.onesignal.user.internal.PushSubscription
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51195: 0x12e59e70 java.lang.Class<com.onesignal.user.internal.PushSubscription>
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51194: 0x12fe5ea0 com.onesignal.user.internal.PushSubscription
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51193: 0x12e59e70 java.lang.Class<com.onesignal.user.internal.PushSubscription>
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51192: 0x12fe5ea0 com.onesignal.user.internal.PushSubscription
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51191: 0x12e59e70 java.lang.Class<com.onesignal.user.internal.PushSubscription>
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     51190: 0x12fe5ea0 com.onesignal.user.internal.PushSubscription
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]   Summary:
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     25783 of java.lang.Class (480 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]     25095 of com.onesignal.user.internal.PushSubscription (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        36 of java.lang.String (35 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        32 of com.android.billingclient.api.SkuDetails (32 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        18 of android.app.LoadedApk$ServiceDispatcher$InnerConnection (18 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        14 of android.app.LoadedApk$ReceiverDispatcher$InnerReceiver (14 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        14 of android.database.ContentObserver$Transport (14 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        12 of com.google.firebase.MessagingUnityPlayerActivity (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]        12 of java.lang.ref.WeakReference (12 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         6 of com.android.billingclient.api.SkuDetailsParams$Builder (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         6 of java.util.ArrayList (6 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         5 of com.android.billingclient.api.BillingResult (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         5 of dalvik.system.PathClassLoader (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         5 of android.app.LoadedApk$ServiceDispatcher$DeathMonitor (5 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         4 of com.unity3d.ads.metadata.MetaData (4 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         4 of android.os.Handler (4 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         4 of android.os.Binder (4 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         4 of android.content.ContentProvider$Transport (4 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of com.android.billingclient.api.BillingClient$Builder (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of $Proxy4 (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of org.chromium.mojo.system.impl.WatcherImpl (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of WV.u9 (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of android.os.Handler$MessengerImpl (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         3 of android.os.ResultReceiver$MyResultReceiver (3 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of java.util.Locale (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.content.Intent (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.view.ThreadedRenderer$WebViewOverlayProvider (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.hardware.display.DisplayManager (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.telephony.TelephonyManager$DeathRecipient (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.view.Display (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.view.ViewRootImpl$1 (1 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of org.chromium.base.JavaHandlerThread (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of WV.nd (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of com.android.billingclient.api.SkuDetailsParams (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of java.lang.ThreadGroup (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of dalvik.system.DexClassLoader (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.opengl.EGLContext (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.opengl.EGLDisplay (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.opengl.EGLSurface (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of com.android.internal.util.SyncResultReceiver (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         2 of android.view.ViewRootImpl$W (2 unique instances)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy2
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy3
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy5
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy6
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy7
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy8
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of m.cz
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.hardware.input.InputManagerGlobal$InputDevicesChangedListener
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy9
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy10
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of $Proxy11
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity.androidnotifications.UnityNotificationManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.debug.internal.DebugManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.debug.LogLevel
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.session.internal.SessionManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.user.internal.UserManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.notifications.internal.NotificationsManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.inAppMessages.internal.InAppMessagesManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.onesignal.location.internal.LocationManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.adjust.sdk.AdjustConfig
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.adjust.sdk.LogLevel
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.ui.base.WindowAndroid
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.net.NetworkChangeNotifier
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.android_webview.AwContentsLifecycleNotifier
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.ChildProcessLauncherHelperImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.components.policy.CombinedPolicyProvider
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.ui.gfx.ViewConfigurationHelper
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.UiModeManager$Globals
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of WV.dc
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.components.policy.PolicyConverter
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.net.NetworkActiveNotifier
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.net.ProxyChangeListener
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.AttributionOsLevelManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of WV.jM
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of WV.Mv
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.android_webview.AwBrowserContext
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.android_webview.AwCookieManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of WV.U7
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.framehost.NavigationControllerImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.webcontents.WebContentsImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.ui.base.EventForwarder
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.components.viz.service.frame_sinks.ExternalBeginFrameSourceAndroid
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.android_webview.gfx.RootBeginFrameSourceWebView
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.webcontents.WebContentsObserverProxy
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.media.AudioManagerAndroid
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.content.browser.ContentNfcDelegate
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of org.chromium.device.time_zone_monitor.TimeZoneMonitor
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.android.billingclient.api.BillingClientImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.google.android.gms.common.internal.zzd
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.google.android.gms.internal.appset.zzo
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity3d.player.UnityPlayer
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity3d.player.PlayAssetDeliveryUnityWrapper
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.google.firebase.FirebaseApp
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity3d.player.a
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity3d.player.Camera2Wrapper
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of com.unity3d.player.HFPStatus
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of dalvik.system.VMRuntime
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.location.LocationManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.media.AudioManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.media.MediaRouter
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.Choreographer
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.SharedPreferencesImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.ContextImpl$ApplicationContentResolver
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.hardware.input.InputManager
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.os.Build
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.util.DisplayMetrics
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of int[] (16 elements)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of float[] (16 elements)
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of java.lang.Boolean
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.Dialog
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.SharedPreferencesImpl$EditorImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.ActivityThread$3
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.app.ActivityThread$ApplicationThread
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.content.ClipboardManager$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.graphics.HardwareRenderer$ProcessInitializer$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.hardware.display.DisplayManagerGlobal$DisplayManagerCallback
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.media.MediaRouter$Static$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.media.MediaRouter$Static$Client
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.os.HandlerThread
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.os.PersistableBundle$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.os.SystemVibrator
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.os.PowerManager$3
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.WindowManagerGlobal$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.accessibility.AccessibilityManager$1
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.autofill.AutofillManager$AutofillManagerClient
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.inputmethod.InputMethodManager$2
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.view.inputmethod.RemoteInputConnectionImpl
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper
02-16 14:12:18.464 19218 19278 F es.millionlords: java_vm_ext.cc:702]         1 of android.window.WindowTokenClient

Code of Conduct

Hyuse69 commented 8 months ago

We found the issue, we displayed One Signal status with OnGUI. That was the cause of the overflow.