termux / termux/termux-api

termux-dialog hangs

Open
#244 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

I'm having an issue with termux-dialog.
I'm running Android 6.0 on an Alcatel A466BG.

Here's how I can replicate the issue:

  1. Restart phone and start termux.

  2. Check that parts of termux-api are working by running the following
    $ termux-battery-status
    $ termux-notification --content "hello world"
    $ termux-toast "hello world"
    $ termux-tts-speak "hello world"
    $ termux-vibrate
    $ termux-dialog -l

  3. Encounter an issue by running
    $ termux-dialog

    This hangs, then an android popup screen states "Unfortunately, Termux:API has stopped".

    Dismiss this by clicking "report", then in termux use crtl-c to get a prompt.

  4. I can now rerun 2&3 above, with the same results (that is, even though android claims that Termux:API has stopped, the commands in part 2 still behave as expected, and termux-dialog still hangs with the same android popup screen.)

  5. After rerunning 2&3 several times, eventually termux-dialog hangs without the android popup screen showing up. After that, all the commands in 2 (except termux-dialog -l) hang (with no error messages).

    If I exit termux, clear the cache of termux (which doesn't appear to do anything), and clear the data of termux:api, and then restart termux, all the commands in 2 (except termux-dialog -l) still hang.

    If I restart the phone (as in 1), then all the commands in 2 work again.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure on Android 6.0 with termux-dialog and the other listed Termux:API commands, then compare the behavior before and after the phone restart. Trace the Termux:API entry point used by termux-dialog; done means the dialog opens without hanging or crashing and the other commands remain usable afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.