MrPlusGH / NPlusMiner

NPlusMiner + GUI | NVIDIA/AMD/CPU miner | AI | Autoupdate | MultiRig remote management
GNU General Public License v3.0
172 stars 52 forks source link

Strange exception... Are there logs to get you more details? (was expecting a line number or a call stack... something.) #188

Open jchoover opened 3 years ago

jchoover commented 3 years ago

NPlusMiner ZPool Edition 8.1.0

Starting Cycle Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.

johnrando commented 3 years ago

i have this in my logs as well.

Google says that it's an error caused by trying to use the += operator on a PSObject array.

The text "Starting Cycle" is in Core.ps1 at Line 194. The nearest occurrence of += is on Line 315:

$PoolFilter = @()
$Config.PoolName | foreach {$PoolFilter+=($_+=".*")}
jchoover commented 3 years ago

But the line before is...

$Variables.StatusText = "Loading pool stats.." $PoolFilter = @() $Config.PoolName | foreach {$PoolFilter+=($_+=".*")} Do { $Tries++ $AllPools = if(Test-Path "Pools"){[System.Collections.ArrayList]::Synchronized(@(Get-SubScriptContent "Pools" -Include $PoolFilter)).Where({$_.Content -ne $Null}) | ForEach {$_.Content | Add-Member @{Name = $_.Name} -PassThru} | Where { $_.SSL -EQ $Config.SSL -and ($Config.PoolName.Count -eq 0 -or ($_.Name -in $Config.PoolName)) -and (!$Config.Algorithm -or ((!($Config.AlgoInclude) -or $_.Algorithm -in $Config.AlgoInclude) -and (!($Config.AlgoExclude) -or $_.Algorithm -notin $Config.AlgoExclude))) } } if ($AllPools.Count -eq 0) { $Variables.StatusText = "Waiting for pool data. retrying in 30 seconds.." Sleep 30 } } While ($AllPools.Count -eq 0 -and $Tries -le 3) $Tries = 0 $Variables.StatusText = "Computing pool stats.."

And we have:

`Starting Cycle Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.

Loading currencies rate from 'api.coinbase.com'.. Loading pool stats.. Computing pool stats.. Loading miners..`