Skip to content

termux-battery-status, which uses termux-api, occasionally hangs, but not every time #861

@deltaremote3

Description

@deltaremote3

Problem description

If I run termux-battery-status repeatedly from commandline, it will eventually (maybe after 10 or 20 times) lock up and never return. I have to Ctrl-C.

I noticed this because I am using termux-battery-status for my tmux status bar, which refreshes occasionally, and it builds up hung processes in the process list. I have had to implement a script that runs hourly that does killall -v termux-api.

Steps to reproduce

Run termux-battery-status repeatedly in a shell.

Expected behavior

Should never lock up / hang.

Additional information

  • termux-api application version: 0.53.0, versionCode=1002, targetSdk=28, minSdk=24.
  • termux-api package version (installed through apt): 0.59.1-1
  • Android OS version: 16, GrapheneOS
  • Device model: Pixel 9 Pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions