-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AI Tool crashed with a System Error warning about a buffer overrun #345
Comments
I've never seen the message above. Maybe unrelated, but I would force a Windows Update and reboot if you have not recently done so. Also I posted a new version 3 weeks ago with a bunch of changes including updated 2 3rd party nuget packages that fixed a few security vulnerabilities that you might want to update: You might find more detail related to the crash if you go to Start > Event Viewer > Application and look for anything related near the time of the error. But it is a good point about the RAM usage constantly increasing. Mine had been running for about a week and was @ 500 mb ram usage (private bytes). When I restarted it was 147 mb. Let me see if I can figure out why it creeps up. Still nothing like blueiris @ 5000 mb or firefox at 15000 mb :) |
…istakenly caching every single image processed in memory for at least an HOUR. Which can be a large amount of ram with multiple cameras, 4k, etc. #345
…istakenly caching every single image processed in memory for at least an HOUR. Which can be a large amount of ram with multiple cameras, 4k, etc. VorlonCD/bi-aidetection#345
I am sorry for the long delay in getting back! I noticed some slowdown in UI3 so I checked my system and saw this. I see a newer version was posted 2 weeks ago, I'll install that now and I will monitor. It may take a few weeks to see if it happens again as the last time I saw it was when I posted this issue initially. |
Good Evening, I've been running v 2.6.54.8856 for awhile now and it seems the issue of it slowly increasing memory usage until a crash appears to mostly be gone but I am still concerned about the high memory usage. This screenshot is after about 23 days of uptime, I check on it every few weeks (as there are some instances of the queue hitting max and throwing errors due to a large quantity of triggers) and so far I haven't seen it raise much more than this image. But even with AI Tool idle I never see it drop bellow this without closing and reopening it manually. Once I do it'll be ~200MB and slowly raise as it processes images but never dropping. |
I'm not saying there isnt still a memory leak somewhere but I did hunt quite a while for it. I had it going 4 days, just looked and it was 1gb. As soon as I opened the UI and clicked around it dropped to 300mb. Task manger > Details tab > 'Peek working set' column is 1.3 GB for me. Interestingly my BI is 5GB while yours is <3GB. Maybe because I do full time recording, not just on movement. I have only 5 cameras, 2 of them are 4k and my A few thoughts:
|
I really appreciate your time and getting back with these details.
I understand, though it seems to be way better than before. For now I rarely see it using more than 3 or 4GBs. I will see if any of the other advice can help lower this.
This seems to be about the same for me. It takes a few weeks to get as high as you see in the previous screenshot.
I did not know of this option, thank you! I enabled it and will keep an eye out.
I only have 8 "cameras" active, 4 of which are SD feeds that are recorded at all times, the other four are the HD streams of the same 4 previously but only recorded when AI Tool triggers. And 2 of those are only actively sending images to AI Tool when we are away from home. BI really only needs RAM for pre-trigger video buffer.
Marginally slower and isolating stuff like RAM ensures it doesn't run out of control and take down my entire server. In this case a VM is a better choice IMO.
I do have my outside cameras masked off within BI to not trigger without it being in specific areas of interest.
Unfortunately I won't have many options for creating more servers. Originally when I used DeepStack I would run 3 instances but even 2 instances starts to show diminishing returns when using a single GPU. When I switched to CodeProject.AI I never bothered to attempt to run multiple instances as I don't think it'll help any.
I only have |
I'm working on a version that allows the built in queuing feature of CPAI to work correctly. This will be better than using multiple instances of deepstack. I only just found out about it a few weeks ago. Its kind of like running multiple versions of deepstack but cpai spreads the work out between threads, GPU's and MODULES you have installed. So in my case having 3 modules (yolo.net, yolov5, yolov8 for example) installed vs 1 makes the built in benchmark much faster ( When queuing is working correctly, CPIA "MESH" feature should also work correctly (instances on multiple machines can talk to each other if you enable mesh) |
I found AI Tools was forced closed today with the following error displayed;
"The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application."
I have seen instances of the RAM usage constantly increasing until it locks up the system, though this is rare and can take months. I was waiting for an example of it happening again before posting an issue but this is the first time I have seen this kind of error. I do not know if it is related. The program reopened and is functioning normal so far.
The text was updated successfully, but these errors were encountered: