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

com.microsoft.clarity.g.a$a.run java.net.SocketException - Software caused connection abort #724

Closed
dawon-swing opened this issue Dec 20, 2024 · 6 comments
Labels
apps Issues specific to Clarity Apps SDK

Comments

@dawon-swing
Copy link

If this is an issue you're seeing in https://clarity.microsoft.com please reach out to [email protected] with the details of your bug along with your project ID or a link to your project page.


For all other issues continue below:

Please also add all relevant labels from the list of existing ones.

Describe the bug
A clear and concise description of what the bug is.

com.microsoft.clarity.g.a$a.run
java.net.SocketException - Software caused connection abort

I recently integrated Clarity into my Android app, and an issue has been reported in Firebase Crashlytics. Unfortunately, there are no screenshots available, but I'll provide the stack trace first.

Image
stacktrace.txt

Repro Steps
If applicable, steps to reproduce the behavior.

Screenshots
If applicable, add screenshots to help explain your problem.

Project info
If this is an issue happening in a specific project,

  • Type: website/iOS/Android project
  • Website info: For website projects, include a link

Browser info:

  • OS: Windows/iOS/Android...
  • Browser: Edge/Chrome/Safari...
@ibradwan ibradwan added the apps Issues specific to Clarity Apps SDK label Dec 30, 2024
@ibradwan
Copy link
Collaborator

Thanks for reporting this issue. We’ve released a new version (3.0.2 for native Android & 4.0.5 for React Native) that should address this issue. Please give it a shot.

@felipeemoreno
Copy link

Thanks for reporting this issue. We’ve released a new version (3.0.2 for native Android & 4.0.5 for React Native) that should address this issue. Please give it a shot.

i had the same error Software caused connection abort whith the last version 4.0.5 for React Native.

java.net.SocketException: Software caused connection abort at java.net.SocketInputStream.socketRead0(SocketInputStream.java) at java.net.SocketInputStream.socketRead(SocketInputStream.java:118) at java.net.SocketInputStream.read(SocketInputStream.java:173) at java.net.SocketInputStream.read(SocketInputStream.java:143) at com.android.okhttp.okio.Okio$2.read(Okio.java:138) at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:213) at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307) at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301) at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197) at com.android.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:188) at com.android.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:129) at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:750) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.microsoft.clarity.C6.a.run at java.util.TimerThread.mainLoop(Timer.java:573) at java.util.TimerThread.run(Timer.java:523)

@ibradwan
Copy link
Collaborator

ibradwan commented Jan 6, 2025

Hi @felipeemoreno,

Thanks for sharing your feedback. A couple of questions to help us debug it:

  1. Is it consistent? If no, is there a pattern for it?
  2. Could you please share your project id and Android package name on [email protected]

Thanks for your cooperation!

@bolt-vikas
Copy link

Hi @ibradwan,

we’ve started observing a significant number of crashes logged in Firebase Crashlytics.
library version - 3.1.0

Crash log -
Fatal Exception: java.net.SocketException: Software caused connection abort
at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:118)
at java.net.SocketInputStream.read(SocketInputStream.java:173)
at java.net.SocketInputStream.read(SocketInputStream.java:143)
at com.android.okhttp.okio.Okio$2.read(Okio.java:138)
at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:213)
at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307)
at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301)
at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197)
at com.android.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:188)
at com.android.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:129)
at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:750)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
at com.google.firebase.perf.network.InstrURLConnectionBase.getResponseCode(InstrURLConnectionBase.java:197)
at com.google.firebase.perf.network.InstrHttpURLConnection.getResponseCode(InstrHttpURLConnection.java:92)
at com.microsoft.clarity.g.a.run(SourceFile:206)
at java.util.TimerThread.mainLoop(Timer.java:573)
at java.util.TimerThread.run(Timer.java:523)

will upgrading to 3.1.1 solve this exception?
We have already mailed the details to [email protected].

@dawon-swing
Copy link
Author

dawon-swing commented Jan 20, 2025

@ibradwan
Reproduced in 3.1.0

@ibradwan
Copy link
Collaborator

We've just released Android version 3.1.2 and React Native version 4.1.2 which include a fix for this issue. Thanks for your proactivity in reporting the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps Issues specific to Clarity Apps SDK
Projects
None yet
Development

No branches or pull requests

4 participants