-
Notifications
You must be signed in to change notification settings - Fork 25
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
ucrtbase.dll Error on Windows 11 in Parallels #485
Comments
Thanks for the excellent debugging and issue report Ed. OpenStudioApp 3.3.0 does work on Windows 11, that is what I am using now. I would recommend trying to revert the dlls in your system directories back to what they were, I have never heard of Can you run the command Running parallels on an M1 chip is a configuration I have not tried. The OS Coalition does have access to an M1 VM but I don't think we have a license for parallels. How did you get the Windows 11 image, is there a free or trial version that you can use? I imagine there are a lot of rough edges on virtualization with the M1 chips still, there might be some hints online, maybe |
Hi Dan @macumber Thank you for the response and the suggestions.
Perhaps all of this is actually an E+ issue, not an OSApp issue? regardless - thanks so much for the response. |
Out of curiosity why do you want to run OSApp in parallels? Is there a problem running the Mac version of OSApp on your Mac? My understanding is that the Mac builds would work on an M1 machine, we may create a separate M1 build at some point. |
Ah - good question:
complicated, I know! And the answer might very well be: "Don't run OSApp on Windows 11, just rebuild these other plugins to run on Mac OS instead.", Which is possible, I think. But we were not sure what would work, and what would not work on these new systems. |
@PH-Tools Can you try to install the official energyplus EXE installer for EnergyPlus V22-1-0) on your machine, then retry running the App? direct link: https://github.com/NREL/EnergyPlus/releases/download/v22.1.0/EnergyPlus-22.1.0-ed759b17ee-Windows-x86_64.exe You might ask "What the hell does that have to do with anything?" :) Well, the E+ IFW installer copies a bunch of dlls to the C:/Windows/SysWow64 and register them via regsvr32.exe, including that ucrt one, so I think it'll fix your issue... For reference, this is done in https://github.com/NREL/EnergyPlus/blob/develop/cmake/qtifw/install_win_copydll.qs Edit: nevermind, ucrtbase.dll is actually supposed to be a plain windows DLL and there is no need to register it. I'm booting a clean windows 11 VM and will test. |
I haven't been able to reproduce the issue on a clean windows 11 virtual machine (that I run on virtualbox with an Ubuntu 20.04 host). Note that even if the measure manager worked, you actually wouldn't be able to run simulations in E+ since 9.6.0 is missing vcomp140.dll (for OpenMP), something I have (fixed recently in NREL/EnergyPlus#9310 and is only included in enegyplus V22-1-0 (though by just placing vcomp140.dll in the openstudioapplication-1.3.0/EnergyPlus folder it would work).
Except apparnetly for some reason you installed the i386 (32 bit) version The vcomp140.dll from the EnergyPlusV22-1-0 installer: vcomp140.zip |
Hi @jmarrec Thanks for taking a look at this! I tried installing E+ v22-1-0 as you suggested. I tried it two ways (To see if that mattered):
I made sure to copy/paste that vcomp140.dll into C:\openstudioappliocation-1.3.1\EnergyPlus... as well They all install successfully (including E+ v9.6.0, so that is great), it seems: and I can run EPLaunch v9.6.0 or 22.1.00 without issue. But unfortunately still when I try and run the OpenStudioApplication from the toolbar, I get the same error about 'ucrtbase.dll' as soon as it opens, and I have to ctrl-alt-delete to close. Thanks so much for the suggestion though. FWIW we have two machines in the office, both the new M1 Mac running the same Windows-11 and both have this same issue. |
I'm kinda out of ideas, let's hope your post at https://forum.parallels.com/threads/ucrtbase-dll-errors-running-application.356598/ pans out. |
wait, your windows 11 VM is an arm64 one and not an x86_64 / arm64 isn't it? @PH-Tools |
Hi @jmarrec I'm not sure I know the difference between an arm64 and an x86_64/arm64 I'm afraid? But my environment is currently:
I'm not sure if that makes sense? Happy to provide more details if that is helpful. thanks! |
I'm 99% sure what you have is windows on arm: https://kb.parallels.com/125375 Can you try this in cmd.exe: wmic os get osarchitecture
echo %PROCESSOR_ARCHITECTURE% Short story: everything in that stack (E+, OS CLI and OpenStudioApplication) has been compiled on on a x86_64 (also called amd64) platform. The system DLLs the CLI tools expect are for that architecture. If you are running Windows on arm, then the architecture is different and would explain the issue you're seeing. The difference between architectures are the set of instructions these will run. Can you also try running this? C:\EnergyPlusV22-1-0\energyplus.exe --version I'm afraid there will be a need to recompile everything, or at least the energyplus and openstudio CLI. |
Hi @jmarrec Ah - that makes sense, thanks. And yes you bet - here is what I get: So yes: looks like it is? I suppose that would be the issue then? |
Oh wow, I did not even know that was a possibility. I think Windows on ARM is going to become more of a thing: https://www.zdnet.com/article/first-windows-11-on-arm-laptops-arrive-with-microsofts-pluton-chip-heres-why-it-matters/. Probably need to put a Windows ARM build on the roadmap |
The issue is that there are no runners available for it... if we need to buy an m1 mac to run windows on it, I'll be damned :) |
The only reason I thought of it is because I do have an m1 mac and I have briefly toyed with the trial version of parallels desktop |
Should be able to cross compile https://devblogs.microsoft.com/cppblog/windows-arm64-support-for-cmake-projects-in-visual-studio/ |
Expect massive pain in the beginning especially with regards to conan packages... and we would need to get clang working on windows first. Fun stuff :)! |
Thanks @jmarrec @macumber - appreciate your weighing in! Good to that at least it wasn't something that I was doing terribly wrong. Understood on the Window on ARM support side. Yes - only a small group right now I'd imagine (it mainly has to do with other plugins that work alongside OSApp but are windows-only)? The one thing I might suggest is just that having some note on the webpage / documentation that ARM Windows installation is not supported? That would be plenty for folks at the moment I think? Regardless: thanks again for taking a look at this! Really appreciate it. |
Hello, I am facing the same issue I also downloaded "ARM64 |https://aka.ms/vs/17/release/vc_redist.arm64.exe" hoping that it might solve the Windows on ARM 64 issue. But it didn't. Probably this is not even the way to go about it. I am a novice with all of it. Was there a solution which I couldn't understand? |
Hi @Nathhier I think that unfortunately we are not able to support running Windows ARM under Parallels on Mac M1 processors right now. Are you able to run the Mac M1 release https://github.com/openstudiocoalition/OpenStudioApplication/releases/download/v1.6.0/OpenStudioApplication-1.6.0+53c249a897-macOS12.1-arm64.dmg directly under your Mac? |
The issue is on the OpenStudio.exe, probably due to the embedded ruby, not the OpenStudioApp. Running Windows 11 21H2 on arm:
I also tried to install the RubyInstaller https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-devkit-3.2.2-1-x64.exe
|
Hi @MOLd57 |
I just tried running OpenStudioApplication on a Windows ARM64 dev machine and ran into this same issue. I believe this might be related to oneclick/rubyinstaller2#308 |
Hi there, it's been a while, I wanted to ask if a solution/workaround has already been found for the problem for Mac m2, with parallels 19 windows ? I have installed the latest versions of Ladybug/radiance/Openstudio and still get the error message "unexpected ucrtbase.dll". Thanks a lot! |
Hi @Reflaxface, I don't have any updates right now. We have purchased an ARM Windows development machine and hope to start work on a package for ARM Windows. My hope is that would work for your case (Windows running in Parallels on ARM processor). |
Hey @macumber, alright, thanks a lot for letting me know! Would be awesome, though! |
@Reflaxface @ed-p-may I just saw this oneclick/rubyinstaller2#308 (comment) post by a Windows developer that an issue with Ruby on Windows ARM has just been released in 2024-03 Cumulative Update Preview for Windows 11 Version 23H2 for arm64-based Systems (KB5035942). I updated my Windows ARM dev machine to the latest release and now OpenStudio Application is working on that machine. Would either of you be able to try updating your Windows installs in Parallels to this latest version of Windows 11 and try OpenStudio Application out again? While you are at it, we are testing a 1.7.1-rc1 installer that has some bug fixes relative to 1.7.0. The issue for providing feedback on the 1.7.1-rc1 release is #706 and the installers are available at https://github.com/openstudiocoalition/OpenStudioApplication/releases/tag/v1.7.1-rc1 |
Hi @macumber , @Reflaxface I had occasion to test this out this morning, and from my test it still does not work for me. The error is slightly different now, but it appears to still be a
Enviroment:
|
Issue
Trying to install OpenStudioApplication on Mac M1 running parallels and Windows 11, but receiving an error on attempted application startup?
Current Behavior
OS and OS application seem to install fine, but if I try and run OSApp I get the error and application requires force-quit to exit:
“Measure Manager has crashed, attempting to restart… unexpected ucrtbase.dll”
What I have tried
"The module "ucrtbase.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "ucrtbase.dll" is a valid DLL or OCX file and then try again"
Log:
I have run the app in DEBUG=1 mode, and generated the following log file, if that is helpful?:
osapp.log
Environment
Solutions
Thank you very much in advance for any suggestions or recommendations. I am happy to provide more information if that is helpful. Thank you.
-Ed May, @PH-Tools
The text was updated successfully, but these errors were encountered: