termux / termux/termux-api

termux-camera-photo crashes the termux app

Open
#672 1 comment 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

Problem description

I noticed that the termux app closes seemingly at random whenever I run the termux-camera-photo command, it usually happens a few seconds to a minute after the command is run.
The command does output an image as intended.

Steps to reproduce

  1. run
termux-camera-photo frame.png
  1. wait a few seconds to a minute.

Expected behavior
the app should take a photo and save it to frame.png and the app shouldn't close

Additional information

  • termux-api application version: 0.50.1
  • termux-api package version (installed through apt): 0.58.0-1
  • Android OS version: 12
  • Device model: M2101K7AG

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

Reproduce the crash by running termux-camera-photo frame.png on the reported Android 12 setup and waiting after the image is created. Start by tracing the termux-camera-photo command through the termux-api Android application; done means the photo is saved to frame.png and the Termux app remains open.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.