Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

Hi,

why suddenly I am getting this gradle error? I was able to build the project but suddenly I am suffering with this.
Below is error detail:

:app-polymer-client:nodeSetup
Download https://nodejs.org/dist/v8.9.3/node-v8.9.3-win-x64.zip
[13:02:27.690] Task 'deploy, start' failed
org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

Blockquote

Hi,

Could you please copy more text from the log?

here it is:
[15:02:45.077] Exception has been thrown by com.haulmont.studio.backend.y@1eb63598:
[15:02:45.092] org.gradle.api.GradleException: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM

Could not reserve enough space for object heap

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0



 at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34)

 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:152)

 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:135)

 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:208)

 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:130)

 at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:127)

 at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:81)

 at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:59)

 at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:40)

 at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:60)

 ...
[15:02:45.159] Unexpected error
java.lang.RuntimeException: Error occurred during gradle task execution. Task - properties
[15:02:46.321] Exception has been thrown by com.haulmont.studio.backend.y@1eb63598:
[15:02:46.323] org.gradle.api.GradleException: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM

Could not reserve enough space for object heap

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0



 at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34)

 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:152)

 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:135)

 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:208)

 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:130)

 at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:127)

 at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:81)

 at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:59)

 at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:40)

 at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:60)

 ...
[15:02:46.347] Unexpected error
java.lang.RuntimeException: Error occurred during gradle task execution. Task - tasks --all

What version of CUBA Studio do you use?

The latest oneā€¦ 6.8.2 but i used it 6.8.1 as well before 22 feb and issue was same.

@saurabh60292 You can try to reduce amount of memory available for gradle daemon:
https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory

Btw what is your RAM size?