-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
memory overflow during make px4_sitl gazebo #14943
Comments
Generally, this is a RAM issue. So you should be able to work around it by having more RAM available. Alternatively, you could try to build with |
I was able to build with the same laptop a few months back. But it is not working now. I tried make px4_sitl gazebo -j1, it still used all the eight threads. |
@dagar how can we pass the |
Passed through here somehow. https://github.com/PX4/Firmware/blob/6c16a29d26b2c79d63f1459be361c8972399d9ce/platforms/posix/cmake/sitl_target.cmake#L34-L47 |
The high needs of RAM when compiling the SITL happens to me too. In my case I am working with VM that if I don't give the VM more then 12GB of RAM its start to use cache. |
@dagar that's the part I'm confused about 😄 |
I'm generally confused about the parallel build. I've tried going to the basics and removed |
Ok, I have a fix coming up that actually allows to configure how parallel the build should happen. |
With #14971 you can now build with fewer cores in order to avoid running out of RAM:
|
same issue...dosen't help my case. |
pull the commit that is mentioned in this thread. It worked for my case. |
@cdbharath thanks for the response..i am pretty new to this stuff so bear with me. |
@shu-bamma from a clean state (make distclean) can you build and capture the full output with the error message? |
@dagar this is the EXACT error and machine configurations(exept that i have 8 cores) i have , then in #14971 @julianoes claimed to have fixed it but you pointed out about the CI failing and from then on i did not follow your chats. In this fix he has made a total of 4 commits, which one should i pull was my doubt (if any of them actually fix the problem that is) |
I only see this now. @shu-bamma you're right. It does not actually work for the Gazebo case. |
It is now using the number of cores on your system, see: 52bb996 |
The build is not over yet, let the machine run for a while I have good harware specs it took about 40-45 mins after it hangs . make worked without specifying cores. Sit back and let it process. It will take a while , but let it happen thats it , it may take 1-1.5 hours for some people but works perfectly later. |
RAM Overflows and laptop hangs when I try make px4_sitl gazebo. It overflows every time while building the file "gazebo_wind_plugin.cpp.o". make px4_sitl jmavsim works well on the other hand. How do I go about this issue
Laptop Specs:
8gb RAM
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
1 physical processor; 4 cores; 8 threads
OS: Ubuntu 18.04
Logs:
I interrupted at this point to get the logs just before it hangs
The text was updated successfully, but these errors were encountered: