Closed strxno closed 3 years ago
If I uninstall Blue Iris it starts. Really weird. Maybe some camera setup I've done makes it crash? Fresh install of Blue Iris and 1 camera added results in ai tools crashing at the same spot.
Faulting application name: AITool.exe, version: 2.0.955.7745, time stamp: 0x60500a1e Faulting module name: KERNELBASE.dll, version: 10.0.19041.804, time stamp: 0x0e9c5eae Exception code: 0xe0434352 Fault offset: 0x000000000002d759 Faulting process ID: 0x7df0 Faulting application start time: 0x01d71df8cb35eae8 Faulting application path: D:\aitool\AITool.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report ID: 0ee6ac4d-a0ba-48e5-a2b1-0c8110672b27 Faulting package full name: Faulting package-relative application ID:
Application: AITool.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
at System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
at AITool.Global_GUI.InvokeIFRequired(System.Windows.Forms.Control, System.Windows.Forms.MethodInvoker)
at AITool.Shell+
It is trying to read the blue iris list of valid usernames but returning 0. Either you have no users configured in BI or BI changed the way they store the user info. I think I read a release update note that there was a way to store the passwords encrypted now, maybe if you enabled that feature it could interfere in an unexpected way?
The checkbox in settings is not ticked, so I assume it's not enabled. I just tried all the available versions going back to april 2020 and got the same result. This is with a fresh install and one user and one camera added.
Hmm managed to get it running via Visual Studio somehow (I can't replicate it on another PC) by opening the .exe and importing shell.cs.
Got error while reading BlueIris registry: Input string was not in a correct format. [FormatException] (In BlueIris.RefreshBIInfoAsync:312 > StringExtensions.ToDouble(String value):127)
Found the solution. At least one non-default user has to be an Administrator. After looking at the source code I finally understood how you were gathering the info.
ahh great! But maybe I was mistaken to assume that only admin users could 'trigger' url events?
I'm no longer sure if this was the issue to be honest. I tried to replicate the same setup with my laptop and it worked just fine without any admin user. Must be some combination of software/updates that makes the app crash when it does registry requests.
Also the last error you posted happened while trying to read the latitude and longitude from blue iris registry. (Settings > schedule tab). It is for use with the new sunrise-sunset time range feature in AITOOL. So maybe you didnt have that set in BI?
Seems that every version after the latest stable just crashes immediately after showing the loading screen. What could be the issue?
Log file: Date|Level|Source|Func|AIServer|Camera|Image|Detail|Idx|Depth|Color|ThreadID 2021-03-21 10:39:44.843976|Info|AITOOLS.EXE|InitializeBackend|None|None|None||16|0||5 2021-03-21 10:39:44.843976|Info|AITOOLS.EXE|InitializeBackend|None|None|None||17|0||5 2021-03-21 10:39:44.843976|Info|AITOOLS.EXE|InitializeBackend|None|None|None||18|0||5 2021-03-21 10:39:44.843976|Info|AITOOLS.EXE|InitializeBackend|None|None|None|Starting AITool Version 2.0.989.7749 built on 21/03/2021 03:20:54|19|0||5 2021-03-21 10:39:44.846977|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Installed NET Framework version '4.8.0', Target version '.NETFramework,Version=v4.7.2'|20|0||5 2021-03-21 10:39:44.847976|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Windows 'Windows10', version '10.0.18363' Release ID '1909', 64Bit=True, Workstation=True, Server=False, SERVICE=False|21|0||5 2021-03-21 10:39:44.847976|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Not running as administrator.|22|0||5 2021-03-21 10:39:44.847976|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| Start in/current directory is the same as where the EXE is running from: C:\AITool |23|0||5 2021-03-21 10:39:44.855976|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| Reading BlueIris settings from registry from '127.0.0.1'...|24|1||5 2021-03-21 10:39:44.857976|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris found. Version '5.3.9.15', app path 'C:\Program Files\Blue Iris 5'|25|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris URL found: http://192.168.1.80:81|26|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris clip path found: c:\BlueIris\New|27|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris clip path found: \192.168.1.62\Stored|28|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris clip path found: c:\BlueIris\Alerts|29|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris clip path found: C:\aiinput|30|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: GarageInside1|31|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: GarageInside2|32|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: GarageOutside|33|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: BottomParking|34|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: BottomParking2|35|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVInside|36|1||5 2021-03-21 10:39:44.861975|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVJetwash|37|1||5 2021-03-21 10:39:44.862974|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVOutsideSD|38|1||5 2021-03-21 10:39:44.862974|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVTop|39|1||5 2021-03-21 10:39:44.862974|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVTopRoad|40|1||5 2021-03-21 10:39:44.862974|Debug|AITOOLS.EXE|RefreshBIInfoAsync|None|None|None| BlueIris camera found: PVTopSD|41|1||5 2021-03-21 10:39:44.863975|Debug|AITOOLS.EXE|InitializeBackend|None|None|None| BlueIris path is 'C:\Program Files\Blue Iris 5', with 0 users, 11 cameras and 4 clip folder paths configured.|42|0||5 2021-03-21 10:39:44.875976|Error|AITOOLS.EXE|InitializeBackend|None|None|None| Index was out of range. Must be non-negative and less than the size of the collection.;Parameter name: index [ArgumentOutOfRangeException] (In AITOOL.InitializeBackend:210)|43|0||5 2021-03-21 10:39:44.877974|Debug|AITOOLS.EXE|Shell_Load|None|None|None| Back end initialization completed in 297ms.|44|0||5