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

Unpackaged C# WinAppSdk 1.0.3 app crashes when RivaTuner Statistics server app running #2468

Open
stefansjfw opened this issue May 4, 2022 · 3 comments
Assignees

Comments

@stefansjfw
Copy link

stefansjfw commented May 4, 2022

Describe the bug

Following https://docs.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app
for C# unpackaged app I get:

The program '[20148] App6.exe' has exited with code 3221226107 (0xc000027b)

while trying to run the app and RivaTuner Statistics server app is running ( installed together with MSI afterburner https://www.msi.com/Landing/afterburner/graphics-cards):
image

When I set Application detection level to None
image

App starts as expected:
image

Tried with both Winappsdk 1.0.2 and 1.0.3

Steps to reproduce the bug

  1. Create Blank App, Packaged (WinUI 3 in Desktop) in VS
  2. Add None
    to csproj file
  3. Change running profile to App(Unpackaged)
  4. try running the app - observe crash
  5. Close (or set application level to None) RivaTuner app
  6. Try running app again - observe it's working

Expected behavior

App is running without crash

Screenshots

No response

NuGet package version

No response

Packaging type

Unpackaged

Windows version

Windows 10 version 21H1 (19043, May 2021 Update)

IDE

Visual Studio 2022

Additional context

No response

@ShashankNay
Copy link
Contributor

There seems to a bug in the RTSS hook process that affects WinUI apps. The hook process returning 1 on a CreateWindow call prevents creation of the window. This is manifesting itself in a ‘Module Not Found’. I suggest following up with Riva Tuner.

@riverar
Copy link
Contributor

riverar commented May 31, 2022

Common bug with RivaTuner. If you need help excluding particular apps, this may help File-New-Project/EarTrumpet#1092 (comment)

@beeradmoore
Copy link

Hey @stefansjfw , I was never able to replicate this but does this still break for you?

RTSS put out an update which should handle this better but I am still getting some users having the issue even with the updated RTSS.

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

No branches or pull requests

4 participants