Skip to content

Instantly share code, notes, and snippets.

@nikolay-advolodkin
Last active August 15, 2018 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikolay-advolodkin/5339eea8eb1567106d8bbd20127a32c2 to your computer and use it in GitHub Desktop.
Save nikolay-advolodkin/5339eea8eb1567106d8bbd20127a32c2 to your computer and use it in GitHub Desktop.
Error that I get when building Selenium WebDriver
c:\Source\Selenium\selenium>go build
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
Picked up _JAVA_OPTIONS: -Xmx512M
(in C:/Source/Selenium/selenium)
python C:/Source/Selenium/selenium/buck-out/crazy-fun/65874cbc58fab1746c2e7d15ea7c2f545fb0df38/buck.pex kill
[-] PARSING BUCK FILES...FINISHED 1.2s [100%]
BUILT 1/42 JOBS 2.0s //java/client/src/org/openqa/selenium:beta
BUILT 2/42 JOBS 2.0s //java/client/src/org/openqa/selenium:primitives
BUILT 3/42 JOBS 0.7s //third_party/java/guava:guava
BUILT 4/42 JOBS 0.4s //third_party/java/commons:commons-exec
BUILT 5/42 JOBS 0.5s //third_party/java/commons:commons-exec#class-abi
BUILT 6/42 JOBS 1.1s //third_party/java/guava:guava#class-abi
BUILT 7/42 JOBS 0.3s //third_party/java/jna:platform#class-abi
No Android platform target specified. Using default: android-23
BUILT 8/42 JOBS 0.7s //third_party/java/jna:core#class-abi
BUILT 9/42 JOBS 0.1s //java/client/src/org/openqa/selenium:template-pom
BUILT 10/42 JOBS 0.2s //third_party/java/jna:core
BUILT 11/42 JOBS 0.2s //third_party/java/gson:gson#class-abi
BUILT 12/42 JOBS 0.2s //third_party/java/gson:gson
BUILT 13/42 JOBS 0.2s //java/client/src/org/openqa/selenium:beta#class-abi
BUILT 14/42 JOBS 0.2s //java/client/src/org/openqa/selenium:primitives#class-abi
BUILT 15/42 JOBS 0.3s //java/client/src/org/openqa/selenium:manifest
BUILT 16/42 JOBS 0.3s //third_party/java/jna:platform
BUILT 17/42 JOBS 1.0s //java/client/src/org/openqa/selenium/logging:api
BUILT 18/42 JOBS 0.3s //java/client/src/org/openqa/selenium/security:security
BUILT 19/42 JOBS 1.4s //java/client/src/org/openqa/selenium:exceptions
BUILT 20/42 JOBS 0.7s //java/client/src/org/openqa/selenium/interactions:core
BUILT 21/42 JOBS 0.1s //third_party/java/jna:jna
BUILT 22/42 JOBS 0.1s //java/client/src/org/openqa/selenium/security:security#class-abi
BUILT 23/42 JOBS 0.2s //java/client/src/org/openqa/selenium/logging:api#class-abi
BUILT 24/42 JOBS 0.2s //java/client/src/org/openqa/selenium:exceptions#class-abi
BUILT 25/42 JOBS 0.5s //java/client/src/org/openqa/selenium/interactions:core#class-abi
BUILT 26/42 JOBS 1.3s //java/client/src/org/openqa/selenium/logging:logging
BUILT 27/42 JOBS 0.3s //java/client/src/org/openqa/selenium/interactions:exceptions
BUILT 28/42 JOBS 1.1s //java/client/src/org/openqa/selenium:platform
BUILT 29/42 JOBS 0.1s //java/client/src/org/openqa/selenium/interactions:exceptions#class-abi
BUILT 30/42 JOBS 0.2s //java/client/src/org/openqa/selenium/logging:logging#class-abi
BUILT 31/42 JOBS 0.2s //java/client/src/org/openqa/selenium:platform#class-abi
BUILT 32/42 JOBS 0.8s //java/client/src/org/openqa/selenium/io:io
BUILT 33/42 JOBS 1.3s //java/client/src/org/openqa/selenium/net:net
BUILT 34/42 JOBS 0.2s //java/client/src/org/openqa/selenium/io:io#class-abi
BUILT 35/42 JOBS 0.2s //java/client/src/org/openqa/selenium/net:net#class-abi
BUILT 36/42 JOBS 2.0s //java/client/src/org/openqa/selenium:core
BUILT 37/42 JOBS 1.1s //java/client/src/org/openqa/selenium/os:os
BUILT 38/42 JOBS 0.4s //java/client/src/org/openqa/selenium:core#class-abi
BUILT 39/42 JOBS 0.2s //java/client/src/org/openqa/selenium/os:os#class-abi
BUILT 40/42 JOBS 1.0s //java/client/src/org/openqa/selenium/interactions:interactions
BUILT 41/42 JOBS 0.2s //java/client/src/org/openqa/selenium/interactions:interactions#class-abi
BUILT 42/42 JOBS 0.1s //java/client/src/org/openqa/selenium:selenium
[-] BUILDING...FINISHED 15.5s [100%]
Picked up _JAVA_OPTIONS: -Xmx512M
Not using buckd because watchman isn't installed.
python C:/Source/Selenium/selenium/buck-out/crazy-fun/65874cbc58fab1746c2e7d15ea7c2f545fb0df38/buck.pex kill
[-] PARSING BUCK FILES...FINISHED 11.3s [100%]
BUILT 29/139 JOBS 0.2s //third_party/java/commons-codec:commons-codec
BUILT 30/139 JOBS 0.9s //java/client/src/org/openqa/selenium/remote:http-session-id
BUILT 33/139 JOBS 0.1s //third_party/java/commons-logging:commons-logging
BUILT 34/139 JOBS 0.2s //third_party/java/httpcomponents:httpcore
BUILT 35/139 JOBS 0.9s //java/client/src/org/openqa/selenium/remote:api
BUILT 36/139 JOBS 0.2s //third_party/java/cglib:cglib
BUILT 38/139 JOBS 0.2s //third_party/java/commons-fileupload:commons-fileupload
BUILT 39/139 JOBS 0.2s //third_party/java/servlet:servlet-api
BUILT 40/139 JOBS 0.3s //third_party/java/httpcomponents:httpcore#class-abi
BUILT 41/139 JOBS 0.4s //third_party/java/commons-logging:commons-logging#class-abi
BUILT 42/139 JOBS 0.2s //third_party/java/servlet:servlet-api#class-abi
BUILT 43/139 JOBS 0.4s //third_party/java/commons-fileupload:commons-fileupload#class-abi
BUILT 44/139 JOBS 0.3s //third_party/java/httpcomponents:httpclient#class-abi
BUILT 45/139 JOBS 0.2s //third_party/java/cglib:cglib#class-abi
BUILT 52/139 JOBS 0.3s //third_party/java/commons-codec:commons-codec#class-abi
BUILT 55/139 JOBS 0.4s //third_party/java/jetty:jarjar-rules
BUILT 58/139 JOBS 0.6s //java/client/test/org/openqa/selenium/testing:helpers
BUILT 59/139 JOBS 0.2s //javascript/atoms:bot
BUILT 60/139 JOBS 0.2s //java/client/src/org/openqa/selenium/remote:http-session-id#class-abi
BUILT 61/139 JOBS 0.2s //third_party/java/annotation:jsr250-api
BUILT 62/139 JOBS 0.1s //third_party/java/plexus:plexus-component-annotations
BUILT 63/139 JOBS 1.1s //third_party/closure:compiler-jar
BUILT 64/139 JOBS 0.1s //third_party/java/ant:ant-launcher
BUILT 65/139 JOBS 0.5s //third_party/java/hamcrest:hamcrest-core
BUILT 66/139 JOBS 0.1s //third_party/java/plexus:plexus-utils
BUILT 67/139 JOBS 0.1s //third_party/java/asm:asm
BUILT 68/139 JOBS 0.1s //third_party/java/plexus:plexus-classworlds
BUILT 70/139 JOBS 0.1s //third_party/java/inject:javax.inject
BUILT 72/139 JOBS 0.1s //javascript/atoms:errors
BUILT 73/139 JOBS 1.0s //third_party/java/sisu:org.eclipse.sisu.inject
BUILT 74/139 JOBS 0.2s //java/client/src/org/openqa/selenium/remote:api#class-abi
BUILT 75/139 JOBS 0.3s //third_party/java/httpcomponents:httpclient
BUILT 76/139 JOBS 0.2s //third_party/java/jetty:jetty-continuation
BUILT 77/139 JOBS 0.3s //third_party/java/jetty:jetty-util
[-] BUILDING...FINISHED 9.6s [100%]
[2018-08-15 11:43:47.865][error][command:null][tid:01][com.facebook.buck.cli.Main] Uncaught exception at top level
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Building //third_party/closure:closure failed. Caused by OutOfMemoryError: Java heap space
at com.facebook.buck.command.Build.executeAndPrintFailuresToEventBus(Build.java:389)
at com.facebook.buck.cli.BuildCommand.executeBuild(BuildCommand.java:880)
at com.facebook.buck.cli.BuildCommand.executeLocalBuild(BuildCommand.java:814)
at com.facebook.buck.cli.BuildCommand.executeBuildAndProcessResult(BuildCommand.java:502)
at com.facebook.buck.cli.BuildCommand.run(BuildCommand.java:416)
at com.facebook.buck.cli.BuildCommand.runWithoutHelp(BuildCommand.java:382)
at com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:222)
at com.facebook.buck.cli.AbstractContainerCommand.run(AbstractContainerCommand.java:67)
at com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:83)
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:1334)
at com.facebook.buck.cli.Main.runMainThenExit(Main.java:744)
at com.facebook.buck.cli.Main.main(Main.java:1932)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.facebook.buck.cli.bootstrapper.ClassLoaderBootstrapper.main(ClassLoaderBootstrapper.java:62)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Building //third_party/closure:closure failed. Caused by OutOfMemoryError: Java heap space
at com.facebook.buck.command.Build.executeBuild(Build.java:287)
at com.facebook.buck.command.Build.executeAndPrintFailuresToEventBus(Build.java:339)
... 16 more
Caused by: java.lang.RuntimeException: Building //third_party/closure:closure failed. Caused by OutOfMemoryError: Java heap space
at com.facebook.buck.rules.CachingBuildEngine.maybeAttachBuildRuleNameToException(CachingBuildEngine.java:1213)
at com.facebook.buck.rules.CachingBuildEngine.access$1100(CachingBuildEngine.java:117)
at com.facebook.buck.rules.CachingBuildEngine$2.onFailure(CachingBuildEngine.java:1148)
at com.facebook.buck.util.concurrent.MoreFutures$1.onFailure(MoreFutures.java:140)
at com.google.common.util.concurrent.Futures$4.run(Futures.java:1123)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900)
at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:811)
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:675)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:112)
at com.google.common.util.concurrent.MoreExecutors$5$1.run(MoreExecutors.java:988)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submit$2(WeightedListeningExecutorService.java:109)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:81)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:211)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:200)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:130)
at com.google.common.util.concurrent.MoreExecutors$5$1.run(MoreExecutors.java:988)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)
at java.lang.StringBuffer.append(StringBuffer.java:367)
at java.io.StringWriter.write(StringWriter.java:94)
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator._flushBuffer(WriterBasedJsonGenerator.java:1877)
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator._writeString(WriterBasedJsonGenerator.java:914)
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator.writeString(WriterBasedJsonGenerator.java:330)
at com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer.serializeContents(StringCollectionSerializer.java:125)
at com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer.serialize(StringCollectionSerializer.java:81)
at com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer.serialize(StringCollectionSerializer.java:21)
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672)
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678)
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)
at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:149)
at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:112)
at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:25)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)
at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3631)
at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2980)
at org.openqa.selenium.buck.javascript.JavascriptDependencies.writeTo(JavascriptDependencies.java:101)
at org.openqa.selenium.buck.javascript.JsLibrary.getBuildSteps(JsLibrary.java:116)
at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1546)
at com.facebook.buck.rules.CachingBuildEngine.lambda$null$2(CachingBuildEngine.java:356)
at com.facebook.buck.rules.CachingBuildEngine$$Lambda$276/1642084248.call(Unknown Source)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$submitWithSemaphore$0(WeightedListeningExecutorService.java:81)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService$$Lambda$89/533810548.apply(Unknown Source)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:211)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:200)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:130)
at com.google.common.util.concurrent.MoreExecutors$5$1.run(MoreExecutors.java:988)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Picked up _JAVA_OPTIONS: -Xmx512M
Not using buckd because watchman isn't installed.
go aborted!
Buck build failed with exit code: 1
stdout: java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid6400.hprof ...
Heap dump file created [161531978 bytes in 0.503 secs]
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment