Tux Guitar

Problems

Subject Can't open .gp5 file



Author Message
Osman
Post: May 11th 2010 at 6:25 PM

Hi all. I've been opening .gp5 files with TuxGuitar 1.0 without any problems. But this particular file just won't open. I also upgraded to 1.2, but that won't work as well. I get the error:

Cannot Open: file://C:/*.gp5 (the filepath, it's too long so I cut it out)

I checked the error logs, here is what I got:

org.herac.tuxguitar.io.base.TGFileFormatException: Cannot Open: file:/C:/*.gp5
at org.herac.tuxguitar.gui.actions.file.FileActionUtils.open(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.herac.tuxguitar.io.base.TGFileFormatException: java.lang.OutOfMemoryError: Java heap space
at org.herac.tuxguitar.io.base.TGSongLoader.load(Unknown Source)
... 3 more
Caused by: java.lang.OutOfMemoryError: Java heap space
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.readStringByteSizeOfInteger(Unknown Source)
at org.herac.tuxguitar.io.gtp.GTPInputStream.readStringByteSizeOfInteger(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTrack(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTracks(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readSong(Unknown Source)
... 4 more


Back to Top
 
Julian
Post: Jun 1st 2010 at 11:29 PM

Do you have any way to send us the buggy file ?


Back to Top
 
Karl
Post: Jun 22nd 2010 at 10:20 AM

Im trying to open gp5 file http://www.ultimate-guitar.com/guitar/t/the_arusha_accord/night_of_the_long_knives.gp5

But TuxGuitar fails to open it with following exception thrown:
java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at java.lang.String.checkBounds(String.java:401)
at java.lang.String.(String.java:442)
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.readTrack(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTracks(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:619)
org.herac.tuxguitar.io.base.TGFileFormatException: Cannot Open: file://night_of_the_long_knives.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:619)
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:401)
at java.lang.String.(String.java:569)
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.readTrack(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTracks(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readSong(Unknown Source)


Back to Top
 
gnome
Post: Jul 16th 2010 at 9:49 PM

I have the same problem with http://www.ultimate-guitar.com/tabs/p/pink_floyd/the_wall_album_guitar_pro.htm and http://www.ultimate-guitar.com/tabs/s/sensational_alex_harvey_band/faith_healer_guitar_pro.htm


Back to Top
 
Rich
Post: Aug 26th 2010 at 11:42 PM

I'm having same problem opening some, but not all gp5 files. Any progress on this issue? I am using tuxguitar ver 1.2


Back to Top
 
Luuk de Waal Malefijt
Post: Nov 13th 2010 at 4:14 PM

Same issue here. Is it because the guitar pro file is created with GP6?


Back to Top
 
Luuk de Waal Malefijt
Post: Nov 13th 2010 at 5:11 PM

Mmm, it works now. I guess it has something to do with Java heap size.


Back to Top
 
Anonymous
Post: Feb 21st 2011 at 5:05 PM

Hi,
I posted here because I have the same problem as Karl in opening the same song and a bunch of other tabs made from the same band.
They recently released all of their work as gp5 tabs, but many of them are not working, while some other are.
LINK http://thearushaaccord.com/tabs/download/all

error.log
java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at java.lang.String.checkBounds(String.java:401)
at java.lang.String.(String.java:442)
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.readTrack(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTracks(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:619)
org.herac.tuxguitar.io.base.TGFileFormatException: Impossibile Aprire: file:/C:/Documents%20and%20Settings/fmarmiroli/Desktop/taa/night-of-the-long-knives-guitar-pro.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:619)
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:401)
at java.lang.String.(String.java:569)
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.readTrack(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readTracks(Unknown Source)
at org.herac.tuxguitar.io.gtp.GP5InputStream.readSong(Unknown Source)
... 4 more


I have no knowledge on the .gp5 file format and how it is supposed to be read (the header of the files says "FICHIER GUITAR PRO v5.10") but I did some debugging and jumped to the conclusion there is a problem with the format of the file.
I'll use as example the "night-of-the-long-knives-guitar-pro.gp5" file:
While obtaining the track name of the 1st track, it reads an unsigned byte from the InputStream expecting to find the length of the string containing the track name, but at the position where the stream is pointing it reads the value "0", returning an empty string as the track name.
While doing the same thing for the 2nd track, the input stream is empty (pos = 0, count = 0), the fill() method is invoked, and the value 255 is returned as lenght of the string. Then it tries to allocate a 255 character string into a 40 bytes array, leading to that StringIndexOutOfBoundsException.
With the other tracks the problem is the same, it continues to read the wrong data until eventually the InputStream is empty and a 255 length value is returned leading to the same exception.

I'll ask the band if those tabs where made with GP6 and saved as .gp5, but it's strange since the file header says v5.10...


Back to Top