NetcamStudio.Service doesn't respect library limit and kills itself

Hi,

today I switched both servers that I am managing from the normal exe to the service. Steps I’ve took:

  • Shutdown the exe
  • Changed startup of the service to automatic
  • Started the service

On both servers I saw the following behaviour:

  • The service didn’t respect the max library size
  • The library filled the disk completely
  • The service crashed

What I did to resolve:

  • Manually deleted some files
  • Restarted the service
  • Changed library from E:\netcamstudio to C:\netcamstudio and back, to trigger reindex.

This can be found in the log file:

(Information @ 02:42:18.536 Source(1).StopRecording File recording completed for Recording_1_20161031_024206_267.mp4 (00:00:12.2687945). Took 31 ms
(Warning @ 02:42:51.361 Source(1).StartRecording Disk Space low on E [215 MB]. Recording cancelled.
(Information @ 02:42:54.095 NetcamVideoSource(2) Stream Event received [DeviceLost]
(Warning @ 02:42:54.189 NetcamVideoSource(2) Connection with rtsp://admin:xxxx@10.102.4.15:88/videoMain has been lost. Will try to reconnect in 500ms…
(Warning @ 02:43:14.798 Source(1).StopRecording Stop recording received [MotionDetector] while recording is already Stopped
(Information @ 02:43:15.956 NetcamVideoSource(1) Stream Event received [DeviceLost]
(Warning @ 02:43:16.033 NetcamVideoSource(1) Connection with rtsp://admin:xxxx@10.102.4.14:88/videoMain has been lost. Will try to reconnect in 500ms…
(Information @ 02:43:26.239 NetcamVideoSource(0) Stream Event received [DeviceLost]
(Warning @ 02:43:26.380 NetcamVideoSource(0) Connection with rtsp://admin:xxxx@10.102.4.13:88/videoMain has been lost. Will try to reconnect in 500ms…
(Warning @ 02:43:27.788 Source(1).StartRecording Disk Space low on E [173 MB]. Recording cancelled.
(Warning @ 02:43:54.627 Source(1).StopRecording Stop recording received [MotionDetector] while recording is already Stopped
(Warning @ 02:43:58.505 Source(1).StartReco(Information @ 04:28:10.609 ServiceHost Initializing Netcam Studio Service
(Information @ 04:28:10.625 Common:SetNoSleep SetThreadExecutionState succeeded. PC will not enter sleep mode during execution.
(Information @ 04:28:11.750 MoonwareServerWCF.Constructor Initializing MoonwareServerWCF
(Information @ 04:28:13.313 MoonwareCore.Constructor Initializing MoonwareServer

As you can seen on the bold line, it abruptly stops.

Some questions pop up:

  • Any reason why the service doesn’t respect the limit?
  • Why does the service crash? It should not be killing itself when it runs out of space

Also, a scheduled reindex of the library (or at startup) would be nice!

If desired, I can mail you the log files.

Thanks

Mitch

Hi Mitch,
Yes, it is a problem with this function. When it is 250MB or less space left on the HD NCS stops recording. There is a warning in the log “#(Warning @ 02:42:51.361 Source(1).StartRecording Disk Space low on E [215 MB]. Recording cancelled.”. This is a correct behavior, but it should of cause start deleting old files according to the limit. Why it works in NCS X and not when running as a Service I don´t know.
The problem was identified for some time ago and that part have now been rewritten. The new version have been under test for about a month and I have been using it for about 2 weeks. Important to know is that the function with the GB limitation only works when the HD have a drive letter like C: or E: or …

If you want to test the unofficial new version NCS 1.3.7.3 you can download it here. It´s the file that is just a few days old. Dropbox - NCS13 - Simplify your life

Thanks,
Henrik
@Steve

Hi,

ok. Thanks for the feedback. After reindex, the issue still occurs. I’ll try the testversion.