-
Notifications
You must be signed in to change notification settings - Fork 125
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
Randomly shortcut to bash script produces blank screen #48
Comments
Does it work better if you add a shebang to the script, i.e |
Script in question does have a shebang |
By default, widget session is immediately terminated. Use statement |
@xeffyr I believe you didn't understand the essence of a problem. There is no point putting anything in script. Nothing is actually launched. There seems to be some sort of a race condition that prevents session from starting |
@brushless-glitch What exactly you have? Session is immediately auto-closed/not-shown, or it is kept opened but nothing is printed? |
|
Ok, re-opening. |
Sidenote: |
@xeffyr I am open to helping you debug the issue. It happens from time to time, and as I said, I can open 2nd session and poke the process which failed to start. My phone is not rooted, so I can't do everything, but I can do some limited debugging |
Please confirm if its working for currently latest Termux app versions |
Android version: 9
Problem description
Randomly when I start bash script via shortcut, no script is run, but I am getting a blank screen.
I can type into said screen, but no reaction comes out of it. Ctrl+C, Ctrl+D, Ctrl+Z have no efect
Another session can be manually started and works normal
ps -e -F --forest
produces following:PID 29953 is the process which was supposed to be a script. It is possible to kill the process and that would be shown in termux UI.
ps -e -F H
reveals that 29953 has only one thread:Steps to reproduce
Expected behavior
script runs always
Additional information
Such problem happens randomly about 1 times out of 10; but only after device comes from idle. After 1st blank screen, the scripts are all starting up normally until device goes idle. Typically happens after device is idle for more than an hour. I have not found the way to reproduce the issue reliably.
I have seen this problem with previous versions as well
The text was updated successfully, but these errors were encountered: