Skip to content

DWMBlurGlass heavily conflicts with Paint.NET, causing softlock when switching user contexts, among other issues #612

@SKCro

Description

@SKCro

Describe the bug

A clear and concise description of what the bug is:

Paint.NET 5.1.11 seems to conflict heavily with DWMBlurGlass, causing some sort of weird issue where it causes various visual bugs in other programs and, more importantly, softlocks the computer when locking your session (via Win+L, screensaver timeout, rundll32 User32.dll,LockWorkStation or otherwise), opening a UAC dialog, pressing Ctrl+Alt+Del, shutting down/restarting/logging out, etc, all of which involve switching user contexts.

Other symptoms include Firefox context menus no longer drawing, Chrome's UI failing to render at all if the program wasn't already open before, UWP apps failing to render entirely unless it has already been opened that session (eg. Win+Period emoji picker, Settings app), and the virtual desktop switcher animation (Ctrl+Win+RightArrow/Ctrl+Win+LeftArrow) failing to play and causing an instant switch (the most reliable way to test for the presence of this bug).

The system returns to normal the moment Paint.NET closes or DWMBlurGlass is unloaded. Disabling hardware acceleration in Paint.NET and disabling all plugins does not help. The bug also cannot be mitigated by loading DWMBG after opening Paint.NET - the bug just comes back, so it's definitely some kind of conflict.

My theory is that this is some kind of weird GPU surface allocation bug? I have no idea though.

To Reproduce

Steps to reproduce the behavior:

  1. Install and activate DWMBlurGlass
  2. Open Paint.NET
  3. Observe the bugs (virtual desktop switcher and softlock when locking/Ctrl+Alt+Del are the easiest ways to test)

Screenshots

If applicable, add screenshots to help explain your problem:

N/A, since it's hard to screenshot menus that don't draw, and it'd be hard to record a softlock since recording software runs as the user.

Additional information (please complete the following information):
OS Version : Windows 10 IoT LTSC 2021, OS Build 19044.6575
Software Version : 2.3.1

What other third-party software do you use:
Paint.NET (obviously)
Windhawk (although injection into PDN has been disabled for all mods for troubleshooting)
ExplorerBlurMica
TranslucentFlyouts (Disabling either and/or both of these doesn't help so that narrows it down to just PDN, DWMBG, and possibly my GPU driver)

Additional context
I'm using a Steam Deck, and I hear the GPU drivers are a bit buggy with edge cases so it might be an issue with that? I dunno though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions