carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
10.95k stars 3.53k forks source link

Help me plz the application error (0xc0000142) windows 10 #4609

Open NoobMasterEz opened 2 years ago

NoobMasterEz commented 2 years ago

Capture

NicolaAlbarella commented 2 years ago

same issue here

joluko commented 2 years ago

I have the same problem trying to start Carla_0.9.12. Carla_0.9.11 however starts without any problems.

I am using the following parts:

Windows 10 Enterprise Intel(R) Xeon(R) CPU W3670 @ 3.20GHz 3.20 GHz 12GB Ram (driver version: 10.0.19041.546) Nvidia Quadro K2000 (driver version: 30.0.14.7212)

hitabm commented 2 years ago

I think this issue could be related to DirectX libraries. Download from here, install it and then try again. Let us know if it did solve your problem.

joluko commented 2 years ago

@barasm-hita thanks for your help. I just tried it but unfortunately the same error appears.

hitabm commented 2 years ago

@joluko Your problem must be different, because as you said, version 0.9.11 works fine. So in your case, it may refer to Visual C++ version and/or Windows SDK. I have these versions installed and it works very well:

I have installed these using Visual Studio 2019 installer and my OS is Windows 10 v10.0.19043

joluko commented 2 years ago

The error still appears trying to start Carla_0.9.12

@ratchanonth @NicolaAlbarella have you found a solution?

wayne-werwolf commented 2 years ago

I have the same issue. This only occurs with Windows build 0.9.12. The previous release works fine.

This issue was reproducible on another Windows 10 machine. Both machines meet the hardware requirements.

The requirements mentioned by @barasm-hita are met (although these are not mentioned by the prerequisites for the pre-built executable).

hitabm commented 2 years ago

@wayne-werwolf See these YouTube videos, maybe they could solve your issue. https://www.youtube.com/watch?v=byyRbi_gaTs https://www.youtube.com/watch?v=1YX3bN1YFCM

wayne-werwolf commented 2 years ago

@barasm-hita Thanks, for the effort 👍. However, these did not solve the issue, and are the usual general troubleshooting advices that come up with a quick google search. I must say, it seems very suspicious that two PCs that are set up very differently, suddenly have the same error while switching from 0.9.11 to 0.9.12. For me, that points more towards the CARLA distributable than the system environment it is installed on 🤔.

I am trying to pinpoint what might be the cause:

Any help or information on this issue is greatly appreciated.

UPDATE: The same issue arises with the current nightly build.

joluko commented 2 years ago

I also tested it on another Windows 10 PC and its not working either.

Same error for the nightly build.

@wayne-werwolf Have you already tried it with the required UE version?

tayeep commented 2 years ago

I have the same issue with 0.9.12 and 0.9.13, no luck running it. Version 0.9.11 can open. image

My PC Specs:

bernatx commented 2 years ago

Hi, Check the GPU RAM you have. Version 0.9.12 and 0.9.13 of Carla use the new UE4.26 engine version, and also loads the Town10HD_Opt by default, that takes more memory than the previous Town03 that was loaded by default with 0.9.11. Check that is not an issue about how much Gb of GPU. You need probably 6 Gb or more to open Town10HD_Opt.

If that is the case, you can change the default map that will be loaded at start, and set the previous Town03. You need to edit the file WindowsNoEditor\CarlaUE4\Config\DefaultEngine.ini and change that map in the section [/Script/EngineSettings.GameMapsSettings].

You need to replace =/Game/Carla/Maps/Town10HD_Opt.Town10HD_Opt by =/Game/Carla/Maps/Town03_Opt.Town03_Opt

Let me know if that fixes the issue.

tayeep commented 2 years ago

Nope, changing the map doesn't work. image

RTX2060 has 6GB RAM, I guess it should have enough to handle Town10. image

I've already tested 3 machines (2 physicals + 1 virtual machine) and I'm going to run on another 2 more machines with older CPU to see if it works. Will update again.

tayeep commented 2 years ago

I've tested on two machines, one with Intel+Nvidia, another with AMD. The AMD machines run perfectly even though the display only has 1GB RAM. Is that possible Nvidia driver is the culprit? Is there any settings related to it?

AMD - Successful run image

Intel+Nvidia - failed with same 0xc0000142 error

And then I back to my main machines and tested both Nvidia GAME and STUDIO drivers below with RTX2060, none of it works.

Edited: @bernatx Tested on another Intel+Nvidia PC. Ended up with the same error. image

wayne-werwolf commented 2 years ago

Unfortunately, changing the map as recommended by @bernatx did not fix the issue. Multiple Systems tested, all Intel CPU + Nvidia GPU. As I have no AMD GPU at hand, I cannot test the AMD/Nvidia hypothesis @tayeep. Current drivers installed.

This currently affects >=0.9.12.

Tried various flags, e.g. -quality-level=low, -RenderOffScreen, etc.

I searched for similar issues in other projects that are built with UE4.26, however could not find anything related.

Additionally, I checked for the build requirements to be met on my machine. Curiously, the build docs say that Windows 8.1 SDK has to be installed. I could not find that in the VS2019 Installer on Windows 10.

Maybe others whose build works could share their specs, and we can pinpoint the cause by looking at the differences?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dinesht27 commented 2 years ago

Hello, Was anyone able to resolve this error, and narrow down the solution? Would be really helpful. Seems like it is an accepted gamble issue, whether you machine runs the application or not. No specific direction or suggestion has been stated.

Should I consider this as a CARLA bug or the Microsoft Error, because the Unreal Engine 4.26 platform executes fine as a standalone, am super confused.

Any suggestion would do.

Thanks

OptiAll commented 2 years ago

Maybe this is a Processor problem. Older processors do not have the AVX2 instruction set. So maybe the CARLA build process requires it. I found a similar issue here:
https://github.com/projectchrono/chrono/issues/327

OptiAll commented 1 year ago

Carla does use the older Chrono version 6. Maybe an update to the newest version could help out here. The issue in the chrono repository was not fixed for version 6 after all. Also Chrono was integrated into the project at version 9.12, which is affected by this issue.

https://github.com/carla-simulator/carla/blob/master/Util/InstallersWin/install_chrono.bat

set CHRONO_VERSION=

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.