Invalid RAM allocation detected [FIXED]

Started by BlockyCrafter on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Invalid RAM allocation detected [FIXED]
Sun, 04/09/2017 - 13:33 (edited)

Hi! I was making a mod and then i had problems... i tried fixing them and i did but now i have a different problem. Invalid RAM allocation detected. How do i fix that? I already tried changing the ram allocation but it doesnt stop.

Edited by BlockyCrafter on Sun, 04/09/2017 - 13:33
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay this time i added this:
Sun, 04/09/2017 - 13:24

Okay this time i added this: -Xmx 1024M in the environment variables and changed the minimum to below that and it worked! yay

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me I get this error …
Mon, 12/16/2019 - 21:09
Help me I get this error

invalid RAM allocation detected

Can anyone tell me to solve it?

Invalid RAM allocation detected

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me I get this error …
Wed, 12/18/2019 - 22:13
Help me I get this error

invalid RAM allocation detected

Can anyone tell me to solve it?

 

   
Executing gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2019.5.51710, 1.12.2, 64-bit, 3989 MB, Windows 8.1, JVM 1.8.0_222, JAVA_HOME: C:\Users\ALEXANDER-MARIBEL\Escritorio\MCreator20195\jdk
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4-bin.zip'.

   at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:55
)
   at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29
)
   at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41
)
   at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57
)
   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63
)
   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46
)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149
)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624
)
   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55
)
   at java.lang.Thread.run(Thread.java:748
)
Caused by: 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/4.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM

Initial heap size set to a larger value than the maximum heap size

Picked up _JAVA_OPTIONS: -Xmx512m

   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.doStartDaemon(DefaultDaemonConnector.java:210
)
   at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:204
)
   at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:128
)
   at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:138
)
   at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:92
)
   at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:60
)
   at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:41
)
   at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:60
)
   at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:34
)
   at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:156
)
   at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:122
)
   at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:204
)
   at org.gradle.tooling.internal.consumer.connection.CancellableModelBuilderBackedModelProducer.produceModel(CancellableModelBuilderBackedModelProducer.java:53
)
   at org.gradle.tooling.internal.consumer.connection.PluginClasspathInjectionSupportedCheckModelProducer.produceModel(PluginClasspathInjectionSupportedCheckModelProducer.java:41
)
   at org.gradle.tooling.internal.consumer.connection.AbstractConsumerConnection.run(AbstractConsumerConnection.java:58
)
   at org.gradle.tooling.internal.consumer.connection.ParameterValidatingConsumerConnection.run(ParameterValidatingConsumerConnection.java:46
)
   at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:89
)
   at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(DefaultBuildLauncher.java:83
)
   at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:84
)
   at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45
)
   at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58
)
   at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38
)
   at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55
)
   ... 6 more

TASK EXECUTION FAILED

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I set the inital memory to…
Thu, 10/07/2021 - 18:17

I set the inital memory to 300 it worked for me

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where do i find environment…
Fri, 10/29/2021 - 18:06

where do i find environment variables?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I set the inital memory to…
Fri, 05/06/2022 - 18:44

I set the inital memory to 300 it worked for me too
(I set _JAVA_OPTIONS to -Xmx1024M before this.)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey guys, the solve is very…
Wed, 06/15/2022 - 13:22

Hey guys, the solve is very easy. just go to settings, and make inital memory to 300.100% working.