java.lang.OutOfMemoryError: Cannot allocate 2 + 5909359200 bytes (> Pointer.maxBytes)

GitHub | lycchn | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.OutOfMemoryError: Cannot allocate 2 + 5909359200 bytes (> Pointer.maxBytes)

    GitHub | 8 months ago | lycchn
    java.lang.OutOfMemoryError: Cannot allocate 2 + 5909359200 bytes (> Pointer.maxBytes)
  2. 0

    Memory Error

    GitHub | 5 months ago | Almars12345
    java.lang.OutOfMemoryError: Cannot allocate new FloatPointer(900000000), totalBytes = 160602582, physicalBytes = 941273088
  3. 0

    What to do for memory related exception while working with NLP Stanford?

    Stack Overflow | 2 months ago | Jaffer Wilson
    java.lang.OutOfMemoryError: Cannot allocate 3103474 + 3600000000 bytes (> Pointer.maxBytes)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting issues while running the Word2VecSentimentRNN

    GitHub | 2 months ago | JafferWilson
    java.lang.OutOfMemoryError: Cannot allocate 3103474 + 3600000000 bytes (> Pointer.maxBytes)
  6. 0

    OutOfMemoryError: Cannot allocate 3740963793 bytes on moderate network

    GitHub | 12 months ago | wutzebaer
    java.lang.OutOfMemoryError: Cannot allocate 3740963793 bytes

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Cannot allocate 2 + 5909359200 bytes (> Pointer.maxBytes)

      at org.bytedeco.javacpp.Pointer.deallocator()
    2. JavaCPP
      FloatPointer.<init>
      1. org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:486)
      2. org.bytedeco.javacpp.Pointer.init(Pointer.java:120)
      3. org.bytedeco.javacpp.FloatPointer.allocateArray(Native Method)
      4. org.bytedeco.javacpp.FloatPointer.<init>(FloatPointer.java:68)
      4 frames
    3. nd4j-api
      FloatBuffer.<init>
      1. org.nd4j.linalg.api.buffer.BaseDataBuffer.<init>(BaseDataBuffer.java:457)
      2. org.nd4j.linalg.api.buffer.FloatBuffer.<init>(FloatBuffer.java:57)
      2 frames
    4. org.nd4j.linalg
      DefaultDataBufferFactory.createFloat
      1. org.nd4j.linalg.api.buffer.factory.DefaultDataBufferFactory.createFloat(DefaultDataBufferFactory.java:238)
      1 frame
    5. nd4j-api
      BaseNDArray.<init>
      1. org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1224)
      2. org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1199)
      3. org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:230)
      3 frames
    6. org.nd4j.linalg
      CpuNDArrayFactory.create
      1. org.nd4j.linalg.cpu.nativecpu.NDArray.<init>(NDArray.java:111)
      2. org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.create(CpuNDArrayFactory.java:247)
      2 frames
    7. nd4j-api
      Nd4j.create
      1. org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:4335)
      2. org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:4297)
      3. org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3550)
      3 frames
    8. org.deeplearning4j.models
      WordVectorSerializer.loadGoogleModel
      1. org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readBinaryModel(WordVectorSerializer.java:217)
      2. org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.loadGoogleModel(WordVectorSerializer.java:116)
      3. org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.loadGoogleModel(WordVectorSerializer.java:96)
      3 frames
    9. org.deeplearning4j.examples
      Word2VecUptrainingExample.main
      1. org.deeplearning4j.examples.nlp.word2vec.Word2VecUptrainingExample.main(Word2VecUptrainingExample.java:85)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame