Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANR from initializing Splunk #882

Open
ber4444 opened this issue Jul 19, 2024 · 3 comments
Open

ANR from initializing Splunk #882

ber4444 opened this issue Jul 19, 2024 · 3 comments
Labels
needs author feedback Waiting for additional feedback from the author

Comments

@ber4444
Copy link

ber4444 commented Jul 19, 2024

This is reported on prod from lower end devices such as by Motorola.

Stack trace:

          main (runnable):tid=1 systid=22938 
       at android.net.NetworkCapabilities.clearAll(NetworkCapabilities.java:357)
       at android.net.NetworkCapabilities.<init>(NetworkCapabilities.java:326)
       at android.net.NetworkCapabilities$1.createFromParcel(NetworkCapabilities.java:2389)
       at android.net.NetworkCapabilities$1.createFromParcel(NetworkCapabilities.java:2386)
       at android.net.NetworkRequest$1.createFromParcel(NetworkRequest.java:662)
       at android.net.NetworkRequest$1.createFromParcel(NetworkRequest.java:660)
       at android.os.Parcel.readTypedObject(Parcel.java:3947)
       at android.net.IConnectivityManager$Stub$Proxy.requestNetwork(IConnectivityManager.java:2472)
       at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4425)
       at android.net.ConnectivityManager.registerDefaultNetworkCallbackForUid(ConnectivityManager.java:4966)
       at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4933)
       at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4907)
       at io.opentelemetry.android.instrumentation.network.CurrentNetworkProvider.registerNetworkCallbacks(CurrentNetworkProvider.java:80)
       at io.opentelemetry.android.instrumentation.network.CurrentNetworkProvider.startMonitoring(CurrentNetworkProvider.java:66)
       at io.opentelemetry.android.instrumentation.network.CurrentNetworkProvider.createAndStart(CurrentNetworkProvider.java:44)
       at com.splunk.rum.RumInitializer.initialize(RumInitializer.java:106)
       at com.splunk.rum.SplunkRum.initialize(SplunkRum.java:103)
       at com.splunk.rum.SplunkRumBuilder.build(SplunkRumBuilder.java:333)

We are using v1.4 but in your changelog there is no mention of things that would address this in later releases either.

@ber4444
Copy link
Author

ber4444 commented Jul 19, 2024

I believe parts of your initializer should go to a thread that is different from the main thread.

@breedx-splk
Copy link
Contributor

Hey @ber4444 thanks for the report. Is this consistent or sporadic? I'd like to try recreating this with the emulator if you can give me a specific device type.

@breedx-splk breedx-splk added the needs author feedback Waiting for additional feedback from the author label Aug 6, 2024
@ber4444
Copy link
Author

ber4444 commented Aug 8, 2024

It's rare
Noticed on Motorola, e.g. Edge Plus 5G UW (2022)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs author feedback Waiting for additional feedback from the author
Projects
None yet
Development

No branches or pull requests

2 participants