Notepad3
Notepad3 copied to clipboard
Notepad3 crashes immediately on startup on Server 2022 Core
I haven't bisected, but at some point between 5.21.905.1 and 5.19.815.2595, a change was introduced that prevents Notepad3 from starting up on Server Core 2022. It still starts on older versions of Server Core. It dies very very early, right after loading ntdll:
My wildly speculative guess is that some of the code in DarkMode.cpp
is only considering Windows build numbers and that the Server Core version of ntdll may not have the function it's trying to load. It's also possible that this is Server 2022 in general, I don't have the GUI version installed anywhere. The issue appears to be present in the current RC release of Notepad3 as well.
Sorry for this kinda low quality bug report. I will try to narrow it down a bit more conclusively.
It is correct, that the "DarkMode" feature for Win32 GDI applications (https://github.com/ysc3839/win32-darkmode) is based on undocumented methods of Win10 1809+.
As the entry-points (addresses) of these methods may change with different Windows versions, there is the risk of crashes.
We changed our strategy from releasing this feature for dedicated (tested) Windows versions only and free them for all Windows versions beyond Win10 1809. This is to support new Windows Insider Builds with the risk of crashes - the entry-points of the methods have not changed from Win10 1809 until now (Win11 release).
All the "DarkMode" methods were located in user32.dll
and uxtheme.dll
and not in ntdll.dll
, so a crash in ntdll.dll
should not be related to "DarkMode" feature - this issue needs further investigation...
@hpwamr : No more crashes on Windows Server 2022 Core ?
No more crashes on Windows Server 2022 Core ?
Issue is dated Nov 22, 2021, no response/comment for over a year! 🤔