Skip to content

[Bug]: termux-job-scheduler crashes? #4465

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

Open
iamgitcat opened this issue Mar 30, 2025 · 2 comments
Open

[Bug]: termux-job-scheduler crashes? #4465

iamgitcat opened this issue Mar 30, 2025 · 2 comments

Comments

@iamgitcat
Copy link

Problem description

Hello. I changed my custom ROM to Android 14 and termux-job-scheduler crashes after setting up a job.

~►termux-job-scheduler --script $HOME/bin/scheduler.sh --period-ms 7200000 --persisted true --network any --job-id 1 and than a crash happenes:

`## Report Info

User Action: plugin execution command
Sender: ResultReturner
Report Timestamp: 2025-03-30 13:35:42.120 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:259)
	at android.net.LocalSocket.connect(LocalSocket.java:162)
	at com.termux.api.util.ResultReturner.lambda$returnData$0(ResultReturner.java:243)
	at com.termux.api.util.ResultReturner$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.lang.Thread.run(Thread.java:1012)

Termux:API App Info (Current)

APP_NAME: Termux:API
PACKAGE_NAME: com.termux.api
VERSION_NAME: 0.51.0
VERSION_CODE: 1000
UID: 10650
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: true
SE_PROCESS_CONTEXT: u:r:untrusted_app_27:s0:c138,c258,c512,c768
SE_FILE_CONTEXT: u:object_r:app_data_file:s0:c138,c258,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.119.0-beta.2
VERSION_CODE: 1021
UID: 10650
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: true
SE_PROCESS_CONTEXT: u:r:untrusted_app_27:s0:c138,c258,c512,c768
SE_FILE_CONTEXT: u:object_r:app_data_file:s0:c138,c258,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.186-00093-g5fb7c4d6eefb-dirty
SDK_INT: 34
RELEASE: 14
ID: AP2A.240905.003
DISPLAY: AP2A.240905.003
INCREMENTAL: eng.mitja.20250319.014511
SECURITY_PATCH: 2025-03-01
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys
MAX_PHANTOM_PROCESSES: 32
MONITOR_PHANTOM_PROCS: true
DEVICE_CONFIG_SYNC_DISABLED: -

Hardware

MANUFACTURER: google
BRAND: google
MODEL: TrebleDroid with Slim GApps
PRODUCT: treble_arm64_bgN_slim
BOARD: tb8788p1_64_bsp
HARDWARE: mt8788
DEVICE: tdgsi_arm64_ab
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi

`

Steps to reproduce the behavior.

Setting up any job for termux-job-scheduler

What is the expected behavior?

Should just work?

System information

  • Termux application version: 0.119 beta 2
  • Android OS version: 14
  • Device model: T800
@chrismit3s
Copy link

chrismit3s commented Apr 16, 2025

Same when I run termux-job-scheduler --script ~/.shortcuts/tasks/sync-notes

Scheduling Job 0: /data/data/com.termux/files/home/.shortcuts/tasks/sync-notes  (battery not low) (network: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&TRUSTED&VALIDATED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 10383 UnderlyingNetworks: Null] ]) - response 1

Also note that I think the previous job I scheduled a long time ago stopped working with the last update I did, which also probably introduced this bug

@mmocnak
Copy link

mmocnak commented May 25, 2025

Same when I run termux-job-scheduler --script ~/.shortcuts/tasks/sync-notes

Scheduling Job 0: /data/data/com.termux/files/home/.shortcuts/tasks/sync-notes  (battery not low) (network: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&TRUSTED&VALIDATED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 10383 UnderlyingNetworks: Null] ]) - response 1

Also note that I think the previous job I scheduled a long time ago stopped working with the last update I did, which also probably introduced this bug

same here, after the last update scheduled jobs stoped working

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

No branches or pull requests

3 participants