phw198 / OutlookGoogleCalendarSync

Sync your Outlook and Google calendars
https://www.outlookgooglecalendarsync.com/
Mozilla Public License 2.0
1.76k stars 214 forks source link

Scheduled syncs not running sequentially causes detached RCW objects #1752

Open Malli88 opened 7 months ago

Malli88 commented 7 months ago

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.

phw198 commented 6 months ago

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.

Malli88 commented 6 months ago

@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 commented 6 months ago

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

Malli88 commented 6 months ago

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

phw198 commented 6 months ago

: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...

Malli88 commented 6 months ago

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 commented 6 months ago

OGcalsync.log We have a hit :-)

phw198 commented 6 months ago

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...

Malli88 commented 5 months ago

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 commented 5 months ago

celebrate to early :-D image

Malli88 commented 5 months ago

are there some new insights here?

Malli88 commented 4 months ago

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

phw198 commented 4 months ago

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 commented 3 months ago

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 commented 3 weeks ago

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...