-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Crash on startup due to mismatched DPI #1200
Comments
Hi, |
Sure, this is the log from when I first ran it. log-20240203T122628.txt I’m not certain it would fix the issue, but DevToys should declare per-monitor/per-monitor v2 scaling either way. Right now, it’s running in System scaling. It looks like WPF does not respect the declaration in the .csproj file and it has to be specified in the SxS manifest. |
Indeed, at least I should add this to the manifest! |
Current behavior
The app will open with a blank window and then crash before loading content.
How to reproduce it (as minimally and precisely as possible)
Expected behavior
The app should launch.
Screenshots
No response
Workaround
Change DPI in system settings and back. Unclear if app needs to be launched in between changing.
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
Version 2.0-preview.1 | Windows 11 26100.712
Relevant Assets/Logs
Exception from Visual Studio debugger:
WebView2: Initialization failed due to a mismatch in DPI awareness. Please ensure that the DPI awareness of the host app matches the DPI awareness of current WebView2 processes using the same user data folder.
The text was updated successfully, but these errors were encountered: