ExplorerPatcher icon indicating copy to clipboard operation
ExplorerPatcher copied to clipboard

Incompatibility with 22000.282

Open petre-c opened this issue 5 years ago • 47 comments

I downloaded the latest dxgi.dll (ver. 22000.258.30.4), pasted to C:\Windows, restarted Windows Explorer, rebooted the computer, nothing seems to have happened.

%appdata%\ExplorerPatcher has a single file in it - twinui.pcshell.pdb image

My Win11 build is 22000.282, Edition - Windows 11 Pro

petre-c avatar Oct 16 '21 08:10 petre-c

Same for me. Probably this itisn't working yet with 22000.282

marcoh242 avatar Oct 16 '21 09:10 marcoh242

Same for me after update to 22000.282

Riam-Mar avatar Oct 16 '21 10:10 Riam-Mar

Installed on 22000.258 before updating and worked fine. Updated to .282 = all gone. Back to Start11. Looking forward to an update for .282!

vicbyrd avatar Oct 16 '21 12:10 vicbyrd

Installed on 22000.258 before updating and worked fine. Updated to .282 = all gone. Back to Start11. Looking forward to an update for .282!

Can confirm this is happening on my machine, too.

BraINstinct0 avatar Oct 16 '21 12:10 BraINstinct0

Microsoft hasn't yet made available the symbol files for twinui.pcshell.dll from build 22000.282. In an ideal world, we wouldn't need those. But for the moment, symbol files are still used to determine where to hook some stuff (Win+X, pop-up menu skins and the Start menu). Once this address serves you a file: http://msdl.microsoft.com/download/symbols/twinui.pcshell.pdb/73402D8892AF2DA2639F29A5D2F483911/twinui.pcshell.pdb, it will probably start working.

valinet avatar Oct 16 '21 15:10 valinet

For those interested: StartAllBack works because it has also reimplemented the Win+X menu, not needing the logic from twinui.pcshell.dll which EP uses instead. Also, it works because it does not hook the Start menu, which you kind of need the symbol files to be able to offer the kind of tweaks that EP offers. So yeah, 2 areas of improvements I guess, if anyone's interested in reimplementing the Win+X menu, that's be a great addition, for example.

valinet avatar Oct 16 '21 15:10 valinet

Maybe allow to work with functions that do not depend on that database? I mean, what if MS stops releasing those databases, etc?

Anix-x avatar Oct 16 '21 16:10 Anix-x

Symbol files are usually made available for any build. They are still available for Windows Vista I believe, if not earlier. This hasn't been a problem until today, right?

Working without some functionality is basically the same thing, people will still start complaining that stuff is not working, and you have to ask them an additional question, to figure out whether it is a bug with that functionality, or simply because it could not be hooked for whatever reason.

Also, suppose not releasing symbols becomes a regular thing, than this sort of patcher also becomes exponentially harder to develop. Looking through the system files is way more difficult without symbols... it would make a lot of this practically impossible... even if you do not end up hooking functions directly, but patching the IAT table, you still need to look on the disassembly to figure how things work, which is very difficult without augmenting that with information from the symbol files.

As I said multiple times now, this is an educational project. I am more interested in researching new stuff, discovering how things work etc rather than spending each and every day implementing mitigations and fixes and workarounds for the millionth niche case out there. It's starting to turn into that and I don't enjoy it at all. The solution here is to generally wait a bit for the files to be available, if we need to be on a build newer than what I tested this on anyways, and also sit down for a bit and devise a feasible plan for improving this situation.

For example, hooking Start could be kind of avoided for the tweak "max number of most used apps". We could just patch the instructions by pattern, as it is a unique B8 06 00 00 00 C3 (mov eax, 6; ret) and likely to stay that way. For the other "show app list when opening", I don't have an immediate idea: there I hook the VisibilityChanged callback of Start and trigger the ShowAllApps function. For Explorer, reimplementing the code that builds the Win+X menu is one thing, and then reimplementing the code that skins the pop-up menus another thing. And then making the code use our menu provider instead of the original one. That gets rid of needing symbols there as well. Another idea would be to load some older version of twinui.pcshell.dll, one for which we know the offsets in advance, and use the functionality from there, this avoids having to spend time rewriting something that's already basically in there. But then comes the problem, how do you distribute that file to users, as we are not allowed to do that... there are multiple avenues, an entire discussion to have etc. Much more complicated than it seems on the surface. Also, I explained above how StartAllBack manages to still work. They went with the option to reimplement whatever they needed and couldn't be hooked more "safely" let's say (IAT hooks are not dependent on symbols, like regular hooks, to actually do something useful)... I was hoping that I could have the talk on these forums as well, but it seems to draw no interest from people knowledgeable in these areas... or at least find people willing to contribute; it is pretty hard to maintain this, Microsoft releases builds weekly, this is becoming a full time job in its own rather than a hobby project... I don't know a definite, "best solution" answer for every question out there; some things are implemented a certain way because that's how i thought at that time would be best, maybe did not have the knowledge that I have now, maybe did not have the time or maybe the energy to invest in a better but more complicated/complex solution etc. Also, I guess probably all developers are on Linux or macOS, I mean, people are kind of tired of wasting their days in Microsoft's land, just to get a centered taskbar and a hardcoded menu.

valinet avatar Oct 16 '21 16:10 valinet

Suppose I need only the context menus, but the debug symbols are unavailable...

Anix-x avatar Oct 16 '21 17:10 Anix-x

Yeah, I won't spend any more time in implementing workarounds for symbols missing, not being available etc. Better is to do something more constructive, like get rid of the need for them.

The immediate solution for any 'need' is to fork the project, take out the functionality you don't want, and compile for your particular use case. I don't want to spend the energy to upstream the changes that allow this to work without the functionality that depends on the symbols. I'd rather fix the original nuisance in the first place, and get rid of the need for symbols. Is there an emergency, is compatibility with 282 required in 3 hours otherwise the Earth goes flat? I suppose no. Then I'd rather work on a proper solution. 282 is not even released officially yet, so let me spend the time fixing the problem for good, for example.

The code is always available, one can compile whatever version they want with whatever subset of functionality they want. The upstream does not have to support every niche case. For that, just fork the project and maintain your own version... simple.

Again, I am making a call for having a conversation on the technical side, on how to fix this properly...

valinet avatar Oct 16 '21 17:10 valinet

"this is an educational project" - Good on ya @valinet. You improve thru learning. We all benefit from your work. Keep it up! Sorry I can't comment/help on the technical side. It's all I can do to get an Arch bootstrap distro installed. Thank you.

vicbyrd avatar Oct 16 '21 18:10 vicbyrd

"this is an educational project" - Good on ya @valinet. You improve thru learning. We all benefit from your work. Keep it up! Sorry I can't comment/help on the technical side. It's all I can do to get an Arch bootstrap distro installed. Thank you.

Finally, someone that understands me. Like, most if not all of this stuff I had almost no clue about before starting working on this. What I am saying is that I could find a way to refactor the code, make it work a certain way etc, but I'd rather spend the time fixing the problem which brought everyone here, as I think it is more technically challenging and gives me the opportunity to learn a few new things. That it is more time consuming, yeah, probably, but this is how one learns...

valinet avatar Oct 16 '21 18:10 valinet

"but I'd rather spend the time fixing the problem which brought everyone here" - And your time is much better spent doing exactly that. There aren't many that even understand the problem much less address/resolve it. I truly appreciate those of you who spend their time on problems that can help all of us. I know it must be a fine line to post a quality product that works for the majority of users vs. spending an inordinate amount of time fixing "bugs" for that user who just leeches a file and expects it to work exactly how they want it to. Not that you need advise from me but stay on the path you've chosen - it's the right one.

I appreciate your responses to my comments and find it unusual to actually connect with someone in this electronic omniverse in which we live. Very cool!

vicbyrd avatar Oct 16 '21 20:10 vicbyrd

@vicbyrd Thank you for the support. And the thing is, it is not a situation of me being obtuse and not wanting to help someone or implement something just for the sake of it. On the contrary, I think I am cooperative and also have tried to help people here and integrate as fast as I could the features asked.

The problem here is, at least in my opinion at this moment in time, that it does not make much sense to revamp or rearchitect too much around this symbol need part as first of all, Microsoft not uploading the symbols is a rare exception and second of all, I don’t think investing energy in improving the symbols part and then investing energy in replacing symbols altogether makes any sense. It’s more logical to start directly preparing the grounds and developing the strategy for getting rid of the symbols need, despite that leaving people on this build to wait a bit longer until things work again. And the reasons for this being logical in this context are, as I said, because this project’s main purpose is educational, plus I am also a single developer with limited time, plus this is a free, best effort, use as-is product. I am doing my best, but I also have to live and work on other stuff etc, I am not employed here, so to say; I can’t be working on this all the time, so with the limited time I can give to it, it’s best to invest that in what pays the most long term for this project’s purpose, or at least that’s how I feel.

The project may not seem much judging by the lines of code for example, but working on this ain’t easy work at all from a development perspective. You struggle around a few good hours to finally be able to spit a few lines of code. And like, you struggle, you ain’t sitting on your ass playing Solitaire and then just code in the last 10 minutes. But that’s the nature of it, I am not complaining about that here, only thing is, people should be aware of that. Some things may take time, but that does not mean I have given up on that, or that I don’t care etc. it just takes time… it’s the nature of it, it sometimes breaks and takes a while to fix, like, please do not install ExplorerPatcher on the computer that manages some nuclear facility 😂; although, I think it would be fine there, as that shouldn’t get Windows updates…

valinet avatar Oct 16 '21 20:10 valinet

The server seems to be documented here. Gotta hit their mailbox if they're aware of the missing symbol files?

BraINstinct0 avatar Oct 17 '21 00:10 BraINstinct0

Try that, why not? It's the first time this happened from my experience.

valinet avatar Oct 17 '21 00:10 valinet

No reply yet, will update if anything notable happens

BraINstinct0 avatar Oct 18 '21 06:10 BraINstinct0

After installing the tool, moving the taskbar to the left, updating windows, the tool doesn't work anymore. How can I uninstall it since it is not possible to move the taskbar back to the bottom while the tool is not working? Renaming it to dxgio.dll didn't work.

askmike72 avatar Oct 18 '21 07:10 askmike72

After installing the tool, moving the taskbar to the left, updating windows, the tool doesn't work anymore. How can I uninstall it since it is not possible to move the taskbar back to the bottom while the tool is not working? Renaming it to dxgio.dll didn't work.

I solved it by uninstalling update "KB5006746" and reverting back to the previous version. At this point you can choose to stop the updates (for a week or via this tool wushowhide.diagcab ) or restore ExplorerPatcher to its default settings, remove it and update windows 11.

tesivo avatar Oct 18 '21 08:10 tesivo

Symbol files are usually made available for any build. They are still available for Windows Vista I believe, if not earlier. This hasn't been a problem until today, right?

Another vote of thanks and apprecation, and, from a long ago failed dev, that you're taking the right approach using the symbol files. Waiting a few days is the right thing to do! I loved having separate tiles with titles back for a few days having found your project, and missed it the moment I updated to build 282, but I know they'll be back, and thank you for your work.

BJReplay avatar Oct 18 '21 23:10 BJReplay