Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

Crashing when web request occurs

$
0
0
Hi there.

Trying to get PHLocation up and running, but I keep running into a wall and don't know why.

It seems like it's working ok, but as soon as a web request comes in I get an immediate unhandled null reference exception and the plugin tanks. The config screen works fine and saves my data - but is that just saving to the flat config file and not the database? Is it possible that the database dlls are missing/wrong location, and that's why it's choking?

Code:

Jul-31 12:32:10                PHLocation        (CreateDeviceLists) Started.
Jul-31 12:32:10                PHLocation        (InitIO) Plug-In is licensed.
Jul-31 12:32:10                PHLocation        (InitIO) License state returned 0
Jul-31 12:32:10                PHLocation        GetLicenseState Called
Jul-31 12:32:10                PHLocation        (InitIO) Database structure update not required.
Jul-31 12:32:10                PHLocation        (InitIO) Database version is: 7
Jul-31 12:32:10                PHLocation        (VersionUpdate) No update required.
Jul-31 12:32:10                PHLocation        (InitIO) Existing installation detected. Running version update routines.
Jul-31 12:32:10                PHLocation        (InitIO) Plug-in version is: 3.0.1.17
Jul-31 12:32:10                PHLocation Warning        (LoadWebServerSettings) Bypass auth is active for the set range(s) of IP addresses.
Jul-31 12:32:10                PHLocation        (LoadPiSettings) Use home location 1 set to ON
Jul-31 12:32:10                PHLocation Warning        Plug-In is using user defined date time format: DD/MM/YYYY HH:mm:ss
Jul-31 12:32:10                PHLocation        (LoadPiSettings) Logging of http requests to file is ON.
Jul-31 12:32:10                PHLocation        (LoadPiSettings) Message panel enabled.
Jul-31 12:32:10                PHLocation        (LoadPiSettings) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\PHLocation.phd
Jul-31 12:32:10                PHLocation        (LoadPiSettings) MapPath = html\PHLocation\Maps\
Jul-31 12:32:10                PHLocation        (LoadPiSettings) ImagePath = images\PHLocation\
Jul-31 12:32:10                PHLocation        (LoadPiSettings) LogPath = html\PHLocation\Logs\
Jul-31 12:32:10                PHLocation        (LoadPiSettings) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
Jul-31 12:32:10                PHLocation        (InitIO) System decimal separator used is [.]
Jul-31 12:32:10                PHLocation        (InitIO) Detected OS is Windows version 6.1.7601.65536
Jul-31 12:32:10                Info        Plugin PHLocation has connected. IP:127.0.0.1:54685
Jul-31 12:32:10                Warning        I/O interface PHLocation is down, executable is not running, restarting ...
Jul-31 12:31:59                Info        Plugin PHLocation with instance: has disconnected
Jul-31 12:31:51                PHLocation Warning        (httpprocrequest) Request received. Total Req's = 1
Jul-31 12:31:40                PHLocation        (UpdateTimers) Loop finished.
Jul-31 12:31:40                PHLocation        (UpdateTimers) Updated timer for device: 917 to 1060092751 minutes.
Jul-31 12:31:40                PHLocation        (UpdateTimers) Elapsed Loc Time for device: 917 is 1060092751 minutes.
Jul-31 12:31:40                PHLocation        (UpdateTimers) Last update time for device: 917 found : 1/1/0001 12:00:00 AM
Jul-31 12:31:40                PHLocation        (UpdateTimers) Updated timer for device: 875 to 60153 minutes.
Jul-31 12:31:40                PHLocation        (UpdateTimers) Elapsed Loc Time for device: 875 is 60153 minutes.
Jul-31 12:31:40                PHLocation        (UpdateTimers) Last update time for device: 875 found : 6/19/2016 5:58:04 PM
Jul-31 12:31:40                PHLocation        (UpdateTimers) Loop started.
Jul-31 12:31:40                PHLocation        Loc Timer elapsed
Jul-31 12:31:39                PHLocation        (UpdateAppLvTimers) Loop started.

I have 2 entries in the Windows event log each time it happens.

Code:

Application: HSPI_PHLocation.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
  at f.a(System.IAsyncResult)
  at System.Net.LazyAsyncResult.Complete(IntPtr)
  at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
  at System.Net.ListenerAsyncResult.IOCompleted(System.Net.ListenerAsyncResult, UInt32, UInt32)
  at System.Net.ListenerAsyncResult.WaitCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
  at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Code:

Faulting application name: HSPI_PHLocation.exe, version: 3.0.1.17, time stamp: 0x56f5a86f
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23418, time stamp: 0x5708a7e4
Exception code: 0xe0434352
Fault offset: 0x0000c54f
Faulting process id: 0x1890
Faulting application start time: 0x01d1dcd7e7f234b0
Faulting application path: C:\Program Files (x86)\HomeSeer HS3\HSPI_PHLocation.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 7fc754e2-5738-11e6-9090-3085a9b2a263

in my HS\Bin\PHLocation folder I have:
Newtonsoft.Json.dll
System.Data.SQLLite.dll (v1.0.95)

Am I missing something obvious here?

Viewing all articles
Browse latest Browse all 4847

Trending Articles