termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.35k stars 461 forks source link

termux-camera-photo crashes the termux app #672

Open mr4dd opened 8 months ago

mr4dd commented 8 months ago

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
  2. 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

lp85d commented 5 months ago

termux-setup-storage termux-camera-info

Report issues at https://termux.dev/issues ~ $ termux-setup-storage ^C ~ $ termux-camera-photo frame.png

~ $ termux-camera-photo -c 0 /data/data/com.termux/files/home/photo.jpg ^C ~ $ pkg show termux-api Package: termux-api Version: 0.58.0-1 Maintainer: @termux Installed-Size: 348 kB Depends: bash, util-linux, termux-am (>= 0.8.0) Homepage: https://wiki.termux.com/wiki/Termux:API Download-Size: 25.0 kB APT-Manual-Installed: yes APT-Sources: https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 Packages Description: Termux API commands (install also the Termux:API app)

~ $ dpkg -s termux-api | grep Version Version: 0.58.0-1 ~ $