SvenVD / rpisurv

Raspberry Pi surveillance
https://rpisurv.net
GNU General Public License v2.0
626 stars 101 forks source link

Warn if gpu_mem is too low? #11

Closed puck closed 8 years ago

puck commented 8 years ago

I found I wasn't able to start more than 2 streams with the default gpu_mem setting. Perhaps having some logic that warns with a suitable warning if you fail to spawn additional streams? I only thought this might be an issue after looking at the README file.

SvenVD commented 8 years ago

Normally there should be some kind of error logged. Did you see something in the logs?

puck commented 8 years ago

The only error was something about not being able to connect to the remote server.

SvenVD commented 8 years ago

I added a warning in the logs when free gpu mem is too low : https://github.com/SvenVD/rpisurv/commit/3d3461c580aaab93c03b071e448d33f2d42edad3

Please check it out

puck commented 8 years ago

I set gpu_mem back to default, and I can confirm that the logging works beautifully and I now know exactly what is wrong!

Thank you.