JowiHue 4.0.2.0 Plug-in is crashing on HS4 shutdown or when plug-in is disabled.
Today, 12:33 PM
JowiHue 4.0.2.0 Plug-in crashing on HS4 shutdown or when plug-in is disabled. Not a big deal as it only happens on exit, but would be nice to handle the exception to keep the log clean.
Setup:
Date/time=7/11/2020 12:30:40 PM PDT
Version=HS4 Pro Edition 4.1.1.0 (Linux)
License=Registered
Uptime=0 Days 22 Hours 52 Minutes 55 Seconds
Lan IP=10.0.10.150 (HomeSeer-MacMini.local)
Device Count=690
Event Count=105
Plugins Enabled=Z-Wave:,Rachio:,Chromecast:,RFXCOM:,JowiHue:
Modules/Threads=220 Modules, 10 Threads
Available Threads=1199
HomeSeer Memory Used=297 Mbytes
Plugins Installed=Chromecast 4.0.12.0,JowiHue 4.0.2.0,Rachio 4.0.0.0,RFXCOM 30.0.0.41,weatherXML 3.0.1.19,Z-Wave 3.0.2.0
Stack trace:
> Shutting down Plug-In: JowiHue
12:26:07:3683:[Plug-In]->Shutting down Plug-In: JowiHue
Disconnecting from HomeSeer...
12:26:07:3704:[Info]->Plugin JowiHue with ID: JowiHue and Instance: has disconnected
Plugin shut down, killing EXE...
Error sending over stream: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'..
Unhandled Exception:
System.IO.IOException: Sharing violation on path /usr/local/HomeSeerLogs\JowiHue.console.txt
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f759957039b44a0190b1110fdfe3030f>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at HSPI_JowiHue.JowiHueUtils.Log (System.String Message, HSPI_JowiHue.Enums+LogLevel Log_Level, System.String Color) [0x00244] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.HueCache.UpdateBridgeCache () [0x008b6] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.BaseCache._Lambda$__R21-1 (System.Object a0) [0x00000] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Sharing violation on path /usr/local/HomeSeerLogs\JowiHue.console.txt
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f759957039b44a0190b1110fdfe3030f>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at HSPI_JowiHue.JowiHueUtils.Log (System.String Message, HSPI_JowiHue.Enums+LogLevel Log_Level, System.String Color) [0x00244] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.HueCache.UpdateBridgeCache () [0x008b6] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.BaseCache._Lambda$__R21-1 (System.Object a0) [0x00000] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
Error in IsEXERunning: Could not find a part of the path '/proc'.
Verifying plugin links...
Done removing plugin.
I suspect that the problem is with this path
/usr/local/HomeSeerLogs\JowiHue.console.txt
which should be
/usr/local/HomeSeer/Logs/JowiHue.console.txt
Today, 12:33 PM
JowiHue 4.0.2.0 Plug-in crashing on HS4 shutdown or when plug-in is disabled. Not a big deal as it only happens on exit, but would be nice to handle the exception to keep the log clean.
Setup:
Date/time=7/11/2020 12:30:40 PM PDT
Version=HS4 Pro Edition 4.1.1.0 (Linux)
License=Registered
Uptime=0 Days 22 Hours 52 Minutes 55 Seconds
Lan IP=10.0.10.150 (HomeSeer-MacMini.local)
Device Count=690
Event Count=105
Plugins Enabled=Z-Wave:,Rachio:,Chromecast:,RFXCOM:,JowiHue:
Modules/Threads=220 Modules, 10 Threads
Available Threads=1199
HomeSeer Memory Used=297 Mbytes
Plugins Installed=Chromecast 4.0.12.0,JowiHue 4.0.2.0,Rachio 4.0.0.0,RFXCOM 30.0.0.41,weatherXML 3.0.1.19,Z-Wave 3.0.2.0
Stack trace:
> Shutting down Plug-In: JowiHue
12:26:07:3683:[Plug-In]->Shutting down Plug-In: JowiHue
Disconnecting from HomeSeer...
12:26:07:3704:[Info]->Plugin JowiHue with ID: JowiHue and Instance: has disconnected
Plugin shut down, killing EXE...
Error sending over stream: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'..
Unhandled Exception:
System.IO.IOException: Sharing violation on path /usr/local/HomeSeerLogs\JowiHue.console.txt
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f759957039b44a0190b1110fdfe3030f>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at HSPI_JowiHue.JowiHueUtils.Log (System.String Message, HSPI_JowiHue.Enums+LogLevel Log_Level, System.String Color) [0x00244] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.HueCache.UpdateBridgeCache () [0x008b6] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.BaseCache._Lambda$__R21-1 (System.Object a0) [0x00000] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Sharing violation on path /usr/local/HomeSeerLogs\JowiHue.console.txt
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f759957039b44a0190b1110fdfe3030f>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at HSPI_JowiHue.JowiHueUtils.Log (System.String Message, HSPI_JowiHue.Enums+LogLevel Log_Level, System.String Color) [0x00244] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.HueCache.UpdateBridgeCache () [0x008b6] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at HSPI_JowiHue.BaseCache._Lambda$__R21-1 (System.Object a0) [0x00000] in <cd5ed73401ec4b8aa22d0e1eb22d6add>:0
at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <f759957039b44a0190b1110fdfe3030f>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <f759957039b44a0190b1110fdfe3030f>:0
Error in IsEXERunning: Could not find a part of the path '/proc'.
Verifying plugin links...
Done removing plugin.
I suspect that the problem is with this path
/usr/local/HomeSeerLogs\JowiHue.console.txt
which should be
/usr/local/HomeSeer/Logs/JowiHue.console.txt
Comment