Open GMZwinge opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Any updates? Almost a year and no movement on this... Still exists in the latest 4.3.1 and 5.0.0-beta3.
This is a show-stopper for anyone using this library with a halfway decent sized API....
Bump
i have a similar issue but with the python client generation and my spec file is around 75000 lines long albeit its a json file (so every bracket creates 2 extra lines)
tried on cli version v5.1.0
Bump, same error, but using Java. Same stacktrace. Will there be any fix after a couple years?
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf (Arrays.java:3689)
at java.util.ArrayList.grow (ArrayList.java:238)
at java.util.ArrayList.grow (ArrayList.java:243)
at java.util.ArrayList.add (ArrayList.java:486)
at java.util.ArrayList.add (ArrayList.java:499)
at org.openapitools.codegen.DefaultCodegen.updateAllModels (DefaultCodegen.java:633)
at org.openapitools.codegen.DefaultGenerator.generateModels (DefaultGenerator.java:529)
at org.openapitools.codegen.DefaultGenerator.generate (DefaultGenerator.java:918)
at org.openapitools.codegen.plugin.CodeGenMojo.execute (CodeGenMojo.java:837)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Greetings, after Xerocry reportet the issue with Java, i tried it with the openapi-generator-cli via docker (i used the latest version 4 days ago which should be version 6.5?) There it worked without any issue, but i did not try again wwith the standalone java application so there it maybe still is a problem.
Same issue with ours, there seems to be a memory handling issue. We tried to feed our spec to Swagger-codegen and it works. But when we use open-api-tools it just goes out of memory error.
Description
When trying to generate a
typescript-node
client from a large size v2 spec (10,000 lines of JSON), the generator crashes withjava.lang.OutOfMemoryError
and this output and stack trace:Similar error with
swagger-codegen
.openapi-generator version
Standalone:
4.2.2
OpenAPI declaration file content or url
https://vdc-download.vmware.com/vmwb-repository/dcr-public/4e9128db-55e6-443b-acd8-38a1e6de78c2/3820b3fb-9c77-463b-8aa5-e8f2471924e0/api-vra-identity.json from vRealize Automation Identity Service API 7.5 tab
Documentation
.Command line used for generation
java -jar openapi-generator-cli-4.2.2.jar generate --input-spec api-vra-identity.json --generator-name typescript-node
Steps to reproduce
Just run above command.
Related issues/PRs
The error is identical to #4398, but the stack trace is not.