Announcement

Collapse
No announcement yet.

mcsXap v3.0.0.17 issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mcsXap v3.0.0.17 issue

    I moved to v3.0.01.7 of the plugin and its been running for a couple of days without incident. Note that the transition from 2.x was not seamless as the plugin "forgot" the Allow transmission setting for all of the HS devices I had enabled in v2.x for transmit via xAP...

    This morning I discovered my HS log flooded with these:
    Code:
    12/1/2013 7:54:59 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:05 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:06 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:07 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:08 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:08 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:09 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:09 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:56 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:57 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:58 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:55:58 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:11 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:13 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:14 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:15 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:16 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:17 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:19 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:20 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:22 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:22 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:22 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/1/2013 7:56:41 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    I did not notice any devices that were not updating nor any other errors, just the flood of messages.

    To begin troubleshooting, I just enabled the mcsXap debug log (did not shut down) and those messages just stopped. I let the debug run for a while then disabled the debug messages. The error messages have not returned since.

    So, I guess this is more of an FYI at this point.
    Best regards,
    -Mark-

    If you're not out on the edge, you're taking up too much room!
    Interested in 3D maps? Check out my company site: Solid Terrain Modeling

    #2
    Event was repeated early this morning. Again, enabling mcsXap debug mode and immediately disabling it stopped the messages.

    Any thoughts?

    Code:
    12/8/2013 4:49:00 AM ~!~Device Control~!~Device: System Time Near Sunrise (Y8) ON
    12/8/2013 5:20:20 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:20:30 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:20:33 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:20:36 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:20:37 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:17 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:21 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:23 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:27 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:21:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:17 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:19 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:20 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:21 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:22 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:23 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:23 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:24 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:24 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:33 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:22:34 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:20 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:22 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:23 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:25 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:26 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:23:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:17 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:19 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:23 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:25 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:26 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:24:29 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:25:18 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:25:19 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:25:26 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:25:27 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    12/8/2013 5:25:28 AM ~!~mcsXap~!~ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0 Line 0 Object reference not set to an instance of an object.
    Best regards,
    -Mark-

    If you're not out on the edge, you're taking up too much room!
    Interested in 3D maps? Check out my company site: Solid Terrain Modeling

    Comment


      #3
      I added line numbers to the module so we can see which object is missing. It is attached.
      Attached Files

      Comment


        #4
        Thanks Michael, I'll test and report back.
        Last edited by mfisher; December 9, 2013, 11:31 PM.
        Best regards,
        -Mark-

        If you're not out on the edge, you're taking up too much room!
        Interested in 3D maps? Check out my company site: Solid Terrain Modeling

        Comment


          #5
          Hey Michael,

          The error finally occurred again today, the issue offending item is on line 120. Here's the log info:
          Code:
          12/15/2013 1:30:29 PM 	OCCUPANCY 	 / / / / / / / / / / Occy Family Occy set to "Vacant" - Occupied (00:12)
          12/15/2013 1:30:55 PM 	mcsXap 	ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0,Node=mcs.onewire.homeseer Line 120 Object reference not set to an instance of an object.
          12/15/2013 1:30:59 PM 	mcsXap 	ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0,Node=mcs.onewire.homeseer Line 120 Object reference not set to an instance of an object.
          12/15/2013 1:31:02 PM 	mcsXap 	ActOnMessageForTrigger Section=0, Ubound=0, Trigger=0, TrigUbound=0,Node=mcs.onewire.homeseer Line 120 Object reference not set to an instance of an object.
          Best regards,
          -Mark-

          If you're not out on the edge, you're taking up too much room!
          Interested in 3D maps? Check out my company site: Solid Terrain Modeling

          Comment


            #6
            The code below is called for each xAP message received to evaluate if the message satisfies an event trigger. The implication of the error is that collection returned from TriggerSourceDictionary("mcs.onewire.homeseer") has become null. Since the same error repeats it means the collection object contained in the dictionary has been cleared by something.

            Code:
            100:        If TriggerSourceDictionary.ContainsKey(sNode) Then
            110:            TriggerSourceCollection = TriggerSourceDictionary(sNode)
            120:            For Each oTrigger In TriggerSourceCollection
            130:                oTrigger.LastReceivedDate = Now
            140:                oTrigger.EventRaised = False
                               Next
            The only other place where TriggerSourceDictionary is used is when the HS event triggers are parsed to accumulate the ones used by mcsXap. This is done at startup and when HS calls ValidateTriggerUI. This second case appears to occur each time a mcsXap trigger is changed.

            Are you doing anything with HS events at the time this message starts?
            If the message starts and you do a minor edit of a mcsXap event trigger does the message clear up?

            Comment


              #7
              I have only two events that use mcsXap triggers:
              - More than 5 minutes since last xAP message received from source xFx.Hub.HomeSeer
              - More than 5 minutes since last xAP message received from source mcs.onewire.homeseer


              Two days ago I noticed the error occurring again, so I changed the event that triggers on "mcs.onewire.homeseer" from 5 minutes to 6 minutes and saved it. The error immediately ceased.

              I will continue to monitor and let you know what happens since it has taken up to a week to resurface in the past.

              Thanks for the debug suggestions!
              Best regards,
              -Mark-

              If you're not out on the edge, you're taking up too much room!
              Interested in 3D maps? Check out my company site: Solid Terrain Modeling

              Comment


                #8
                While I would like to understand why the dictionary item has lost its value I do not think a search will bear fruit. I detected the situation and rebuilt the dictionary when it occurs. A debug only message will occur if it happens. In earlier versions of mcsXap I searched the HS triggers each time. I made the change as a CPU use optimization. The update 3.0.0.19 was put in the library.

                Comment


                  #9
                  Thanks Michael. I'll install .19 and let you know if anything odd crops up.
                  Best regards,
                  -Mark-

                  If you're not out on the edge, you're taking up too much room!
                  Interested in 3D maps? Check out my company site: Solid Terrain Modeling

                  Comment


                    #10
                    The error has not resurfaced since installing .19. Does the code you added provide any indication of the error & automatic rebuild of the trigger list object in the HS log?

                    Also, can you please help remind me how to unregister these older versions of the plugin?
                    Code:
                    1/4/2014 12:31:25 PM 	Error 	Class not found in plugin DLL: HSPI_MCSXAP v3.0.0.17.dll Class: HSPI_MCSXAP V3.HSPI
                    1/4/2014 12:31:25 PM 	Info 	HS Compatibility, cannot access plug-in HSPI_MCSXAP V3.HSPI ActiveX component can't create object
                    1/4/2014 12:31:25 PM 	System 	Registering HSPI_MCSXAP v3.0.0.17.dll with Windows
                    1/4/2014 12:31:27 PM 	Info 	HS Compatibility, cannot access plug-in HSPI_MCSXAP V3.HSPI ActiveX component can't create object
                    1/4/2014 12:31:27 PM 	Error 	Unable to access plugin: HSPI_MCSXAP v3.0.0.17.dll, try reinstalling plug-in
                    1/4/2014 12:31:27 PM 	Error 	Class not found in plugin DLL: HSPI_MCSXAP v3.0.0.18.dll Class: HSPI_MCSXAP V3.HSPI
                    1/4/2014 12:31:27 PM 	Info 	HS Compatibility, cannot access plug-in HSPI_MCSXAP V3.HSPI ActiveX component can't create object
                    1/4/2014 12:31:27 PM 	System 	Registering HSPI_MCSXAP v3.0.0.18.dll with Windows
                    1/4/2014 12:31:29 PM 	Info 	HS Compatibility, cannot access plug-in HSPI_MCSXAP V3.HSPI ActiveX component can't create object
                    1/4/2014 12:31:29 PM 	Error 	Unable to access plugin: HSPI_MCSXAP v3.0.0.18.dll, try reinstalling plug-in
                    1/4/2014 12:31:29 PM 	Plug-In Found plug-in: mcsXap, version: 3.0.0.19
                    Thanks!
                    Best regards,
                    -Mark-

                    If you're not out on the edge, you're taking up too much room!
                    Interested in 3D maps? Check out my company site: Solid Terrain Modeling

                    Comment


                      #11
                      I put a message in the debug log if it is rebuilt, but not in the normal log because I do not expect the user to do anything because of the message.

                      I believe HS looks for any HSPI* files during its startup. If it is not there then it should not be part of the initialization.

                      Comment


                        #12
                        Ok, thanks for the debug log clarification. And thanks for not pointing out my idiocy regarding the previous versions; I usually rename the extensions when testing but only changed the file name and left them as .dll. Files deleted and issue resolved.
                        Best regards,
                        -Mark-

                        If you're not out on the edge, you're taking up too much room!
                        Interested in 3D maps? Check out my company site: Solid Terrain Modeling

                        Comment

                        Working...
                        X