-
Notifications
You must be signed in to change notification settings - Fork 867
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
startup error on Windows11 24H2 #957
Comments
Sorry for forgetting to mention that I am using version 2.1.7 of mimalloc |
Yikes -- that's a bit scary. I recently updated the redirection dll; can you perhaps try with the latest Also, if it still fails, can you try with the environment variable |
I have the same problem with the latest mimalloc-redirect.dll version Unhandled exception at 0x00007FF891B55CC9 (ntdll.dll) in 1.exe: 0xC0000005: Access violation reading location 0x0000000000000000. Call stack:
|
Ah great -- thanks, I'm looking into it. It is a bit strange to see an access violation inside ntdll though... |
I updated mimalloc-redirect in the latest |
It didn't work for me, the same error. |
Ok -- I need to get my hands on a 24H2 windows version then -- that would be earliest later next week though :-( |
ok, thanks a lot. BTW I'm using version 2.0.3. |
Thank you for your work. I will test it tomorrow. |
I conducted two tests, |
I got my hands on Windows 24H2, version 10.0.26100.2314 (use I could not reproduce the issue though. I see patch 2314 came out on Nov 12 -- maybe this fixed the issue? Can you try this? |
On my machine, |
I tried the 2314 patch (downloaded from https://www.windowslatest.com/2024/11/12/windows-11-kb5046617-24h2-out-with-fixes-direct-download-msu/), after installing it and restarting my computer, Then, when I ran my program, the error 0xc0000142 still persisted. |
I tried to create a new project with VS, a console application, and then introduced mimalloc (using the same dynamic libraries, mimalloc-override.dll and mimalloc-redirect.dll, following the same steps). When I ran it on Windows 11 24H2, everything worked fine, and the console printed "Hello World!". Oh my goodness, now I'm completely at a loss. I don't know how to solve the issue with my program. |
For me the problem was solved after I added the inclusion of the <mimalloc-new-delete.h> to the file that contains the main function. |
My program uses the mimalloc dynamic library, and when it starts on Windows 11 24H2, a popup error occurs stating, "The application was unable to start correctly (0xc0000142). Click OK to close the application." I have tested it and found that it works normally on Windows 11 23H2. Currently, I have switched the dynamic library to a static library, and users on Windows 11 24H2 are not encountering any startup errors.
The text was updated successfully, but these errors were encountered: