SMTP Trap causes HS crash (plugin version 0.5)

Forum over de Homeseer IPPower plugin van Rene Klootwijk (DUTCH forum)

Moderator: Rene

SMTP Trap causes HS crash (plugin version 0.5)

Postby olof » Mon Apr 02, 2012 12:23 pm

I realize I'm only a beginner with this Plugin, but I've been busy experimenting with it over the weekend. So I hope this question is less embarrassing than my earlier question on the Plugin.

Problem
Homeseer Pro crashes as soon as the IPPower 9212 sends a SMTP Trap. I can reproduce the problem time after time.

I've read all the messages in the forum on the IPPowerPlugin, but as far as I understand it, version 0.5 should have fixed this problem?
I'm stumped...

Thanks in advance for any help.
Olof

My versions:
IPPower 9212 firmware ("Release Version"): V2.05 2010/12/13
IPPower Plugin: 0.0.0.5
Homeseer: Professional Edition 2.5.0.20

Error message from Homeseer after it crashes:
2-4-2012 12:56:32
Conversion from string "Gate Status " to type 'Integer' is not valid.
HomeSeer version: 2.5.0.20
Source: Microsoft.VisualBasic
Target: Int32 ToInteger(System.String)
Stack trace:
at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
at HSPI_IPPOWER.SNMP.ReceiveSnmpCallback(IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Please specify what you were doing at the time of this error:


The homeseer log doesn't provide any help on the matter, here are the latest entries around the time of the above crash:

2-4-2012 12:56:11 ~!~Startup~!~Scripting is OK and is now running Startup.txt
2-4-2012 12:56:11 ~!~Startup~!~Start up complete.
2-4-2012 12:56:11 ~!~Web Server~!~Web Server authorized local login successful from: 192.168.178.250 User: maarten
2-4-2012 12:56:32 ~!~IPPower~!~DEBUG: Enter ReceiveSnmpCallback
2-4-2012 12:56:32 ~!~IPPower~!~DEBUG: Received SNMP trap from 192.168.178.49
2-4-2012 12:56:32 ~!~Web Server~!~Web Server stopped
2-4-2012 12:56:37 ~!~IPPower~!~DEBUG: Entering GetStatus for controller 'Controller1'
2-4-2012 12:56:37 ~!~IPPower~!~DEBUG: Host Name: 192.168.178.49
2-4-2012 12:56:37 ~!~IPPower~!~DEBUG: IP Address: 192.168.178.49
2-4-2012 12:56:37 ~!~IPPower~!~DEBUG: Set credentials for controller 'Controller1'
2-4-2012 12:56:37 ~!~IPPower~!~DEBUG: Query: http://192.168.178.49:80/info.xml
2-4-2012 12:56:38 ~!~IPPower~!~DEBUG: Parsing info.xml
2-4-2012 12:56:38 ~!~IPPower~!~DEBUG: IPPower firmware version: V2.05 2010/12/13
2-4-2012 12:56:38 ~!~IPPower~!~DEBUG: Output mask: 00000000
2-4-2012 12:56:38 ~!~IPPower~!~DEBUG: Set _5 to 3
2-4-2012 12:56:38 ~!~IPPower~!~DEBUG: Input mask: 10000000
2-4-2012 12:57:07 ~!~IPPower~!~DEBUG: Entering GetStatus for controller 'Controller1'
2-4-2012 12:57:07 ~!~IPPower~!~DEBUG: Host Name: 192.168.178.49
2-4-2012 12:57:07 ~!~IPPower~!~DEBUG: IP Address: 192.168.178.49
2-4-2012 12:57:07 ~!~IPPower~!~DEBUG: Set credentials for controller 'Controller1'
2-4-2012 12:57:07 ~!~IPPower~!~DEBUG: Query: http://192.168.178.49:80/info.xml
2-4-2012 12:57:08 ~!~IPPower~!~DEBUG: Parsing info.xml
2-4-2012 12:57:08 ~!~IPPower~!~DEBUG: IPPower firmware version: V2.05 2010/12/13
2-4-2012 12:57:08 ~!~IPPower~!~DEBUG: Output mask: 00010000
2-4-2012 12:57:08 ~!~IPPower~!~DEBUG: Set _5 to 2
2-4-2012 12:57:08 ~!~IPPower~!~DEBUG: Input mask: 10000000
2-4-2012 12:57:37 ~!~IPPower~!~DEBUG: Entering GetStatus for controller 'Controller1'
2-4-2012 12:57:37 ~!~IPPower~!~DEBUG: Host Name: 192.168.178.49
2-4-2012 12:57:37 ~!~IPPower~!~DEBUG: IP Address: 192.168.178.49
2-4-2012 12:57:37 ~!~IPPower~!~DEBUG: Set credentials for controller 'Controller1'
2-4-2012 12:57:37 ~!~IPPower~!~DEBUG: Query: http://192.168.178.49:80/info.xml
2-4-2012 12:57:38 ~!~IPPower~!~DEBUG: Parsing info.xml
Attachments
IPPower adv setup.jpg
IPPower adv setup.jpg (182.38 KiB) Viewed 4384 times
olof
Member
Member
 
Posts: 281
Joined: August 2010
Location: Netherlands

Re: SMTP Trap causes HS crash (plugin version 0.5)

Postby Rene » Mon Apr 02, 2012 12:49 pm

This is a known problem with the Pro version of Homeseer only (there is some information in another topic). While I do not have Homeseer Pro I was not able to reproduce this problem. Currently I do not have a working IPPower anymore, so support for the plugin is very limited.
Rene.
User avatar
Rene
Global Moderator
Global Moderator
 
Posts: 1689
Joined: October 2008
Location: Netherlands

Re: SMTP Trap causes HS crash (plugin version 0.5)

Postby olof » Mon Apr 02, 2012 1:07 pm

Rene,

Ok, thanks for the quick reply.
I will see if I can workaround it using faster refresh polling times.
Olof
olof
Member
Member
 
Posts: 281
Joined: August 2010
Location: Netherlands


Return to Homeseer IPPower Plugin Forum

Who is online

Users browsing this forum: No registered users and 1 guest