-
Notifications
You must be signed in to change notification settings - Fork 862
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
use the python version of mujoco3.2.6 under win11, an OSError: [WinError 1114] The dynamic link library (DLL) initialization routine failed. #2275
Comments
After many attempts, I finally found that only python of mujoco3.2.6 will cause this error on the win11 platform.The only solution is to lower the version. Are there any other solutions? |
To clarify, are you reporting a regression in Windows support between version <= 3.2.5 and 3.2.6 ? |
win10 also appear |
yes |
Yes, I faced the same issue. I was developing the work on a Mac M2 and Linux using mujoco 3.2.6. However, when it came to Windows 11, I encountered the exact same issue described in the title. I was forced to use version 3.2.3 on Windows 11 since 3.2.3 also worked on Mac and Linux I created a simple pip that allows anyone to use their own XML or my default XML to enable FEAGI to take control. This means a lot of people (hopefully) will try it out, including non-tech-savvy users. So this is likely to be an issue for Windows users only |
Could you please confirm your Python version? |
3.9.19 |
Thanks. Does anyone have a stack trace? |
w11 in my office has version 3.12, I believe. I will post tomorrow for the accurate version using 3.2.6
I couldn’t install mujoco on my w8 computer, so I will need to wait until I get back to my office. I only have a Mac and Linux atm |
Stack trace here:
ignore the feagi_connector_mujoco as it simply import mujoco.viewer. python version here:
OS: W11 |
OK, I suspect this is caused by our recent LLVM/Clang version upgrade. Needs further investigation. |
Our CI runs on Windows Server 2022 (roughly equivelent to Windows 10) and we don't see this issue there. If anyone's able to verify this on Windows 10 as well that'd be appreciated. |
Could you please try installing the latest MSVC redistributable ? |
Thank you so much for your time again! I have a question, and pardon my ignorance, but what’s the difference between local native w11 and Windows Server 2022 (aside from it being based on w10)? Also, from my understanding, shouldn’t I’d really love for more people to try and explore mujoco, as it has become a passion of mine! |
It doesn't work even after following these steps I did:
|
OK, I'm now very baffled. I've just tested this on a brand new Windows Server 2025 VM (on GCP) and it's working fine. The only thing that I installed on the VM are Python 3.12 and MSVC Build Tools. In the MSVC Build Tools installer I selected Windows SDK 10.0.26100.1742 and the C++ Build Tools. AFAICT the only possible difference between this and a typical Win 11 machine is the Windows SDK which shouldn't be required at runtime! Just to rule out the issue, please also try installing Windows SDK 10.0.26100.1742 although I don't expect that this will solve your issue. |
I'm not a Windows expert, but my understanding is that from the userland perspective Windows Server 2022 should look the same as Windows 10, and Windows Server 2025 should look the same as Windows 11. The idea is for |
I am also very confused. I am not a win expert too. According to the query information, I feel that it is because mujoco.dll cannot be correctly recognized on win11. |
no luck :( |
The stack trace shows an error in loading one of the bundled plugin DLLs. As a sanity check, could you comment out line 76 in |
I think this is the case, but someone else with Windows 10 has that issue too. |
OK this is a good sign, try making some MuJoCo function calls and see if the library is working. Next step in troubleshooting is to add a |
my mistake,It seems that the error occurs when loading the dll of the plugin. |
I have no idea what's going on,i,comment out line 76 in init.py Something went wrong log: Thread 0x00021de8 (most recent call first): Current thread 0x00023a44 (most recent call first): Current thread 0x00021de8 (most recent call first): Thread 0x00023a44 (most recent call first): I'm pretty sure it doesn't happen in versions lower than 3.2.6 |
by the way,this is my mini test python code ,Test load dll mujoco_path = r"D:\Miniconda\envs\work\lib\site-packages\mujoco\mujoco.dll" PLUGIN_HANDLES = [] def _load_all_bundled_plugins(): _load_all_bundled_plugins() some wrong log In fact, what I find very strange is that it only appears in version 3.2.6. In order to figure out the reason, I even checked all PR changes compared to 3.2.5, but still found nothing (sorry, I am a technical person rookie |
It's likely caused by a change in our CI configuration (which we refresh roughly annually) that we use to build our binaries. |
This is exactly same as my output on my end! |
Intro
Hi!
I am a Robotics Engineer I use MuJoCo for my project.
My setup
mujoco 3.2.6
What's happening? What did you expect?
When I use the python version of mujoco3.2.6 under win11, an OSError: [WinError 1114] The dynamic link library (DLL) initialization routine failed. What puzzles me is that it works normally under Linux. In the end, I can only use the 2.3.7 version of mujoco under win.
Steps for reproduction
Just use pip install mujoco on the win11 platform, and then execute python -m mujoco.viewer to reproduce
Minimal model for reproduction
No response
Code required for reproduction
No response
Confirmations
The text was updated successfully, but these errors were encountered: