respeaker / get_started_with_respeaker

This is the wiki of ReSpeaker Core V2, ReSpeaker Core and ReSpeaker Mic Array.
260 stars 83 forks source link

How do I get the running program to stop? #208

Closed reality123 closed 6 years ago

reality123 commented 6 years ago

i just want to stop the running programe and quit if the programe run error,but all ways i tryed don't work on respeaker core v1.0,only force the putty 、 unplug the usb and change the port.I don't understand the meaning. take playmusic.py for example. 5dnl1ya2f 1i j hc6ii

xiongyihui commented 6 years ago

@reality123 The thread may be blocked, so the problem may be blocked at thread.join() I made some changes of the script, see https://github.com/respeaker/respeaker_python_library/blob/master/examples/playmusic.py

If ctrl+c still doesn't work, try ctrl+z to suspend the problem, run ps to find out which pid the program uses, then run kill -9 {PID} (replace the {PID} with yours) and fg

# ctrl + z
ps
kill -9 {PID}
fg
KillingJacky commented 6 years ago

Will close this issue, please open a new issue if you have further questions.