Stopping the engine on Windows stops the whole engine
The installer runs the engine as <venv>\Scripts\python.exe, and since Python 3.7.2 that file is a redirector that spawns the real interpreter as a child. Stop() terminated the redirector and left the interpreter - the process holding the cameras and the SQLite WAL - running with no parent and nothing able to stop it. Seen on a Windows install: Quit from the tray, and recognition still running. The child is now started suspended, placed in a job object with KILL_ON_JOB_CLOSE, and resumed. Cancel terminates the job, so the whole tree goes; and the job dies with this process, so it goes even if the app crashes. CREATE_NO_WINDOW while here: python.exe is a console program and a GUI parent otherwise opens a black console on the shop counter. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KGcjxF1cNLcuwc3DAPcnfj
This commit is contained in:
@@ -6,3 +6,5 @@ golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
|
||||
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
|
||||
Reference in New Issue
Block a user