termux-fingerprint: Error in ResultReturner: java.io.IOException: Connection refused
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
When executing termux-fingerprint -t 'Unlock'
With this result:
{
"errors": [],
"failed_attempts": 3,
"auth_result": "AUTH_RESULT_SUCCESS"
}
After some consecutive runs of the same command, I start getting this result (alongside with Termux:API error notification):
{
"errors": [
"ERROR_TIMEOUT"
],
"failed_attempts": 2,
"auth_result": "AUTH_RESULT_SUCCESS"
}
Steps to reproduce
Run termux-fingerprint -t 'Unlock' 3-4 times in a row
Probably need to fail some unlock attempts
Expected behavior
There is no "ERROR_TIMEOUT" and no Termux:API error notifications
Additional information
- termux-api application version: 0.50.1+9e72088
- termux-api package version (installed through apt): 0.57
- Android OS version: 11
- Device model: Realme 7
Report Info
User Action: plugin execution command
Sender: ResultReturner
Report Timestamp: 2023-06-05 10:05:13.818 UTC
Termux:API Error
Error in ResultReturner:
java.io.IOException: Connection refused
at android.net.LocalSocketImpl.connectLocal(Native Method)
at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:262)
at android.net.LocalSocket.connect(LocalSocket.java:148)
at com.termux.api.util.ResultReturner.lambda$returnData$0(ResultReturner.java:161)
at com.termux.api.util.-$$Lambda$ResultReturner$1wMz46asegPELp1xyZuz-rva9E4.run(Unknown Source:8)
at java.lang.Thread.run(Thread.java:923)
Termux:API App Info (Current)
APP_NAME: Termux:API
PACKAGE_NAME: com.termux.api
VERSION_NAME: 0.50.1+9e72088
VERSION_CODE: 51
UID: 10258
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: true
SE_PROCESS_CONTEXT: u:r:untrusted_app_27:s0:c2,c257,c512,c768
SE_FILE_CONTEXT: u:object_r:app_data_file:s0:c2,c257,c512,c768
SE_INFO: default:targetSdkVersion=28:complete
APK_RELEASE: Github
SIGNING_CERTIFICATE_SHA256_DIGEST: B6DA01480EEFD5FBF2CD3771B8D1021EC791304BDD6C4BF41D3FAABAD48EE5E1
Termux App Info
APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.118.0+11d8e4f
VERSION_CODE: 118
UID: 10258
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: true
SE_PROCESS_CONTEXT: u:r:untrusted_app_27:s0:c2,c257,c512,c768
SE_FILE_CONTEXT: u:object_r:app_data_file:s0:c2,c257,c512,c768
SE_INFO: default:targetSdkVersion=28:complete
TERMUX_APP_PACKAGE_MANAGER: -
TERMUX_APP_PACKAGE_VARIANT: -
APK_RELEASE: Github
SIGNING_CERTIFICATE_SHA256_DIGEST: B6DA01480EEFD5FBF2CD3771B8D1021EC791304BDD6C4BF41D3FAABAD48EE5E1
Device Info
Software
OS_VERSION: 4.14.313-ThunderStorm-2.4
SDK_INT: 30
RELEASE: 11
ID: RP1A.200720.011
DISPLAY: RMX2155_11_C.19
INCREMENTAL: 1659782254370
SECURITY_PATCH: 2022-08-05
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys
Hardware
MANUFACTURER: realme
BRAND: realme
MODEL: RMX2155
PRODUCT: RMX2155RU
BOARD: RM6785
HARDWARE: mt6785
DEVICE: RMX2155L1
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing termux-fingerprint -t 'Unlock' three or four times, then inspect ResultReturner.java at line 161 where the reported connection failure occurs. Compare the successful and failing responses; done means repeated runs no longer produce ERROR_TIMEOUT or Termux:API error notifications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100