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

tip

You need to make sure that capitalisation of the case for the plugin in the
properties file is exactly: "AllocinePlugin" and not "allocineplugin"

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 816#203989506
    via GitHub by mimi89999
    ,
  • AppsFlyerLib StringIndexOutOfBoundsException
    via Stack Overflow by busylee
    ,
  • GitHub comment 58#256844115
    via GitHub by hengtongjie
    ,
  • App Crashing
    via GitHub by aman-jham
    ,
    • java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7 at java.lang.String.startEndAndLength(String.java:298) at java.lang.String.substring(String.java:1087) at project1.AudioSignal.getTrackFromAAC(AudioSignal.java:793) at project1.AudioSignal.access$1100(AudioSignal.java:40) at project1.AudioSignal$5.playerMetadata(AudioSignal.java:736) at com.spoledge.aacdecoder.IcyInputStream.parseMetadata(IcyInputStream.java:231) at com.spoledge.aacdecoder.IcyInputStream.fetchMetadata(IcyInputStream.java:205) at com.spoledge.aacdecoder.IcyInputStream.read(IcyInputStream.java:133) at com.spoledge.aacdecoder.BufferReader.run(BufferReader.java:155) at java.lang.Thread.run(Thread.java:818)

    Users with the same issue

    winer222
    winer2226 times, last one,
    filpgame
    filpgame2 times, last one,
    Alexandru Popa
    Alexandru Popa2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    96 more bugmates