ThomasKaiser / sbc-bench

Simple benchmark for single board computers
BSD 3-Clause "New" or "Revised" License
675 stars 78 forks source link

ReadSoCTemp function error with Raspberry Pi OS #57

Closed cnxsoft closed 1 year ago

cnxsoft commented 1 year ago

I'm running SBC-Bench 0.9.9 in the latest Raspberry Pi OS on the Pi 4, and I get the following error in ReadSoCTemp due to a missing temporary file:

/home/pi/sbc-bench.sh: line 1378: /tmp/sbc-bench.sh.NPKM2L/soctemp: No such file or directory /home/pi/sbc-bench.sh: line 1379: [: -ge: unary operator expected

ThomasKaiser commented 1 year ago

Ok, this took a while to reproduce. Partly due to RPi Trading Ltd's moronic attempts to deal with their default user/password mess and then to realize what the problem is.

This only occurs when sbc-bench is waiting for CPU utilization and/or average load to settle and it gets stopped by [ctrl]-[c], right? Since then a remaining sbc-bench -m 5 process running in the background looses the file handle when the parent script has been stopped.

cnxsoft commented 1 year ago

Ah yes, I think I did press Ctrl+C because the script was waiting with CPU utilization stuck at 5%. I fixed that in my image and restarted the script shortly after.