AI: not responding

BassTeQ

Young grasshopper
May 10, 2017
73
10
Hello,

I'm running CodeProject AI v2.9.5, and often see the error AI Not Responding at random times on some cameras. Does anyone know what the cause may be?

1738191756622.png

Thanks
 
Just looking at the log file, it appears that the AI module has just started 3 seconds prior to the error messages, it is likely that the AI was not fully started when an alert was sent to it! Was the server just restarted? You need to look at the event log prior to this and see if the AI module had crashed and automatically restarted or did you just restart the BI server prior to this happening!
 
Thanks, I did just start Blue Iris, and that it set to start the AI service, so hopefully thats what the cause was.
If it was due to a module crash or something with CodeProject AI, would this be reflected in the CP AI logs?

Cheers
 
You need to uncheck the option in BI to automatically start the AI process, it is no longer required and WILL cause you problems!
 
  • Like
Reactions: looney2ns
Thanks, I did just start Blue Iris, and that it set to start the AI service, so hopefully thats what the cause was.
If it was due to a module crash or something with CodeProject AI, would this be reflected in the CP AI logs?

Cheers
Yes you may also need to look the CPAI log files to see if there are any errors there
 
The issue came back, see the log at 4:19:58PM, AI not responding

1738217264974.png

No errors in CP AI logs around that time

1738217389096.png
 
You must have the log level set to trace or debug, I have the same entries in my log and I have no "Ai not responding" errors, it appears to me that these entries are all part of the regular operation of the AI, when you set the log level more than the default "information" logging level

I am not an expert in this by any means, so hopefully some other people can make some suggestion or correct what I am saying
 
Correction i went and looked further in my saved AI logs and did find a few instances of "not responding" on average it is happening 2 or 3 times a day in almost every case the BI log like this

3 2025-01-29 7:30:25.130 AM MyCam2 Re-triggered: Motion_A
2 2025-01-29 7:30:41.654 AM MyCam2 AI: not responding
0 2025-01-29 7:30:41.666 AM MyCam2 AI: Alert canceled [nothing found] 1287ms
3 2025-01-29 7:31:37.470 AM MyCam2 Triggered: Motion_A
0 2025-01-29 7:31:39.912 AM MyCam2 AI: [ipcam-combined] person:62% [2724,372 2829,533] 1175ms
0 2025-01-29 7:31:39.912 AM MyCam2 AI: person:62%
3 2025-01-29 7:31:39.912 AM MyCam2 Alerted

I am not sure if it is really is an issue or not!
 
Hi all,

Just sharing an update from Ken regarding this issue.

This is a very common symptom. My suggestions now you can share with the community:

- Update the AI package

- Try without any GPU options

- Double check security software exemptions for the BlueIris.exe and Python.exe

- Try an alternate YOLO module, and possibly discontinue of custom modules in turn to see if any of these are responsible

I am working now on a 6.0 feature (released in 5.9.9.x possibly this week) to offer a better status display of what the AI is encountering and to introduce throttling of how much is sent into the AI at once.

Cheers
 
  • Like
Reactions: aesterling