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

termux-clipboard-set: ANR if left running #728

Open
Terrance opened this issue Oct 30, 2024 · 0 comments
Open

termux-clipboard-set: ANR if left running #728

Terrance opened this issue Oct 30, 2024 · 0 comments

Comments

@Terrance
Copy link

Problem description

If termux-clipboard-set is launched interactively (i.e. with an open stdin), it crashes after a minute and an Application Not Responding is logged. Plausibly this can happen for any API calls held open.

Steps to reproduce

$ termux-clipboard-set

(exit 0 after 1 minute)

ANR
ANR in com.termux.api
PID: 19193
Reason: Broadcast of Intent { flg=0x80010 cmp=com.termux.api/.TermuxApiReceiver (has extras) }
ErrorId: 9035ebba-fe91-4137-8db2-113cfa060170
Frozen: false
Load: 0.0 / 0.0 / 0.0
----- Output from /proc/pressure/memory -----
some avg10=0.16 avg60=0.29 avg300=0.26 total=4226554833
full avg10=0.03 avg60=0.08 avg300=0.06 total=1661117865
----- End output from /proc/pressure/memory -----
CPU usage from 20597ms to 0ms ago (2024-10-30 00:35:59.958 to 2024-10-30 00:36:20.555):
 ...
17% TOTAL: 8.6% user + 7.2% kernel + 0% iowait + 1.6% irq + 0.3% softirq
CPU usage from 979053254ms to 979053254ms ago (1970-01-01 01:00:00.000 to 1970-01-01 01:00:00.000) with 0% awake:
0% TOTAL: 0% user + 0% kernel
Killing 19193:com.termux.api/u0a291 (adj 250): bg anr
Completed ANR of com.termux.api in 163ms, latency 4ms

Expected behavior

No ANR, and the tool not to close early.

Does it need to wait for stdin to reach EOF before making the API call with the finished input?

Additional information

  • termux-api application version: 0.50.1
  • termux-api package version (installed through apt): 0.58.0
  • Android OS version: 13
  • Device model: OnePlus Nord CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant