VorlonCD / bi-aidetection

Alarm system for Blue Iris based on Artificial Intelligence.
https://ipcamtalk.com/threads/tool-tutorial-free-ai-person-detection-for-blue-iris.37330/
GNU General Public License v2.0
203 stars 45 forks source link

When AITool gets overloaded, I get these errors and have to restart #213

Closed sea3pea0 closed 3 years ago

sea3pea0 commented 3 years ago

I'm on version AITool-VorlonCD-v2.0.988 and every now and then when it seems there is a lot of activity on several cameras I get these kinds of errors and the only way to stop the errors. Once the errors start they seem to keep coming until I restart AITool regardless of whether increased activity on the cameras continues or slows. I have a doodsai docker instance running as well as 2 deepstack docker instances. Let me know if any more context or logging is needed.

2021-03-24 11:47:17.220590|Error|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Object reference not set to an instance of an object. [NullReferenceException] (In ClsTriggerActionQueue.RunTriggers:296)|453976|1||20 2021-03-24 11:47:17.220590|Debug|AITOOLS.EXE|AddTriggerActionAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Action 'TelegramText' ADDED to queue. Trigger=True, Queued=True, Queue Count=2, Image=C:\BlueIris\AI-Input\camera_5_c.20210324_114712789.jpg|453977|2||20 2021-03-24 11:47:18.032808|Info|AITOOLS.EXE|TelegramText|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Waiting 5 seconds (telegram_cooldown_seconds)...|453978|2||19 2021-03-24 11:47:23.037554|Error|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Object reference not set to an instance of an object. [NullReferenceException] (In ClsTriggerActionQueue.RunTriggers:296)|453979|1||6 2021-03-24 11:47:23.037554|Debug|AITOOLS.EXE|AddTriggerActionAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Action 'TelegramText' ADDED to queue. Trigger=True, Queued=True, Queue Count=2, Image=C:\BlueIris\AI-Input\camera_5_c.20210324_114712789.jpg|453980|2||6 2021-03-24 11:47:23.865209|Info|AITOOLS.EXE|TelegramText|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Waiting 5 seconds (telegram_cooldown_seconds)...|453981|2||22 2021-03-24 11:47:28.867454|Error|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Object reference not set to an instance of an object. [NullReferenceException] (In ClsTriggerActionQueue.RunTriggers:296)|453982|1||21 2021-03-24 11:47:28.867454|Debug|AITOOLS.EXE|AddTriggerActionAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Action 'TelegramText' ADDED to queue. Trigger=True, Queued=True, Queue Count=2, Image=C:\BlueIris\AI-Input\camera_5_c.20210324_114712789.jpg|453983|2||21 2021-03-24 11:47:29.672327|Info|AITOOLS.EXE|TelegramText|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Waiting 5 seconds (telegram_cooldown_seconds)...|453984|2||22 2021-03-24 11:47:33.769093|Debug|AITOOLS.EXE|CancelActionJobQueueLoop|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|camera_2_c.20210324_114703198.jpg| Running cancel Action 'All' in queue for event 'Person-(87%)-431.3412864,57.9404856,493.0132672,239.7952944' for camera 'camera_2', after 30.4 seconds...|453985|2||14 2021-03-24 11:47:33.770094|Debug|AITOOLS.EXE|Trigger|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|None| MQTT Cancel event - [SummaryNonEscaped]='Person-(87%)-431.3412864,57.9404856,493.0132672,239.7952944', After replacement Topic='BlueIris/admin', Payload='flagalert=0&camera=camera_2&memo=(Canceled)'|453986|4||14 2021-03-24 11:47:33.770094|Debug|AITOOLS.EXE|PublishAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|None| MQTT: Sending topic 'BlueIris/admin' with payload 'flagalert=0&camera=camera_2&memo=(Canceled)' to server '192.168.1.3:1883'...|453987|5||11 2021-03-24 11:47:33.771093|Debug|AITOOLS.EXE|PublishAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|None| MQTT: ...Sent in 1ms, Reason: 'Success' (0 - '')|453988|5||14 2021-03-24 11:47:33.771093|Debug|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|camera_2_c.20210324_114703198.jpg| Cancel action 'All' has been removed due to event 'Person-(87%)-431.3412864,57.9404856,493.0132672,239.7952944' for camera 'camera_2'|453989|3||14 2021-03-24 11:47:33.771093|Debug|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_2|camera_2_c.20210324_114703198.jpg| Action 'All' done. Succeeded=True, Trigger=False, Queued=False, Queue Count=0 (Min=1,Max=2,Avg=2), Total time=30490ms (Min=1ms,Max=107388ms,Avg=15416ms), Queue time=30488 (Min=4ms,Max=107385ms,Avg=7255ms), Action Time=2ms (Min=2ms,Max=783ms,Avg=37ms), Image=C:\BlueIris\AI-Input\camera_5_c.20210324_114712789.jpg|453990|3||14 2021-03-24 11:47:34.687334|Error|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Object reference not set to an instance of an object. [NullReferenceException] (In ClsTriggerActionQueue.RunTriggers:296)|453991|1||5 2021-03-24 11:47:34.687334|Debug|AITOOLS.EXE|AddTriggerActionAsync|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_3|None| Action 'TelegramText' ADDED to queue. Trigger=True, Queued=True, Queue Count=2, Image=C:\BlueIris\AI-Input\camera_5_c.20210324_114712789.jpg|453992|2||5 2021-03-24 11:47:35.493300|Info|AITOOLS.EXE|TelegramText|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Waiting 5 seconds (telegram_cooldown_seconds)...|453993|2||22 2021-03-24 11:47:40.502832|Error|AITOOLS.EXE|RunTriggers|DOODS:xxx.xxx.xxx.xxx:XXXX|camera_1|None| Object reference not set to an instance of an object. [NullReferenceException] (In ClsTriggerActionQueue.RunTriggers:296)|453994|1||5

VorlonCD commented 3 years ago

I believe this should fix it: AITool-VorlonCD-v2.0.1014.zip

VorlonCD commented 3 years ago

OH and Greatest American Hero was an epic show for 10 year old me. It was past my bedtime so I had to record audio of the show with a tape recorder before we had a VCR

sea3pea0 commented 3 years ago

Thanks, I'll give that version a try. Haha we must be similar age because yeah I remember it coming on past my bed time too!

sea3pea0 commented 3 years ago

Thank you! Updating to AITool-VorlonCD-v2.0.1014.zip did the trick. That error hasn't shown up since