Internal error thrown during build. Printing stack trace: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached at java.base/java.lang.Thread.start0(Native Method) at java.base/java.lang.Thread.start(Thread.java:803) at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937) at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1343) at com.google.devtools.build.lib.skyframe.FilesystemValueChecker.getDirtyValues(FilesystemValueChecker.java:582) at com.google.devtools.build.lib.skyframe.FilesystemValueChecker.getDirtyKeys(FilesystemValueChecker.java:108) at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.handleDiffsWithMissingDiffInformation(SequencedSkyframeExecutor.java:535) at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.handleDiffs(SequencedSkyframeExecutor.java:380) at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.sync(SequencedSkyframeExecutor.java:267) at com.google.devtools.build.lib.runtime.CommandEnvironment.syncPackageLoading(CommandEnvironment.java:668) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:550) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:236) at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:661) at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:726) at io.grpc.Context$1.run(Context.java:605) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) unable to create native thread: possibly out of memory or process/resource limits reached ERROR: bazel ran out of memory and crashed. WARNING: Waiting for server process to terminate (waited 5 seconds, waiting at most 60) WARNING: Waiting for server process to terminate (waited 10 seconds, waiting at most 60) WARNING: Waiting for server process to terminate (waited 30 seconds, waiting at most 60)