java.lang.RuntimeException: Unable to start activity ComponentInfo{org.example.android.numero/org.example.android.numero.VideoActivity}: java.lang.ArrayIndexOutOfBoundsException: length=589824; index=589824

Stack Overflow | Piyush Badkul | 4 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

    Getting ArrayIndexOutOfBoundsException when using JCodec in android

    Stack Overflow | 4 months ago | Piyush Badkul
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.example.android.numero/org.example.android.numero.VideoActivity}: java.lang.ArrayIndexOutOfBoundsException: length=589824; index=589824
  2. 0

    ArrayIndexOutOfBoundsException

    GitHub | 7 months ago | simonkramer
    java.lang.ArrayIndexOutOfBoundsException: 574860

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=589824; index=589824

      at org.jcodec.scale.RgbToYuv420j.rgb2yuv()
    2. JCodec
      RgbToYuv420j.transform
      1. org.jcodec.scale.RgbToYuv420j.rgb2yuv(RgbToYuv420j.java:72)
      2. org.jcodec.scale.RgbToYuv420j.transform(RgbToYuv420j.java:38)
      2 frames
    3. org.example.android
      VideoActivity.onCreate
      1. org.example.android.numero.NewSequenceEncoder.encodeNativeFrame(NewSequenceEncoder.java:68)
      2. org.example.android.numero.VideoActivity.video(VideoActivity.java:124)
      3. org.example.android.numero.VideoActivity.onCreate(VideoActivity.java:36)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5982)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
      5. android.app.ActivityThread.access$800(ActivityThread.java:147)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5237)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
      2 frames