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

WebSocketConnection: IllegalArgumentException #3113

Closed
1 task done
genodeftest opened this issue Feb 6, 2019 · 2 comments
Closed
1 task done

WebSocketConnection: IllegalArgumentException #3113

genodeftest opened this issue Feb 6, 2019 · 2 comments

Comments

@genodeftest
Copy link

  • I have searched open and closed issues for duplicates

Bug Description

I don't see any buggy behaviour but I can see an exception in my syslogs.

Steps to Reproduce

  1. unclear
  2. get adb logcat

Actual Result:

Contains this backtrace:

02-06 22:59:38.673 12375 15972 W WebSocketConnection: java.lang.IllegalArgumentException: Receiver not registered: org.whispersystems.signalservice.api.util.RealtimeSleepTimer$AlarmReceiver@37e08ac
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 	at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1271)
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 	at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1516)
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 	at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:659)
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 	at org.whispersystems.signalservice.api.util.RealtimeSleepTimer.sleep(RealtimeSleepTimer.java:51)
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 	at org.whispersystems.signalservice.internal.websocket.WebSocketConnection$KeepAliveSender.run(WebSocketConnection.java:320)
02-06 22:59:38.673 12375 15972 W WebSocketConnection: 

Expected Result:

No exception

Screenshots

None.

Platform Info

Signal Version: 4.32.8
Operating System: Android 9.0

Link to Debug Log

Uploading a debug log fails and claims that there is a problem with my network. I can only find this backtrace in adb logcat but no additional useful info:

02-06 23:33:54.283 12375 17828 W ImageActivity: null
02-06 23:33:54.283 12375 17828 W ImageActivity: java.net.SocketTimeoutException: timeout
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.Okio$4.newTimeoutException(Okio.java:230)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.AsyncTimeout.exit(AsyncTimeout.java:285)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.AsyncTimeout$2.read(AsyncTimeout.java:241)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:187)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okhttp3.RealCall.execute(RealCall.java:77)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at org.thoughtcrime.securesms.logsubmit.SubmitLogFragment$SubmitToPastebinAsyncTask.doInBackground(SubmitLogFragment.java:433)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at org.thoughtcrime.securesms.logsubmit.SubmitLogFragment$SubmitToPastebinAsyncTask.doInBackground(SubmitLogFragment.java:398)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at android.os.AsyncTask$2.call(AsyncTask.java:333)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at java.lang.Thread.run(Thread.java:764)
02-06 23:33:54.283 12375 17828 W ImageActivity: Caused by: java.net.SocketException: socket is closed
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at com.android.org.conscrypt.ConscryptFileDescriptorSocket$SSLInputStream.read(ConscryptFileDescriptorSocket.java:551)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.Okio$2.read(Okio.java:139)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
02-06 23:33:54.283 12375 17828 W ImageActivity: 	... 27 more
@scottnonnenberg-signal
Copy link
Contributor

Please enter this in the Signal Android repository: https://github.com/signalapp/Signal-Android/issues

@genodeftest
Copy link
Author

This has already been reported in signalapp/Signal-Android#8402.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants