VorlonCD/bi-aidetection

AITool crashes when adding cameras

Closed this issue · 1 comments

When I add camera's in this new version (2.5.44) the app crashes instantely.
It did work in 2.0.1036, but there I can't make a connection to telegram:
Could not upload image D:\aiinput\image.jpg to Telegram with chatid '': Invalid format. A valid token looks like "validId".;Parameter name: token [ArgumentException] (In ClsTriggerActionQueue.TelegramUpload:1354 > Bot.TelegramBotClient..ctor(String token, HttpClient httpClient)) | Error | AITOOLS.EXE | Deepstack_Objects:...

In event viewer I can see the following:
Faulting application name: AITool.exe, version: 2.5.44.8558, time stamp: 0x641cef7e
Faulting module name: System.Private.CoreLib.dll, version: 6.0.1623.17311, time stamp: 0xe759ebc4
Exception code: 0xc00000fd
Fault offset: 0x00000000001dfe6b
Faulting process id: 0x1a34
Faulting application start time: 0x01d9da9de762b335
Faulting application path: D:\AITOOL2_5_44\AITool.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.16\System.Private.CoreLib.dll
Report Id: df9ffee3-c8e3-4240-823b-cc0ccb2732e2
Faulting package full name:
Faulting package-relative application ID:

I ended up copying the config file from 2.0.1036 to the config folder of 2.5.44 so the camera's would be added, and now telegram also works.