Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

Collapse
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • sooty
    replied
    Originally posted by sparkman View Post

    Hi Paul, is that a general comment or a message specific for mjolsen? All seems well here for me after the update.

    Thanks
    Al
    Anyone with device corruption issues really.

    Once I figured out what was causing the "not shutting down" issue, it turned out that there was nothing I could do about it for those that already had a problem version installed.

    I added code into version .48 to remove the offending data object (if present) from the root devices and replace it with a format that wouldn't cause a problem but of course users had to get that version installed which was not going to be straight forward given the nature of the issue in the first instance.

    My dev system (HS3 .478) has lots of position based user devices and I tested extensively, first running a problem version and updating all the user device's positions so that they had the problematic data object. I then shut down HS3, copied over the new exe and on first run it correctly modified all the devices without issue and the shutdown issue was resolved.

    As I understand it, Randy also didn't see an issue with the same update procedure so I can't say for sure why some users are seeing root devices getting deleted / corrupted.

    Paul..

    Leave a comment:


  • The Profit
    replied
    If I have two child devices for one of my iPhone devices that aren’t reporting changes (Time at Location & Home Direction), how do I get them to update? I’ve put a check mark on the “Force update of position devices” but it doesn’t make a difference. I’ve also walked down the street a mile to see if just changing my position causes it to update but nothing seems to work.
    Any ideas?


    Sent from my iPad using Tapatalk

    Leave a comment:


  • sparkman
    replied
    Originally posted by sooty View Post
    Since I pulled the update very soon after uploading, I was rather hoping that not too many folks had installed .47
    There was a .45 and .46 but these were not made public so only a few folks would have had them installed.

    All three of those versions had an issue with serialisation of data stored within the root device of position based users if those devices had received position updates under that version.
    The issue affected all position type user root devices regardless of the service(s) they were attached to.

    The reason the issue went unnoticed during my testing is that it was only evident when an attempt to update the plug-in was made and Randy spotted this as soon as he tried to install .47 over .45 and I immediately pulled the update. I've never come across this before so it wasn't something I was looking for in testing.

    Not want you want to hear, I know but given the experiences reported here, I would recommend deleting all position based user devices and starting over.
    There is no need to delete any other device types.

    Once again I apologise for the inconvenience.

    Paul..
    Hi Paul, is that a general comment or a message specific for mjolsen? All seems well here for me after the update.

    Thanks
    Al

    Leave a comment:


  • sooty
    replied
    Since I pulled the update very soon after uploading, I was rather hoping that not too many folks had installed .47
    There was a .45 and .46 but these were not made public so only a few folks would have had them installed.

    All three of those versions had an issue with serialisation of data stored within the root device of position based users if those devices had received position updates under that version.
    The issue affected all position type user root devices regardless of the service(s) they were attached to.

    The reason the issue went unnoticed during my testing is that it was only evident when an attempt to update the plug-in was made and Randy spotted this as soon as he tried to install .47 over .45 and I immediately pulled the update. I've never come across this before so it wasn't something I was looking for in testing.

    Not want you want to hear, I know but given the experiences reported here, I would recommend deleting all position based user devices and starting over.
    There is no need to delete any other device types.

    Once again I apologise for the inconvenience.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by mjolsen View Post
    Before .48 I didn’t have errors in log.. this afternoon I have these :

    [code]
    PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:48:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    [code]
    Probably caused by some extra logging to file that I added in .48 which is badly formatted. Switching off the log to file option should stop these whilst I find the cause.

    [Edit]
    Cause found and will be fixed in .49 or later.

    Paul..

    Leave a comment:


  • mjolsen
    replied
    Before .48 I didn’t have errors in log.. this afternoon I have these :

    [code]
    PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:54:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:52:26 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:50:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:49:11 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    Jan-22 1:48:10 PM PHLocation2 Error (HandleLogEntry) Error! System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: totalWidth at System.String.PadHelper(Int32 totalWidth, Char paddingChar, Boolean isRightPadded) at o.a(String A_0, String A_1, String A_2)
    [code]

    Leave a comment:


  • mjolsen
    replied
    Originally posted by The Profit View Post

    Yeah, I opted to not delete the iCloud account as it wasn’t giving me any errors in the log when I polled the account, it just wasn’t updating the iPhone devices that were part of that account.

    Because this is still a beta, I don’t create any events until it’s closer to release....I’ve learned this over time...


    Sent from my iPad using Tapatalk
    You will need to delete all of the sub devices of the missing root devices..

    Leave a comment:


  • The Profit
    replied
    Originally posted by mjolsen View Post

    oh same problem I had.. Looks like it wasn't just me.

    Don't delete your iCloud accounts.. just re-create the iphone users. you will have to re-associate the users to any events unfortunately.

    m
    Yeah, I opted to not delete the iCloud account as it wasn’t giving me any errors in the log when I polled the account, it just wasn’t updating the iPhone devices that were part of that account.

    Because this is still a beta, I don’t create any events until it’s closer to release....I’ve learned this over time...


    Sent from my iPad using Tapatalk

    Leave a comment:


  • mjolsen
    replied
    Originally posted by The Profit View Post
    @ sooty Paul, Deleting the PHL exe file and then trying to install seemed to work, however I’m not able to get my iPhone devices to update. Looking into the setup I’ve noticed that only my Geofency users are in Users / Devices but my iCloud service is still there under Service Accounts and shows that it is enabled.

    What is the right process to correct? Should I delete the iCloud service account and start over or just add an iCloud device in the Users/Devices? Will I need to delete all of the existing iPhone devices?

    UPDATE: Paul, I ended up deleting all of the existing iPhone devices, adding a new iPhone device and polled the devices. This has seemed to get all of my devices back to normal.


    Sent from my iPad using Tapatalk
    oh same problem I had.. Looks like it wasn't just me.

    Don't delete your iCloud accounts.. just re-create the iphone users. you will have to re-associate the users to any events unfortunately.

    m

    Leave a comment:


  • zimmer62
    replied
    Originally posted by Malosa View Post
    hi sooty and rprade

    After i did change the accuracy to 100 meters it works.
    But this morning i got a new error in icloud.

    regards
    Jan-21 09:35:26 PHLocation2 Warning (PollAccount) iCloud Logout problem account: s@gmail.com
    Jan-21 09:35:26 PHLocation2 Error (Logout) IC WebException for Ref:4142 Msg:The remote server returned an error: (421) Misdirected Request.
    Jan-21 09:35:20 PHLocation2 Warning (UpdateDevices) IC GetDevices attempt 2 returned empty for s@gmail.com. Aborting update.
    Jan-21 09:35:20 PHLocation2 Error (GetDevices) WebException for Ref:4142 Msg:The remote server returned an error: (450).
    Jan-21 09:35:20 PHLocation2 Warning (UpdateDevices) IC GetDevices attempt 1 returned empty for s@gmail.com. Trying again.
    Jan-21 09:35:20 PHLocation2 Error (GetDevices) WebException for Ref:4142 Msg:The remote server returned an error: (450).
    Jan-21 09:35:14 PHLocation2 Warning (UpdateDevices) IC GetDevices attempt 2 returned empty for s. Aborting
    I'm getting these same error messages

    Leave a comment:


  • The Profit
    replied
    @ sooty Paul, Deleting the PHL exe file and then trying to install seemed to work, however I’m not able to get my iPhone devices to update. Looking into the setup I’ve noticed that only my Geofency users are in Users / Devices but my iCloud service is still there under Service Accounts and shows that it is enabled.

    What is the right process to correct? Should I delete the iCloud service account and start over or just add an iCloud device in the Users/Devices? Will I need to delete all of the existing iPhone devices?

    UPDATE: Paul, I ended up deleting all of the existing iPhone devices, adding a new iPhone device and polled the devices. This has seemed to get all of my devices back to normal.


    Sent from my iPad using Tapatalk

    Leave a comment:


  • mjolsen
    replied
    No prob. That’s why we test for others .

    Leave a comment:


  • sooty
    replied
    Originally posted by kenmt View Post

    Thanks Paul, but that didn't seem to help. What's your email? can't find in main post or your profile.

    Ken
    Its paul dot huddlestone at gmail dot com

    Paul..

    Leave a comment:


  • sparkman
    replied
    Originally posted by sooty View Post

    Sorry guys there's nothing I can do if you had 45, 46 or 47 installed. You will need to stop HS3 and delete the plug-in's exe which will prevent HS3 trying to load it.

    Paul,,
    No worries Paul, just wanted to let others know of my experience in case they ran into the same issue.

    Thanks
    Al

    Leave a comment:


  • sooty
    replied
    Originally posted by mjolsen View Post

    Well, not much in the logs that I could see that would cause this.. I've copied the logs below.
    Strange that the device data was there just missing the ROOT device for each iPhone (hence nothing in USER/DEVICES). I did disable and re-enable a few times. everything was there just not the root devices.
    I quickly rebuild the iPhones and had to go back through all events to re-link.. Had to get this done as I am out of town for a few days and needed to get it fixed asap.

    Hopefully it's something I fat fingered last night when I was finishing my PH2 setup. (totally moved to ph2)... THANKS!

    mike


    Code:
     
    Jan-22 11:08:41 AM Plug-In Finished initializing plug-in PHLocation2
    Jan-22 11:08:41 AM Starting Plug-In PHLocation2 loaded in 407 milliseconds
    Jan-22 11:08:41 AM PHLocation2 (Startup) ImagePath = images\PHLocation2\
    Jan-22 11:08:41 AM PHLocation2 (Startup) ImagePath = images\PHLocation2\
    Jan-22 11:08:41 AM PHLocation2 (Startup) LogPath = html\PHLocation2\Logs\
    Jan-22 11:08:41 AM PHLocation2 (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    Jan-22 11:08:41 AM PHLocation2 (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    Jan-22 11:08:41 AM Starting Plug-In Plugin PHLocation2 started successfully in 2 milliseconds
    Jan-22 11:08:41 AM Starting Plug-In Initializing plugin PHLocation2 ...
    Jan-22 11:08:41 AM Info Plugin PHLocation2 has connected. IP:127.0.0.1:54107
    Jan-22 11:08:35 AM Plug-In Found plug-in: PHLocation2, version: 3.0.0.48
    Jan-22 11:07:41 AM Info Plugin PHLocation2 with instance: has disconnected
    Jan-22 11:05:20 AM PHLocation2 (Startup) ImagePath = images\PHLocation2\
    Jan-22 11:05:20 AM PHLocation2 (Startup) ImagePath = images\PHLocation2\
    Jan-22 11:05:20 AM PHLocation2 (Startup) LogPath = html\PHLocation2\Logs\
    Jan-22 11:05:20 AM PHLocation2 (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    Jan-22 11:05:20 AM PHLocation2 (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    Jan-22 11:05:20 AM Plug-In Finished initializing plug-in PHLocation2
    Jan-22 11:05:20 AM Starting Plug-In PHLocation2 loaded in 606 milliseconds
    Jan-22 11:05:20 AM Starting Plug-In Plugin PHLocation2 started successfully in 1 milliseconds
    Jan-22 11:05:20 AM Starting Plug-In Initializing plugin PHLocation2 ...
    Jan-22 11:05:20 AM Info Plugin PHLocation2 has connected. IP:127.0.0.1:54052
    Jan-22 11:05:13 AM Updater Install/Update of package PHLocation was successful.
    Jan-22 11:05:13 AM Updater Copying file: C:\Program Files (x86)\HomeSeer HS3\HSPI_PHLocation2.exe.config
    Jan-22 11:05:13 AM Updater Copying file: C:\Program Files (x86)\HomeSeer HS3\HSPI_PHLocation2.exe
    Jan-22 11:05:12 AM Updater Installing package PHLocation
    Jan-22 11:05:12 AM Updater Using local file: PHLocation2_3_0_0_48.zip
    Jan-22 11:05:12 AM Updater Downloading update: PHLocation
    Jan-22 11:04:18 AM Error DeSerializing object (byte): Unable to find assembly 'HSPI_PHLocation2, Version=3.0.0.47, Culture=neutral, PublicKeyToken=null'. Source=mscorlib
    Jan-22 11:04:18 AM Error DeSerializing object (byte): Unable to find assembly 'HSPI_PHLocation2, Version=3.0.0.47, Culture=neutral, PublicKeyToken=null'. Source=mscorlib
    Jan-22 11:04:18 AM Error DeSerializing object (byte): Unable to find assembly 'HSPI_PHLocation2, Version=3.0.0.47, Culture=neutral, PublicKeyToken=null'. Source=mscorlib
    Jan-22 11:04:18 AM Error DeSerializing object (byte): Unable to find assembly 'HSPI_PHLocation2, Version=3.0.0.47, Culture=neutral, PublicKeyToken=null'. Source=mscorlib
    Jan-22 11:03:23 AM Updater Install/Update of package PHLocation failed.
    Jan-22 11:03:23 AM Updater Error Installation of package PHLocation failed. The installation file 'PHLocation2_3_0_0_48.zip' does not exist. Please retry download.
    Jan-22 11:03:23 AM Updater Installing package PHLocation
    Jan-22 11:03:23 AM Updater Using local file: PHLocation2_3_0_0_48.zip
    Jan-22 11:03:23 AM Updater Downloading update: PHLocation
    Jan-22 11:02:01 AM Updater Install/Update of package PHLocation failed.
    Those deserialization messages are related to the issue that was present in 45, 46 and 47 and that issue does relate to the root devices of position based users so I suspect HS3 has somehow trashed those devices when trying to get data from them in the new version

    Once again I'm sorry for the inconvenience and hopefully not too many folks installed one of those versions.

    Paul..

    Leave a comment:

Working...
X