Tux Guitar

Problems

Subject Tuxguitar on ubuntu fails to reopen .tg file



Author Message
gee
Post: Jul 11th 2010 at 4:03 PM

... the file has recently been edited with windows tuxguitar. Errormessage is:
org.herac.tuxguitar.io.base.TGFileFormatException: Cannot Open: file: ...
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:636)
Caused by: org.herac.tuxguitar.io.base.TGFileFormatException: Unsupported file format
at org.herac.tuxguitar.io.base.TGSongLoader.load(Unknown Source)
... 3 more


Any ideas how I can continue working on my song? If all my ideas are lost this is probably the last time I ever use tuxguitar...


Back to Top
 
gee
Post: Jul 11th 2010 at 4:12 PM

p.s. I can still open the file with windows tuxguitar in wine, but as I see nothing in the window the only thing I can do is save the file as .gp file, which also linux tuxguitar can open again.
The changes I made with the windows program was I thing copying some parts and placing some textnotes in the score, maybe I also edited some notes.


Back to Top
 
Julian
Post: Jul 11th 2010 at 4:35 PM

I'm sure that the problem is your tuxguitar version.

>> the file has recently been edited with windows tuxguitar
What version of tuxguitar do you have in windows..

then what version of tuxguitar do you have at the other OS ?

If you have 1.2 to save, and 1.1 to open, its normal that tuxguitar 1.1 don't have support of tuxguitar 1.2 files ( because it didn't exists ).

What about the live versrion.. can you open the files with it ?
http://community.tuxguitar.com.ar/tuxguitar-live/


Back to Top
 
gee
Post: Jul 11th 2010 at 5:06 PM

p.p.s.:
opening the "broken" windows tuxguitar file with windows tuxguitar and then saving it as .gp5, opening it with linux tuxguitar and then again saving it as .tg seems to repair the file. This is a quite shocking behavior... are my ideas safe in .tg files?


Back to Top
 
Anonymous
Post: Jul 11th 2010 at 5:09 PM

Linux Version:

Paket: tuxguitar
Neu: ja
Zustand: Installiert
Automatisch installiert: nein
Version: 1.1-1ubuntu4
Priorität: optional
Bereich: universe/sound
Verwalter: Ubuntu MOTU Developers
Unkomprimierte Größe: 5.927k
Hängt ab von: default-jre | java2-runtime, libitext-java, libswt-gtk-3.5-java, libswt-cairo-gtk-3.5-jni, libswt-mozilla-gtk-3.5-jni, xulrunner-1.9.2
Empfiehlt: tuxguitar-jsa (= 1.1-1ubuntu4)
Schlägt vor: lilypond

Windows version:

TuxGuitar 1.2


there must be a specific action I have carried out making the problem appear, since it is not the first time I worked on the songs with a windows machine.


Back to Top
 
Julian
Post: Jul 11th 2010 at 5:33 PM

Is what i told before..

It's like if you try to open a GP5 file in guitar pro 4. you just can't do that.

the problem is that you are saving the TG file in 1.2 file format
But you try to open it with an older 1.1 release

When tuxguitar 1.1 was released ( 2009-04-02 ) tuxguitar 1.2 didn't exists (2009-11-01).
So 1.1 version don't have idea about 1.2 existense... this is why you can't open 1.2 files in 1.1..

So the recommended solution is to install the latest tuxguitar 1.2 version in ubuntu.

Another solucion would be to use "Export -> TuxGuitar 1.1" to save the files in windows. so you will save to .tg but to 1.1 version.
but exporting to 1.1, will make you lost unsupported features.


Back to Top
 
gee
Post: Jul 11th 2010 at 5:33 PM

yes, the tg live (btw: really cool feature!) opens the "broken" file without problems. So was there a format change in 1.2 which is not downwards compatible? Should I install a higher version than packaged by ubuntu right now?


Back to Top
 
Julian
Post: Jul 11th 2010 at 5:40 PM

It seems that we posted at same time ( read my previous post ).
and yes, every releases have a format change, that saves "new features"

Note that it's not a "broken" file.. it's just that you don't have a software installed to open that file (tuxguitar 1.2 or higher), but the file is ok and your ideas are there.


Back to Top
 
gee
Post: Jul 11th 2010 at 5:45 PM

thank you very much, I just encountered a new problem: when I try to install the ubuntu 1.2 package from this page, gdebi says:
Building data structures... Done
Traceback (most recent call last):
File "/usr/bin/gdebi", line 83, in
if not debi.open(args[0]):
File "/usr/lib/python2.6/dist-packages/GDebi/GDebiCli.py", line 86, in open
if not self._deb.checkDeb():
File "/usr/lib/python2.6/dist-packages/GDebi/DebPackage.py", line 368, in checkDeb
if not self.checkBreaksExistingPackages():
File "/usr/lib/python2.6/dist-packages/GDebi/DebPackage.py", line 283, in checkBreaksExistingPackages
'depversion' : dep.version}
KeyError: 'pkgnames'


What's this about?


Back to Top
 
Julian
Post: Jul 11th 2010 at 5:52 PM

That seems a GDebi bug.. try install it from a terminal using dpkg
but first make sure uninstall the 1.1 version (since it's from ubuntu repositories, maybe the upgrade to a different package could cause conflicts )

# to uninstall repository version.. or you can uninstall it from synaptic.
sudo dpkg --purge tuxguitar

# to install the .deb file
sudo dpkg -i /where_is_the_file/tuxguitar_file.deb

# to resolve any broken dependency
sudo apt-get -f install


Back to Top
 
gee
Post: Jul 11th 2010 at 6:01 PM

AAAAh, great, thanks once more.
Works fine now. Very nice. Sorry for the inconvenience, I'm actually switching all my work from gp4 to tg so I'm quite anxious about losing data I created after the prorgam change...


Back to Top