java.lang.IllegalArgumentException: Structure exceeds provided memory bounds

Stack Overflow | Lee | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to map Windows API CredWrite/CredRead in JNA?

    Stack Overflow | 7 months ago | Lee
    java.lang.IllegalArgumentException: Structure exceeds provided memory bounds
  2. 0

    GstStaticPadTemplate problems

    Google Groups | 4 years ago | Farkas Levente
    java.lang.IllegalArgumentException: No known Enum mapping > for org.gstreamer.PadPresence value=-66629344 > [junit] at > org.gstreamer.lowlevel.EnumMapper.valueOf(EnumMapper.java:74) > [junit] at > org.gstreamer.lowlevel.GTypeMapper$4.fromNative(GTypeMapper.java:147) > [junit] at > com.sun.jna.Structure.readField(Structure.java:529)

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Bounds exceeds available space : size=8, offset=200

      at com.sun.jna.Memory.boundsCheck()
    2. Java Native Access
      Structure.read
      1. com.sun.jna.Memory.boundsCheck(Memory.java:203)
      2. com.sun.jna.Memory$SharedMemory.boundsCheck(Memory.java:87)
      3. com.sun.jna.Memory.share(Memory.java:131)
      4. com.sun.jna.Structure.ensureAllocated(Structure.java:363)
      5. com.sun.jna.Structure.ensureAllocated(Structure.java:346)
      6. com.sun.jna.Structure.read(Structure.java:552)
      6 frames
    3. com.abc.crypt
      CryptTest.main
      1. com.abc.crypt.WinCrypt$CREDENTIAL.<init>(WinCrypt.java:65)
      2. com.abc.crypt.WinCrypt$CREDENTIAL$ByReference.<init>(WinCrypt.java:55)
      3. com.abc.crypt.CryptTest.main(CryptTest.java:44)
      3 frames