#41 StringIndexOutOfBoundsException when opening a GP5 file

v1.0 (example)
open
nobody
None
5
2014-01-24
2014-01-18
floflooo
No

TuxGuitar 1.2 reports the following error in a terminal when opening the attached GP5 tab:

java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at java.lang.String.checkBounds(String.java:409)
at java.lang.String.<init>(String.java:450)
at org.herac.tuxguitar.io.gtp.GTPInputStream.newString(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readString(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readStringByte(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readStringByte(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readChord(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readBeat(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readMeasure(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readMeasures(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readSong(Unknown Source)
at org.herac.tuxguitar.io.base.TGSongLoader.load(Unknown Source)
at org.herac.tuxguitar.gui.actions.file.FileActionUtils.open(Unknown Source)
at org.herac.tuxguitar.gui.actions.file.OpenFileAction$2$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:679)
org.herac.tuxguitar.io.base.TGFileFormatException: Cannot Open: file:/home/floflooo/Bands/7%20Sepulcher/2014/ProgrammingInnocence.bomstrip.gpx.gp5
at org.herac.tuxguitar.gui.actions.file.FileActionUtils.open(Unknown Source)
at org.herac.tuxguitar.gui.actions.file.OpenFileAction$2$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.herac.tuxguitar.io.base.TGFileFormatException: java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at org.herac.tuxguitar.io.base.TGSongLoader.load(Unknown Source)
... 3 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at java.lang.String.checkBounds(String.java:409)
at java.lang.String.<init>(String.java:577)
at org.herac.tuxguitar.io.gtp.GTPInputStream.newString(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readString(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readStringByte(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readStringByte(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readChord(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readBeat(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readMeasure(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readMeasures(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readSong(Unknown Source)
... 4 more

1 Attachments

Discussion

  • harborsiem
    harborsiem
    2014-01-18

    It is not a correct gp5 file.
    Guitar Pro 5 can not open this file (Error-message)

     
  • floflooo
    floflooo
    2014-01-24

    Thanks for checking this harborsiem. This means that the bug report can be closed.