rodneyviana / ODSyncUtil

MIT License
14 stars 5 forks source link

ODSyncUtil.exe Crashing Immediately #9

Closed aakash-shah closed 7 months ago

aakash-shah commented 7 months ago

Hello! I obtained ODSyncUtil v1.0.2.5000 from https://github.com/rodneyviana/ODSyncUtil/releases. When I run either Get-ODStatus.ps1, or ODSyncUtil.exe directly, the EXE crashes.

One computer is on Win11 22H2 and a second is on Win11 23H2.

Here is what the Application event log records (from 22H2):

"Faulting application name: ODSyncUtil.exe, version: 1.0.2.5000, time stamp: 0x65b9b8d1 Faulting module name: ODSyncUtil.exe, version: 1.0.2.5000, time stamp: 0x65b9b8d1 Exception code: 0xc0000005 Fault offset: 0x0000000000002f5c Faulting process id: 0x0x88A4 Faulting application start time: 0x0x1DA650D31EB8131 Faulting application path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Faulting module path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Report Id: fb470d1e-10f4-4ac8-a06f-775ce6288047 Faulting package full name: Faulting package-relative application ID: "

And in a separate event entry: "Fault bucket 1566165308400052198, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0

Problem signature: P1: ODSyncUtil.exe P2: 1.0.2.5000 P3: 65b9b8d1 P4: ODSyncUtil.exe P5: 1.0.2.5000 P6: 65b9b8d1 P7: c0000005 P8: 0000000000002f5c P9: P10: "

Do you have any suggestions on how I can avoid this from crashing?

Please let me know if you need any other information.

Thanks!

rodneyviana commented 7 months ago

aakash-shah,

I suggest you to update to 23H2. If you can't, then follow instructions on section "Windows 10 Additional Configuration (Don't come here if you are using it on Windows 11)". The strong suggestion is to update Windows 11 to 23H2 or later.

aakash-shah commented 7 months ago

Hello rodneyviana! I get the same behavior on Win11 23H2 too. Error information:

Event 1000: "Faulting application name: ODSyncUtil.exe, version: 1.0.2.5000, time stamp: 0x65b9b8d1 Faulting module name: ODSyncUtil.exe, version: 1.0.2.5000, time stamp: 0x65b9b8d1 Exception code: 0xc0000005 Fault offset: 0x0000000000002f5c Faulting process id: 0x0x7568 Faulting application start time: 0x0x1DA653654321618 Faulting application path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Faulting module path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Report Id: 018f9d67-f7c1-4fb1-a77b-02ce28c7fc1c Faulting package full name: Faulting package-relative application ID: "

And event 1001: "Fault bucket 1566165308400052198, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0

Problem signature: P1: ODSyncUtil.exe P2: 1.0.2.5000 P3: 65b9b8d1 P4: ODSyncUtil.exe P5: 1.0.2.5000 P6: 65b9b8d1 P7: c0000005 P8: 0000000000002f5c P9: P10: "

Should I still follow the steps in "Windows 10 Additional Configuration (Don't come here if you are using it on Windows 11)"?

Thanks.

rodneyviana commented 7 months ago

Try the new version I just publish and follow the Troubleshooting instructions in README.md to report back so I can see what went wrong.

aakash-shah commented 7 months ago

Thanks. I tried the new version and got the same error. I ran in debug mode and got the following output before it crashed (SID, username, folder path obfuscated and string after "Business1" was obfuscated):

PS C:\FolderPath\ODSyncUtil-64-bit> .\ODSyncUtil.exe -d 2024-02-22 16:37:40.668: Command line arguments parsed 2024-02-22 16:37:40.668: Save file name: 2024-02-22 16:37:40.668: Is debug: 1 2024-02-22 16:37:40.676: CoInitialize succeeded 2024-02-22 16:37:40.676: SyncRootReader created 2024-02-22 16:37:40.676: EnumerateSubKeys returned 3 keys 2024-02-22 16:37:40.676: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-22 16:37:40.677: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-22 16:37:40.679: User: Domain\username 2024-02-22 16:37:40.679: Type: Business1 2024-02-22 16:37:40.679: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-22 16:37:40.689: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-22 16:37:40.695: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-22 16:37:40.699: GetStatusUISource: 0x00000000 2024-02-22 16:37:40.700: GetStatusUI: 0x00000000 2024-02-22 16:37:40.701: GetStatusUI: 0x00000000 2024-02-22 16:37:40.702: get_ProviderState: 0x00000000 2024-02-22 16:37:40.702: get_ProviderStateLabel: 0x00000000 2024-02-22 16:37:40.713: get_ProviderStateIcon: 0x00000000 2024-02-22 16:37:40.714: get_AbsoluteUri: 0x00000000 2024-02-22 16:37:40.714: get_QuotaUI: 0x00000000

Similar errors logged in Application log: Faulting application name: ODSyncUtil.exe, version: 1.0.3.5000, time stamp: 0x65d7b1c3 Faulting module name: ODSyncUtil.exe, version: 1.0.3.5000, time stamp: 0x65d7b1c3 Exception code: 0xc0000005 Fault offset: 0x00000000000031fd Faulting process id: 0x0x7418 Faulting application start time: 0x0x1DA65F081DF26AE Faulting application path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Faulting module path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Report Id: e888301d-56f1-4624-8883-55fb60db8ca2 Faulting package full name: Faulting package-relative application ID:

And: Fault bucket 1534342306941149645, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0

Problem signature: P1: ODSyncUtil.exe P2: 1.0.3.5000 P3: 65d7b1c3 P4: ODSyncUtil.exe P5: 1.0.3.5000 P6: 65d7b1c3 P7: c0000005 P8: 00000000000031fd P9: P10:

Same problem on both Win11 22H2 and Win11 23H2 computers.

Please let me know if I can provide any other information.

Thanks.

rodneyviana commented 7 months ago

The information was very useful. I will release a new version tomorrow trying to address the issue.

aakash-shah commented 7 months ago

Much appreciated - thanks Rodney!

rodneyviana commented 7 months ago

Try version 1.0.4.5000. If it fails, please show me the -d output

aakash-shah commented 7 months ago

Unfortunately that still did not work and I am getting the same result. Also FYI I ran this in both PS v5 and PSv7 and got the same problem on both Win11 22H2 and 22H3:

2024-02-23 11:24:10.169: Command line arguments parsed 2024-02-23 11:24:10.169: Save file name: 2024-02-23 11:24:10.169: Is debug: 1 2024-02-23 11:24:10.176: CoInitialize succeeded 2024-02-23 11:24:10.176: SyncRootReader created 2024-02-23 11:24:10.176: EnumerateSubKeys returned 3 keys 2024-02-23 11:24:10.176: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 11:24:10.177: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 11:24:10.179: User: Domain\username 2024-02-23 11:24:10.179: Type: Business1 2024-02-23 11:24:10.179: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 11:24:10.187: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 11:24:10.194: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 11:24:10.197: GetStatusUISource: 0x00000000 2024-02-23 11:24:10.199: GetStatusUI: 0x00000000 2024-02-23 11:24:10.202: GetStatusUI: 0x00000000 2024-02-23 11:24:10.202: get_ProviderState: 0x00000000 2024-02-23 11:24:10.203: get_ProviderStateLabel: 0x00000000 2024-02-23 11:24:10.210: get_ProviderStateIcon: 0x00000000 2024-02-23 11:24:10.211: get_AbsoluteUri: 0x00000000 2024-02-23 11:24:10.211: get_QuotaUI: 0x00000000

Application Event Log Entry 1: Faulting application name: ODSyncUtil.exe, version: 1.0.4.5000, time stamp: 0x65d8c4e5 Faulting module name: ODSyncUtil.exe, version: 1.0.4.5000, time stamp: 0x65d8c4e5 Exception code: 0xc0000005 Fault offset: 0x00000000000031fd Faulting process id: 0x0x6F90 Faulting application start time: 0x0x1DA668DE05AE8F7 Faulting application path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Faulting module path: C:\FolderPath\ODSyncUtil-64-bit\ODSyncUtil.exe Report Id: b176e760-b458-4b10-b5ab-b4067d6b3013 Faulting package full name: Faulting package-relative application ID:

Application Event Log Entry 2: Fault bucket 1854719986273327702, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0

Problem signature: P1: ODSyncUtil.exe P2: 1.0.4.5000 P3: 65d8c4e5 P4: ODSyncUtil.exe P5: 1.0.4.5000 P6: 65d8c4e5 P7: c0000005 P8: 00000000000031fd P9: P10:

Please let me know if there is anything else I can try. I'm happy to run a more verbose debugging version if available too. If the dump files Windows created would help, I can send them to you directly (I'd prefer to not post them here ideally).

Thanks!

rodneyviana commented 7 months ago

At least I found where it is getting the access violation:

            HRESULT getQuotaHR = quotaUI->get_QuotaUsedLabel(&quotaUsedLabel);

So either the quotaUI is NULL or get_QuotaUsedLabel is not defined. I am uploading version 1.0. 5.5000 in a few minutes. Please test it again with -d, but I added a new switch, -q, that will ignore quota information and will prevent your environment from crashing and will return the other available information.

aakash-shah commented 7 months ago

Hello Rodney! It looks like the script works now! I'm happy to run more tests or provide more information in case you need anything else - and thanks for your prompt attention and help!

This is what I get: PS C:\FolderPath\ODSyncUtil-64-bit> .\Get-ODStatus.ps1

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : False TotalQuota : 0 UsedQuota : 0 QuotaLabel : IconColorA : 0 IconColorR : 0 IconColorG : 0 IconColorB : 0

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : True TotalQuota : 5497558138880 UsedQuota : 31272753655 QuotaLabel : 29.1 GB used of 5 TB (0%) IconColorA : 255 IconColorR : 0 IconColorG : 95 IconColorB : 184

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : False TotalQuota : 0 UsedQuota : 0 QuotaLabel : IconColorA : 0 IconColorR : 0 IconColorG : 0 IconColorB : 0

For troubleshooting, here is the -d output:

PS C:\FolderPath\ODSyncUtil-64-bit> .\ODSyncUtil.exe -d 2024-02-23 14:15:05.682: Command line arguments parsed 2024-02-23 14:15:05.682: Save file name: 2024-02-23 14:15:05.682: Is debug: 1 2024-02-23 14:15:05.682: Ignore quota: 0 2024-02-23 14:15:05.690: CoInitialize succeeded 2024-02-23 14:15:05.690: SyncRootReader created 2024-02-23 14:15:05.690: EnumerateSubKeys returned 3 keys 2024-02-23 14:15:05.690: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.690: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.691: User: domain\username 2024-02-23 14:15:05.691: Type: Business1 2024-02-23 14:15:05.691: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.700: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.704: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.708: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.711: GetStatusUI: 0x00000000 2024-02-23 14:15:05.714: GetStatusUI: 0x00000000 2024-02-23 14:15:05.718: get_ProviderState: 0x00000000 2024-02-23 14:15:05.719: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.730: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.731: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.731: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.731: QuotaUI Pointer: 0x0000000000000000 2024-02-23 14:15:05.731: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.731: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.732: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.732: User: domain\username 2024-02-23 14:15:05.732: Type: Business1 2024-02-23 14:15:05.732: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.735: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.735: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.738: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.740: GetStatusUI: 0x00000000 2024-02-23 14:15:05.742: GetStatusUI: 0x00000000 2024-02-23 14:15:05.742: get_ProviderState: 0x00000000 2024-02-23 14:15:05.742: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.743: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.743: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.745: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.745: QuotaUI Pointer: 0x000001AF065CDD78 2024-02-23 14:15:05.745: get_QuotaUsedLabel: 0x00000000 2024-02-23 14:15:05.745: Raw Quota Used Pointer: 0x000001AF0658998C, Length: 25 2024-02-23 14:15:05.746: get_QuotaUsedInBytes: 0x00000000 2024-02-23 14:15:05.746: get_QuotaTotalInBytes: 0x00000000 2024-02-23 14:15:05.753: get_QuotaUsedColor: 0x00000000 2024-02-23 14:15:05.754: get_Value Color: 0x00000000 2024-02-23 14:15:05.754: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.754: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.754: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.755: User: domain\username 2024-02-23 14:15:05.755: Type: Business1 2024-02-23 14:15:05.755: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.756: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.757: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.759: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.761: GetStatusUI: 0x00000000 2024-02-23 14:15:05.763: GetStatusUI: 0x00000000 2024-02-23 14:15:05.763: get_ProviderState: 0x00000000 2024-02-23 14:15:05.765: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.765: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.765: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.765: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.766: QuotaUI Pointer: 0x0000000000000000 2024-02-23 14:15:05.766: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.766: SyncRootReader deleted 2024-02-23 14:15:05.766: serializeStateVector returned 1562 characters [{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":true,"TotalQuota":5497558138880,"UsedQuota":31272753655,"QuotaLabel":"29.1 GB used of 5 TB (0%)","IconColorA":255,"IconColorR":0,"IconColorG":95,"IconColorB":184},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0}] PS C:\FolderPath\ODSyncUtil-64-bit>

And the output with -d and -q in case you still need it: PS C:\FolderPath\ODSyncUtil-64-bit> .\ODSyncUtil.exe -d -q 2024-02-23 14:20:37.958: Command line arguments parsed 2024-02-23 14:20:37.958: Save file name: 2024-02-23 14:20:37.958: Is debug: 1 2024-02-23 14:20:37.958: Ignore quota: 1 2024-02-23 14:20:37.965: CoInitialize succeeded 2024-02-23 14:20:37.965: SyncRootReader created 2024-02-23 14:20:37.966: EnumerateSubKeys returned 3 keys 2024-02-23 14:20:37.966: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:37.966: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:37.967: User: domain\username 2024-02-23 14:20:37.967: Type: Business1 2024-02-23 14:20:37.967: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:37.978: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:37.983: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:37.986: GetStatusUISource: 0x00000000 2024-02-23 14:20:37.991: GetStatusUI: 0x00000000 2024-02-23 14:20:37.993: GetStatusUI: 0x00000000 2024-02-23 14:20:37.993: get_ProviderState: 0x00000000 2024-02-23 14:20:37.993: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.003: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.005: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.006: Quota is ignored 2024-02-23 14:20:38.006: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.006: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:38.006: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.007: User: domain\username 2024-02-23 14:20:38.007: Type: Business1 2024-02-23 14:20:38.007: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.009: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:38.010: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:38.012: GetStatusUISource: 0x00000000 2024-02-23 14:20:38.013: GetStatusUI: 0x00000000 2024-02-23 14:20:38.015: GetStatusUI: 0x00000000 2024-02-23 14:20:38.015: get_ProviderState: 0x00000000 2024-02-23 14:20:38.016: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.017: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.017: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.017: Quota is ignored 2024-02-23 14:20:38.017: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.017: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:38.017: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.017: User: domain\username 2024-02-23 14:20:38.017: Type: Business1 2024-02-23 14:20:38.018: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.020: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:38.021: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:38.024: GetStatusUISource: 0x00000000 2024-02-23 14:20:38.025: GetStatusUI: 0x00000000 2024-02-23 14:20:38.027: GetStatusUI: 0x00000000 2024-02-23 14:20:38.027: get_ProviderState: 0x00000000 2024-02-23 14:20:38.027: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.027: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.028: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.028: Quota is ignored 2024-02-23 14:20:38.028: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.028: SyncRootReader deleted 2024-02-23 14:20:38.028: serializeStateVector returned 1511 characters [{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0}]

rodneyviana commented 7 months ago

It’s looking good. It’s working now

Get Outlook for iOShttps://aka.ms/o0ukef


From: aakash-shah @.> Sent: Friday, February 23, 2024 4:24:22 PM To: rodneyviana/ODSyncUtil @.> Cc: Comment @.>; Subscribed @.> Subject: Re: [rodneyviana/ODSyncUtil] ODSyncUtil.exe Crashing Immediately (Issue #9)

Hello Rodney! It looks like the script works now! I'm happy to run more tests or provide more information in case you need anything else - and thanks for your prompt attention and help!

This is what I get: PS C:\FolderPath\ODSyncUtil-64-bit> .\Get-ODStatus.ps1

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : False TotalQuota : 0 UsedQuota : 0 QuotaLabel : IconColorA : 0 IconColorR : 0 IconColorG : 0 IconColorB : 0

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : True TotalQuota : 5497558138880 UsedQuota : 31272753655 QuotaLabel : 29.1 GB used of 5 TB (0%) IconColorA : 255 IconColorR : 0 IconColorG : 95 IconColorB : 184

SyncRootId : OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 CurrentState : 0 Sid : S-0-0-00-000000000-0000000000-0000000000-00000 UserName : domain\username ServiceName : Business1 Label : OneDrive IconUri : file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.s vg isQuotaAvailable : False TotalQuota : 0 UsedQuota : 0 QuotaLabel : IconColorA : 0 IconColorR : 0 IconColorG : 0 IconColorB : 0

For troubleshooting, here is the -d output:

PS C:\FolderPath\ODSyncUtil-64-bit> .\ODSyncUtil.exe -d 2024-02-23 14:15:05.682: Command line arguments parsed 2024-02-23 14:15:05.682: Save file name: 2024-02-23 14:15:05.682: Is debug: 1 2024-02-23 14:15:05.682: Ignore quota: 0 2024-02-23 14:15:05.690: CoInitialize succeeded 2024-02-23 14:15:05.690: SyncRootReader created 2024-02-23 14:15:05.690: EnumerateSubKeys returned 3 keys 2024-02-23 14:15:05.690: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.690: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.691: User: domain\username 2024-02-23 14:15:05.691: Type: Business1 2024-02-23 14:15:05.691: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.700: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.704: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.708: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.711: GetStatusUI: 0x00000000 2024-02-23 14:15:05.714: GetStatusUI: 0x00000000 2024-02-23 14:15:05.718: get_ProviderState: 0x00000000 2024-02-23 14:15:05.719: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.730: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.731: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.731: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.731: QuotaUI Pointer: 0x0000000000000000 2024-02-23 14:15:05.731: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.731: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.732: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.732: User: domain\username 2024-02-23 14:15:05.732: Type: Business1 2024-02-23 14:15:05.732: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.735: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.735: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.738: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.740: GetStatusUI: 0x00000000 2024-02-23 14:15:05.742: GetStatusUI: 0x00000000 2024-02-23 14:15:05.742: get_ProviderState: 0x00000000 2024-02-23 14:15:05.742: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.743: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.743: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.745: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.745: QuotaUI Pointer: 0x000001AF065CDD78 2024-02-23 14:15:05.745: get_QuotaUsedLabel: 0x00000000 2024-02-23 14:15:05.745: Raw Quota Used Pointer: 0x000001AF0658998C, Length: 25 2024-02-23 14:15:05.746: get_QuotaUsedInBytes: 0x00000000 2024-02-23 14:15:05.746: get_QuotaTotalInBytes: 0x00000000 2024-02-23 14:15:05.753: get_QuotaUsedColor: 0x00000000 2024-02-23 14:15:05.754: get_Value Color: 0x00000000 2024-02-23 14:15:05.754: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.754: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:15:05.754: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.755: User: domain\username 2024-02-23 14:15:05.755: Type: Business1 2024-02-23 14:15:05.755: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:15:05.756: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:15:05.757: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:15:05.759: GetStatusUISource: 0x00000000 2024-02-23 14:15:05.761: GetStatusUI: 0x00000000 2024-02-23 14:15:05.763: GetStatusUI: 0x00000000 2024-02-23 14:15:05.763: get_ProviderState: 0x00000000 2024-02-23 14:15:05.765: get_ProviderStateLabel: 0x00000000 2024-02-23 14:15:05.765: get_ProviderStateIcon: 0x00000000 2024-02-23 14:15:05.765: get_AbsoluteUri: 0x00000000 2024-02-23 14:15:05.765: get_QuotaUI: 0x00000000 2024-02-23 14:15:05.766: QuotaUI Pointer: 0x0000000000000000 2024-02-23 14:15:05.766: getInstanceStatus returned 0x00000000 2024-02-23 14:15:05.766: SyncRootReader deleted 2024-02-23 14:15:05.766: serializeStateVector returned 1562 characters [{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":true,"TotalQuota":5497558138880,"UsedQuota":31272753655,"QuotaLabel":"29.1 GB used of 5 TB (0%)","IconColorA":255,"IconColorR":0,"IconColorG":95,"IconColorB":184},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0}] PS C:\FolderPath\ODSyncUtil-64-bit>

And the output with -d and -q in case you still need it: PS C:\OITDevEnv\ODSyncUtil-64-bit> .\ODSyncUtil.exe -d -q 2024-02-23 14:20:37.958: Command line arguments parsed 2024-02-23 14:20:37.958: Save file name: 2024-02-23 14:20:37.958: Is debug: 1 2024-02-23 14:20:37.958: Ignore quota: 1 2024-02-23 14:20:37.965: CoInitialize succeeded 2024-02-23 14:20:37.965: SyncRootReader created 2024-02-23 14:20:37.966: EnumerateSubKeys returned 3 keys 2024-02-23 14:20:37.966: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:37.966: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:37.967: User: domain\username 2024-02-23 14:20:37.967: Type: Business1 2024-02-23 14:20:37.967: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:37.978: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:37.983: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:37.986: GetStatusUISource: 0x00000000 2024-02-23 14:20:37.991: GetStatusUI: 0x00000000 2024-02-23 14:20:37.993: GetStatusUI: 0x00000000 2024-02-23 14:20:37.993: get_ProviderState: 0x00000000 2024-02-23 14:20:37.993: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.003: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.005: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.006: Quota is ignored 2024-02-23 14:20:38.006: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.006: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:38.006: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.007: User: domain\username 2024-02-23 14:20:38.007: Type: Business1 2024-02-23 14:20:38.007: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.009: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:38.010: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:38.012: GetStatusUISource: 0x00000000 2024-02-23 14:20:38.013: GetStatusUI: 0x00000000 2024-02-23 14:20:38.015: GetStatusUI: 0x00000000 2024-02-23 14:20:38.015: get_ProviderState: 0x00000000 2024-02-23 14:20:38.016: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.017: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.017: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.017: Quota is ignored 2024-02-23 14:20:38.017: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.017: Getting status for OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1 2024-02-23 14:20:38.017: SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.017: User: domain\username 2024-02-23 14:20:38.017: Type: Business1 2024-02-23 14:20:38.018: Current User SID: S-0-0-00-000000000-0000000000-0000000000-00000 2024-02-23 14:20:38.020: CoCreateInstance Storage Provider for OneDrive: 0x00000000 2024-02-23 14:20:38.021: QueryInterface for IStorageProviderStatusUISourceFactory: 0x00000000 2024-02-23 14:20:38.024: GetStatusUISource: 0x00000000 2024-02-23 14:20:38.025: GetStatusUI: 0x00000000 2024-02-23 14:20:38.027: GetStatusUI: 0x00000000 2024-02-23 14:20:38.027: get_ProviderState: 0x00000000 2024-02-23 14:20:38.027: get_ProviderStateLabel: 0x00000000 2024-02-23 14:20:38.027: get_ProviderStateIcon: 0x00000000 2024-02-23 14:20:38.028: get_AbsoluteUri: 0x00000000 2024-02-23 14:20:38.028: Quota is ignored 2024-02-23 14:20:38.028: getInstanceStatus returned 0x00000000 2024-02-23 14:20:38.028: SyncRootReader deleted 2024-02-23 14:20:38.028: serializeStateVector returned 1511 characters [{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0},{"SyncRootId":"OneDrive!S-0-0-00-000000000-0000000000-0000000000-00000!Business1|a1a11111111111a11111111a111aaa11+1","CurrentState":0,"Sid":"S-0-0-00-000000000-0000000000-0000000000-00000","UserName":"domain\username","ServiceName":"Business1","Label":"OneDrive","IconUri":"file:///C:/Program%20Files/Microsoft%20OneDrive/24.020.0128.0003/images/lightTheme/CloudIconSynced.svg","isQuotaAvailable":false,"TotalQuota":0,"UsedQuota":0,"QuotaLabel":"","IconColorA":0,"IconColorR":0,"IconColorG":0,"IconColorB":0}]

— Reply to this email directly, view it on GitHubhttps://github.com/rodneyviana/ODSyncUtil/issues/9#issuecomment-1962081230 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGT5MAXHDIQYYVY25QET2GTYVEJJNBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVE3TKMBQGM3TOMZUQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRSGE2DOOBYGYZTCMNHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you commented on the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aakash-shah commented 7 months ago

Perfect, thanks!