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

Identify the ProviderGuid failing with 1168 #148

Merged
merged 5 commits into from
Jul 13, 2023

Conversation

bobsira
Copy link
Contributor

@bobsira bobsira commented Jul 12, 2023

This change it to help us figure out ETW events failing with 1168: ERROR_NOT_FOUND code.

We do not have a fix at the moment.

This change is to do the following:

  1. Help us identify the ProviderGuid failing with 1168 code
  2. Give an informative error message
  3. Help us identify more ETW Providers having this specific failure

if (StringFromCLSID(providerId, &clsidString) != S_OK)
{
logWriter.TraceError(
Utility::FormatString(L"Failed to convert GUID to string").c_str()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This failure occurs because the GUID is not a valid one? Might be nice to provide some more context for the user.

Copy link
Contributor Author

@bobsira bobsira Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this state in the program execution, we've done the check for valid GUID

From the docs for StringFromCLSID we can only get to this branch when the value returned is E_OUTOFMEMORY. We can therefore provide this detail instead of having a vague message that the conversion failed.

Copy link
Contributor

@CharityKathure CharityKathure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobsira The Logic LGTM however add some description on the PR for context.

@bobsira bobsira changed the title identify the ProviderGuid failing with 1168 Identify the ProviderGuid failing with 1168 Jul 13, 2023
CharityKathure
CharityKathure previously approved these changes Jul 13, 2023
@bobsira bobsira merged commit 56f8f0c into main Jul 13, 2023
@profnandaa profnandaa deleted the user/bosira/schema-not-found-error-iden branch July 13, 2023 12:22
CharityKathure pushed a commit that referenced this pull request Dec 7, 2023
* identify the ProviderGuid failing with 1168

* added informative error messages

* lint fixes

* reverted the check for all failing providers

* another lint fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants