2014-01-05, 17:13
(2014-01-05, 00:00)MilhouseVH Wrote: For anyone that is interested, I've uploaded another new version of bcmstat.sh that will monitor GPU free memory statistics with the "g" command line option. Tested on OpenELEC and Raspbian, hopefully it works on Rpasbmc (untested by me, the script shouldn't need to be run with sudo although it will use sudo to run vcdbg if required, which will only be called when the "g" option is specified).
I was running this (./bcmstat.sh c xg), "Version 0.0.3 - 4 Jan 2014" on your latest openelec build and got:
Code:
Traceback (most recent call last):
File "./bcmstat.sh", line 575, in <module>
main(sys.argv[1:])
File "./bcmstat.sh", line 563, in main
getGPUMem(GPU)
File "./bcmstat.sh", line 264, in getGPUMem
gpudata = vcdbg("reloc")[:512]
File "./bcmstat.sh", line 82, in vcdbg
return runcommand("%s%s %s" % (SUDO, VCDBGCMD, args))
File "./bcmstat.sh", line 55, in runcommand
return subprocess.check_output(command.split(" "), stderr=subprocess.STDOUT).decode("utf-8")[:-1]
File "./Lib/encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xcc in position 22066: invalid continuation byte