OutlookGoogleCalendarSync icon indicating copy to clipboard operation
OutlookGoogleCalendarSync copied to clipboard

Scheduled syncs not running sequentially causes detached RCW objects

Open Malli88 opened this issue 1 year ago • 15 comments

Checklist:-

  • [x] Upgrade to the latest release (alpha if available) latest release
  • [x] Reproduce the issue
  • [x] Complete the information below
  • [x] Provide your OGcalsync.log file (see how-to)

OGCS Version: v2.10.2.0 Edition: Installed Sync Direction: G->O / O->G / O<->G

Bug Description
Every morning and sometimes over the day I get a few error messages. May important information. I use manly "The New Outlook" which is webbased. So I have the old native app just running for OGS image

Steps to Reproduce the Issue
Don't know. They are just there.

Any other information
Any additional information that may help troubleshoot the issue.
OGcalsync.log

Translated error: A COM object that has been separated from the underlying RCW cannot be used.

Malli88 avatar Dec 13 '23 05:12 Malli88

This seems to be due to two syncs running at the same time and not getting queued properly.

:package: Please could you have a try with hotfix v2.10.2.11.zip (see instructions for applying) and let me know how it goes.

phw198 avatar Dec 17 '23 19:12 phw198

@phw198 Thank you! Hotfix is applied, and I will wait that I see no more error. In 24 hrs, I can say more. Cheers!

Malli88 avatar Dec 18 '23 08:12 Malli88

We have a error :-/. image OGcalsync.log

Malli88 avatar Dec 18 '23 08:12 Malli88

Maybe thats helpful. A manual sync run into not issues.

Malli88 avatar Dec 18 '23 08:12 Malli88

:package: Could you have a go with hotfix v2.10.2.13.zip (see instructions for applying).

Also, please increase your logging level to Ultra-Fine in case the error still happens. Thanks!

Just to note, the issue is arising because you have 5 profiles scheduled for sync and when you start the application, they are all getting scheduled for sync around the same time; apparently there's a problem with queuing and processing them...

phw198 avatar Dec 23 '23 11:12 phw198

image hotfix is implemented and log level is set to ultra fine. Wait now if the problem still accuses. Happy new year and thank you very much!

Malli88 avatar Jan 02 '24 06:01 Malli88

OGcalsync.log We have a hit :-)

Malli88 avatar Jan 02 '24 07:01 Malli88

OK, I have the root cause at least now

  1. A Push sync fires (every 2 minutes)
  2. Outlook process is running, so attempts to connect to it
  3. Connection requires scan of calendar folders which takes several seconds
  4. Whilst that scan is happening, a scheduled sync fires
  5. Scheduled sync runs to completion and disconnects from Outlook
  6. Scan of folders (step 3) cannot continue as connection has been dropped!

Leave it with me...

phw198 avatar Jan 04 '24 21:01 phw198

Hi, just to let you know. I reinstalled my system to W11. After reimporting my OGCS Settings to version 2.10.2.0 everything is looking good. From my side you can close the issue if you want. Thank you for the support!

Malli88 avatar Jan 17 '24 12:01 Malli88

celebrate to early :-D image

Malli88 avatar Jan 17 '24 13:01 Malli88

are there some new insights here?

Malli88 avatar Jan 25 '24 11:01 Malli88

@phw198 Still have sync issues. How can we move on here? Is there something I can assist you?

Malli88 avatar Feb 26 '24 12:02 Malli88

Hi @Malli88 thanks for chasing - I won't be able to take a look at this for a couple of weeks yet, but will as soon as I'm back on to OGCS 👍🏻

In the meantime, I think you might be able to work around the issue by turning off push sync...

phw198 avatar Feb 28 '24 15:02 phw198

OK, back on it after a break and after a fair few hours of head-scratching the issue was:

  1. No Outlook running
  2. Run a scheduled sync, which opens Outlook programmatically - if you have reminders this popup window stay open after the sync has completed and disconnected from Outlook
  3. A Push Sync fires, it detects the Outlook process running and when checking to see if the full application is open (which it's not, only the reminder window) it assumes it is connected - but the previous sync disconnected it.

:package: Please see if it's now resolved with hotfix v2.10.3.4.zip (see instructions for applying).       CRCs: Zip = C1AF2819 Exe = 94A7D6D0

Let me know how it goes!

phw198 avatar Mar 14 '24 21:03 phw198

Hi @Malli88 Are you still getting this issue? The hotfix is rather old now, so let me know if you want me to update it onto the current alpha v2.10.5 for you to test...

phw198 avatar Jun 17 '24 00:06 phw198