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

[UWP][Background Task] 1DS crashed during Windows::PlatformEventHandler::AttachEventHandlers() #948

Open
mosunchao opened this issue Nov 2, 2021 · 6 comments
Assignees
Labels
bug Something isn't working csharp C# layer issue help wanted Extra attention is needed iOS iOS related issue

Comments

@mosunchao
Copy link

mosunchao commented Nov 2, 2021

Describe your environment. Describe any aspect of your environment relevant to the problem, including your SDK version, platform, OS version, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main brach.

rerpo on latest 3.5.270.0
running on Windows 11, consuming 1DS in UWP background task minimum version

Steps to reproduce.
we added a project Background Task C#,
TargetPlatformVersion = 10.0.19041.0
TargetPlatformMinVersion = 10.0.18362.0.
we initialize 1 DS library.

What is the expected behavior?
1DS LogManager should initalize successfully.

What is the actual behavior?
the process terminated.
in our telemetry, we have 602,492 users with reported 2,772,579 crashes of the same issue in less than 30 days.

Additional context.
Some snippet of the crash dump's call stack:
[External Code]
combase.dll!CRestrictedError::GetSignature(wchar_t * * pbstrSignature) Line 1014 C++
combase.dll!CapturePOFDumpIfRequested(IRestrictedErrorInfo * pRestrictedErrorInfo) Line 2089 C++
combase.dll!SendReport(HRESULT error, unsigned int cchMax, const wchar_t * message, unsigned short pSid, void * pExceptionObject, IUnknown *) Line 500 C++
combase.dll!RoOriginateError(HRESULT error, HSTRING__ * message) Line 591 C++
[External Code]
Microsoft.Applications.Telemetry.Windows.dll!Microsoft::Applications::Telemetry::Windows::PlatformEventHandler::AttachEventHandlers() Line 32 C++
Microsoft.Applications.Telemetry.Windows.dll!Microsoft::Applications::Telemetry::Windows::PlatformEventHandler::PlatformEventHandler() Line 25 C++
Microsoft.Applications.Telemetry.Windows.dll!Microsoft::Applications::Telemetry::Windows::LogManager::Initialize(Platform::String ^ tenantToken, Microsoft::Applications::Telemetry::Windows::LogConfiguration ^ configuration) Line 86 C++

@mosunchao mosunchao added the bug Something isn't working label Nov 2, 2021
@lalitb
Copy link
Contributor

lalitb commented Nov 2, 2021

in our telemetry, we have 602,492 users with reported 2,772,579 crashes of the same issue in less than 30 days.

@mosunchao - Is there a specific pattern whether it is reported only on Windows 11, and/or a specific Surface device/model? Also, looks like the above stack trace is missing subsequent function calls after LogManager::Initialize, if that is the case can you please make it complete.
Just a heads-up, the UWP C++/CX binding support is community-driven, and not funded to be supported by the Observability team.

@lalitb lalitb added csharp C# layer issue help wanted Extra attention is needed labels Nov 2, 2021
@SoundersFan
Copy link

Same problem for me. The line that is faulting is:

                    if (Application::Current != nullptr)

@lalitb
Copy link
Contributor

lalitb commented Jan 3, 2022

@SoundersFan - Just wondering if you have a plan to contribute a fix for this as we discussed in the community meeting some time back?

@SoundersFan
Copy link

SoundersFan commented Jan 3, 2022 via email

@aykejriw aykejriw added the iOS iOS related issue label Jan 4, 2022
@lalitb
Copy link
Contributor

lalitb commented Jul 7, 2022

@SoundersFan - Just checking on your plans to contribute fix for this issue. Thanks :)

@lalitb
Copy link
Contributor

lalitb commented Jul 26, 2022

@SoundersFan - Any plans for the fix. This issue is stale, and in absence of any fix or activity, we would like to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working csharp C# layer issue help wanted Extra attention is needed iOS iOS related issue
Projects
None yet
Development

No branches or pull requests

4 participants