-
-
Notifications
You must be signed in to change notification settings - Fork 301
[Bug]: "Connection refused..." errors from logsender #1183
Comments
I don't think this is related to AndroidIDE. None of AndroidIDE components use JDWP. I'll look into the other issue you mentioned. |
I found out that if I turn on "USB Debugging" then the spamming errors stop. I don't remember seeing this as a requirement for using AndroidIDE (with app logs.) If docs for the IDE had it somewhere, I've apparently missed that. Even if AndroidIDE does not use JDWP as you've said, the app logs feature seems to require it, hence, it has something to do with the IDE then right? :) What if I prefered not to turn on USB Debugging? No other options? EDIT: |
Are you using LineageOS? This seems to happen in debug builds of LineageOS 18.1 (maybe newer as well?). Source.
On some devices, the logsender doesn't work if USB debugging is turned off ( |
The I'm not sure about the JDWP issue. It didn't occur on my test device. |
No, it's just a regular android 11, 64bit device with stock everything. I've also tried on another device by the same maker, only with Android 12, and USB debugging disabled. It didn't spam that JDWP Connection refused error. Maybe you could test and confirm that it (is / or not) the case, and possibly a fix? |
The message is being logged from the ADB connection client in the Android system. This is the line that prints the message. It uses the I don't think we could fix this from our side. EDIT: |
So could we confirm that it's Android 11 in general, or only this particular Android 11 that I have? |
Honestly, I don't know much about this. That piece of code seems to be included in the latest Android as well. There might some configuration issues with the AOSP build that is installed on your device which may be why you're seeing this error on that specific device. This issue can be closed in my opinion. |
Oh well... at least the other socket exception was noticed and got fixed. |
What happened?
v2.5.2-beta
App logs view is spamming with connection-refused errors.
From app logs:
08-05 11:48:47.163 25101 25101 D NetworkSecurityConfig_ No Network Security Config specified, using platform default
08-05 11:48:47.163 25101 25101 D NetworkSecurityConfig_ No Network Security Config specified, using platform default
...
08-05 11:48:47.403 25101 25101 I LogSender_ Connecting to log receiver
08-05 11:48:47.410 25101 25127 I LogSender_ Starting to read logs...
08-05 11:48:47.497 25101 25113 E ple.new252test_ failed to connect to jdwp control socket: Connection refused
08-05 11:48:48.248 25101 25113 E ple.new252test_ failed to connect to jdwp control socket: Connection refused
...
What's the expected behavior?
See actual log messages from the debug app
What version of AndroidIDE you're using?
v2.5.0 (debug builds)
Relevant log output
Duplicate issues
Code of Conduct
The text was updated successfully, but these errors were encountered: