Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every calendar item throws exception on v2.11.0 #1929

Closed
Boechie opened this issue Aug 12, 2024 · 10 comments
Closed

Every calendar item throws exception on v2.11.0 #1929

Boechie opened this issue Aug 12, 2024 · 10 comments
Assignees
Labels
bug Something's not working right waiting fix confirmation Hotfix available for testing
Milestone

Comments

@Boechie
Copy link

Boechie commented Aug 12, 2024

OGCS Version: v2.11.0
Edition: Installed
Sync Direction: O->G

Bug Description
I just upgraded from v2.10.0 to v2.11.0. That version worked flawlessly for years. The new version throws an error and warning for every item. It can't sync any item.

Steps to Reproduce the Issue
Just start OGCalSync and start a sync process.
For every item in Outlook I get a message in the application like this:
image
When OGCalSync started deleting all item from my Google Calendar, I cancelled the sync to not loose everything!

Any other information
OGcalsync.log is attached, but I removed many lines that mentioned privacy information. I'm not allowed to share that publicly because of EU privacy legislation.
There are quite some lines like this:
2024-08-12 13:17:27,220 ERROR 11 OutlookGoogleCalendarSync.Exception [66] - at Microsoft.Office.Interop.Outlook._AppointmentItem.get_AllDayEvent()
at OutlookGoogleCalendarSync.Outlook.Calendar.GetEventSummary(AppointmentItem ai, String& eventSummaryAnonymised, Boolean onlyIfNotVerbose) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\Outlook\OutlookCalendar.cs:line 1487
There is no user 'Paul' on my PC, nor does this directory exist.
OGcalsync-censored.log

@Boechie Boechie added the bug Something's not working right label Aug 12, 2024
@phw198
Copy link
Owner

phw198 commented Aug 12, 2024

Hi - did you upgrade OGCS today? I don't see any indication of that in the log file.

2024-08-12 13:16:21,272 WARN  11 OutlookGoogleCalendarSync.Exception [19] -  Calendar item does not have a proper date range - cannot sync it. ExchangeMode=olOnline
2024-08-12 13:16:21,273 ERROR 11 OutlookGoogleCalendarSync.Exception [29] -  System.Runtime.InteropServices.COMException: Your server administrator has limited the number of items you can open simultaneously. Try closing messages you have opened or removing attachments and images from unsent messages you are composing.

Looks like you're running in Exchange Online mode instead of Cached - please try turning cached mode on.

@phw198 phw198 self-assigned this Aug 12, 2024
phw198 added a commit that referenced this issue Aug 12, 2024
@phw198
Copy link
Owner

phw198 commented Aug 12, 2024

However, I have also noticed there is a change in filtering based on category, which isn't efficient due to you not having selected to exclude any categories.

📦 This should now be resolved with hotfix v2.11.0.1.zip(see instructions for applying) if you would like to see if that helps too.
      CRCs: Zip = 75EA8C5B Exe = 775A123D

Please let me know how it goes.

@phw198 phw198 added the waiting fix confirmation Hotfix available for testing label Aug 12, 2024
@Boechie
Copy link
Author

Boechie commented Aug 12, 2024

Hi - did you upgrade OGCS today? I don't see any indication of that in the log file.

2024-08-12 13:16:21,272 WARN  11 OutlookGoogleCalendarSync.Exception [19] -  Calendar item does not have a proper date range - cannot sync it. ExchangeMode=olOnline
2024-08-12 13:16:21,273 ERROR 11 OutlookGoogleCalendarSync.Exception [29] -  System.Runtime.InteropServices.COMException: Your server administrator has limited the number of items you can open simultaneously. Try closing messages you have opened or removing attachments and images from unsent messages you are composing.

Looks like you're running in Exchange Online mode instead of Cached - please try turning cached mode on.

Hi @phw198 .

Thank you for the very quick reply! I did upgrade OGCS today, but I emptied/deleted the log file after that as it was rather big.

I now activated Cached mode. I will also install the hotfix and let you know how it goes.

Thanky you!

Boechie.

@Boechie
Copy link
Author

Boechie commented Aug 12, 2024

Hi @phw198 ,

Activating Cached Exchange mode was quite a hassle... Nevertheless it solved the problems with OGCS! I did not need to install the hotfix, so I guess I will proceed without it? Or do you advise to install it?

Thanks for the great tool!

Boechie.

@phw198
Copy link
Owner

phw198 commented Aug 13, 2024

I think I would advise to install the hotfix anyway? Your logs showed many lines with "Could not access Categories property for...." and took from 13:11:56 to 13:14:22 - so around 3 minutes of unnecessary processing time. This might have sped up with cached mode switched on, but I would expect it to be faster still with the hotfix.

@Boechie
Copy link
Author

Boechie commented Aug 14, 2024

@phw198 I was trying to install the hotfix, but Windows Defender keeps complaining about a trojan virus. I know this is a known issue, but Windows won't even let me start the app after applying the hotfix. It is remarkable that the new .exe is 1772KB in size whereas the original .exe is only 271KB in size. Is this correct and safe?

FYI: Even without the hotfix installed, those lines "Could not access Categories property for...." are not in the log anymore after switching to Cached Mode.

@phw198
Copy link
Owner

phw198 commented Aug 15, 2024

I suspect you're trying to replace the wrong executable - the instruction say which one to replace (thought I might add to that to say it's not the 271Kb one).

With cached mode on, it means that OGCS can now access the categories of each item - but it shouldn't be needing to check because you are not filtering by category. So a sync would still be quicker with the hotfix I think, but don't worry if it's being blocked by anti virus...

@Boechie
Copy link
Author

Boechie commented Aug 19, 2024

I suspect you're trying to replace the wrong executable - the instruction say which one to replace (thought I might add to that to say it's not the 271Kb one).

With cached mode on, it means that OGCS can now access the categories of each item - but it should be needing to check because you are not filtering by category. So a sync would still be quicker with the hotfix I think, but don't worry if it's being blocked by anti virus...

Sorry for not accurately reading the instruction. The instruction is clear and it works now. The sync might be a little bit faster, but even without the hotfix performance is more than acceptable (in cached mode).

I have 1 last question: Do you also have an admin installer available? One that does not install in the user's profile (C:\Users\xxx\AppData\Local) but rather in the C:\Program Files folder? That would be really nice. ;-)

@phw198
Copy link
Owner

phw198 commented Aug 21, 2024

No, no admin installer (a lot of software doesn't do that anymore), but you could always manually deploy the portable version there and then unselect "make portable" so the config and logs are held in the user directory.

@Boechie
Copy link
Author

Boechie commented Aug 21, 2024

No, no admin installer (a lot of software doesn't do that anymore), but you could always manually deploy the portable version there and then unselect "make portable" so the config and logs are held in the user directory.

That's a good idea! I installed it that way now and it works.

I will close this issue as resolved.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not working right waiting fix confirmation Hotfix available for testing
Projects
None yet
Development

No branches or pull requests

2 participants