ispysoftware/iSpy

Agent DVR: crash when opening photos

AMD-NICK opened this issue · 2 comments

I use agent dvr 4.5.2 via docker (but the problem started about half a year ago). For a long period of time I didn't log into agent until I ran out of space on my hard drive and accumulated a huge amount of videos and photos.

I wanted to clean up the photos, but the ispy just crashes when I open the page with them.

ispy-ispy-1 | Unhandled exception. Emgu.CV.Util.CvException: OpenCV: !buf.empty()
ispy-ispy-1 | at Emgu.CV.CvInvoke.CvErrorHandler(Int32 status, IntPtr funcName, IntPtr errMsg, IntPtr fileName, Int32 line, IntPtr userData)
ispy-ispy-1 exited with code 139

There are thousands of photos stored there and I can't clean them because of this error...

screenshot_2023-02-18_23.12.02.mp4

This looks like a disk/ io error to me, like opencv can't read the image or a file pointer is bad on the disk and it's taking down the process.
You can manually delete them though just delete the content from the drive
agent\Media\WebServerRoot\Media\video
and then the various camera directories are under that and the grabs/ photos are in there

I have 6 cameras. The /grabs files count 😮:
1 cam: 11940 files
2 cam: 3390 files
3 cam: 710 files
4 cam: 278 files
5 cam: 160 files
6 cam: 204 files

Deleted all unnecessary files and the problem has been fixed

I was worried that there would be some entries in the .db file about the screenshots, so I was scared to delete them