ramensoftware / windows-11-taskbar-styling-guide

A collection of commonly requested taskbar styling customizations for Windows 11
190 stars 16 forks source link

Mod Breaks Desktop Switching Crashing Explorer #104

Open CalebKeatts opened 2 months ago

CalebKeatts commented 2 months ago

After using process of elimination, I have determined this mod causes weird behavior with desktop switching. Namely, in some rare (but not rare enough) edge cases, explorer will completely crash when attempting to switch virtual desktops.

Steps to reproduce:

  1. Have Taskbar Styler enabled (v 1.3.7)
  2. Open the task view (⊞+Tab)
  3. Select the title of another desktop (i.e. Desktop 5)
  4. Select that same desktop (i.e. 5) to switch to
  5. Task view closes and explorer crashes and doesn't switch

Doing these same steps without Taskbar Styler installed switches desktops as expected.

I have a Surface Pro 10 running Windows 11 23H2 Build 22631.4169

m417z commented 2 months ago

Might be similar to this issue: https://github.com/ramensoftware/windhawk-mods/issues/478. I assume it happens even if no themes or styles are used, right?

Can you capture a crash dump? You should be able to get it with the following steps:

CalebKeatts commented 2 months ago

It does appear to be a similar issue, though this happens (at least to me) more than a few times a week. EDIT removed attachment.

CalebKeatts commented 2 months ago

Sorry about that, here's a zip of the crash dump

https://quickshare.samsungcloud.com/a3RhjjJFF3yx

m417z commented 2 months ago

Thanks, I ended up using PeaZip. There's nothing in the dump that seems related to the mod. If no styles are applied, then my best guess is that it's a Windows problem caused by their implementation of XAML diagnostics, which is a way of receiving events about UI elements, used mainly for debugging.

One way to verify it is to disable the mod, and try one of the following which uses XAML diagnostics too:

CalebKeatts commented 2 months ago

Thank you for the feedback and troubleshooting tips. So I tried using UWPSpy (already had installed) and it also caused the crash to occur. Unfortunate as I use virtual dekstops hundreds of times a day, and I'm sure Microsoft won't be bothered fixing a bug none of their "normal" users will encounter.