java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7

Stack Overflow | Code99Za | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rafael . Or join the community to write better ones.
  1. 0

    java.lang.StringIndexOutOfBoundsException Error startEndAndLength

    Stack Overflow | 6 months ago | Code99Za
    java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7
  2. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  3. 0
    samebug tip
    This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    编写android计算器添加删除按钮,出现很抱歉,XX项目已停止运行。 - SegmentFault

    segmentfault.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=-1
  6. 0

    GitHub comment 816#203989506

    GitHub | 1 year ago | mimi89999
    java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=3

  1. osvzs 1 times, last 2 weeks ago
  2. Indri Yunita 7 times, last 1 month ago
  3. Pilleo 1 times, last 1 month ago
  4. Andreas Häber 2 times, last 2 months ago
  5. QrCeric 1 times, last 2 months ago
25 more registered users
59 unregistered visitors
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.StringIndexOutOfBoundsException

    length=40; regionStart=21; regionLength=-7

    at java.lang.String.startEndAndLength()
  2. Java RT
    String.substring
    1. java.lang.String.startEndAndLength(String.java:298)
    2. java.lang.String.substring(String.java:1087)
    2 frames
  3. project1
    AudioSignal$5.playerMetadata
    1. project1.AudioSignal.getTrackFromAAC(AudioSignal.java:793)
    2. project1.AudioSignal.access$1100(AudioSignal.java:40)
    3. project1.AudioSignal$5.playerMetadata(AudioSignal.java:736)
    3 frames
  4. com.spoledge.aacdecoder
    BufferReader.run
    1. com.spoledge.aacdecoder.IcyInputStream.parseMetadata(IcyInputStream.java:231)
    2. com.spoledge.aacdecoder.IcyInputStream.fetchMetadata(IcyInputStream.java:205)
    3. com.spoledge.aacdecoder.IcyInputStream.read(IcyInputStream.java:133)
    4. com.spoledge.aacdecoder.BufferReader.run(BufferReader.java:155)
    4 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame