hi,
with latest code the endless error loop still occurs:
Stop-Process : Cannot stop process "Idle (0)" because of the following error: Access is denied
At C:\miner\Forager\Include.ps1:128 char:17
+ Stop-Process -InputObject $Process -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (System.Diagnostics.Process (Idle):Process) [Stop-Process], ProcessCommandException
+ FullyQualifiedErrorId : CouldNotStopProcess,Microsoft.PowerShell.Commands.StopProcessCommand
Stop-Process : Cannot stop process "Idle (0)" because of the following error: Access is denied
last useful entries in logfile are
11:03:20.88 Info N-CcminerEnemy-1.12/X17/X17 with Power Limit 0 (id 34-0) for group NVIDIA is the best combination for device group, last was N-SuprMinerSP-4.0a/X16r/X16r with Power Limit 0 (id 84-0) for group NVIDIA
11:03:20.88 Info Killing in 0 sec. N-SuprMinerSP-4.0a/X16r/X16r with Power Limit 0 (id 84-0) for group NVIDIA with system process id 0
this happens after some time during the benchmarking which really takes forever and repeats on each restart since there are so many miners that fail -- most fail right at startup (close immedately after being started), and the script usually catches the failing miner -- but before the endless error loop happens it apparently doesn't detect that the miner process is not running, just sits there with 0% load until the interval ends and then goes into the loop described above.
Full log would be useful to identify why do we even get to such state, can you please post it as well?
Changed process launch and process kill logic to better handle errors. Available in last git repo commit