Open codematrixer opened 4 days ago
If you run directly your command, and interrupt with Ctrl+c, how long does it take to terminate?
More than 1 second is unexpected.
Executing commands on the terminal is normal
Does it work better with SIGTERM?
Or with os.kill(process.pid, signal.SIGINT)
?
I've tried all this before, but it doesn't work.
I lowered the version to 2.3.1 and restored it
I cannot test right now, but FYI there is a --time-limit
option in scrcpy (but maybe you're doing something more complex).
This ’time-limit‘ does not meet my requirements. Could you test it when you have time? Thanks!
I justed tested your script on Linux with scrcpy 3.0 (just replacing time.sleep(30)
by time.sleep(5)
, it works perfectly.
Environment
Describe the bug
This problem has been bothering me for a long time, please help me, thank you!!
Record using the python3 script,when stops screen recording, it takes too long to release resources Sometimes it works normally, but the probability of it failing is quite high.
Log as follows:
python3 script