Tux Guitar

Problems

Subject Soundbank Error on Fedora 8



Author Message
me
Post: Jan 27th 2008 at 4:10 PM

I'm running TuxGuitar and it won't play back my files giving me the "Unavailable Soundbank" Error

Here's what I've done so far:
*Installed new soundbank and told TuxG to use custom dir ... fail
*Installed (config, make, make install) Alsa-oss, Alsa-plugins, Timidity ... fail
*Close all other programs (so that only TuXG runs) ... fail

what should I do?


Back to Top
 
me
Post: Jan 27th 2008 at 4:12 PM

[dare@vl136-162 TuxGuitar-0.9.1-linux-gtk-x86]$ ./tuxguitar
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1095)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:324)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.init(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.initPlayer(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1147)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1093)
... 15 more
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1095)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:324)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSoundbank(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getInstrumentName(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.updateTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.loadProperties(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.initTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.init(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.(Unknown Source)
at org.herac.tuxguitar.gui.SongTableViewer.showTable(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.createComposites(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1147)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1093)
... 13 more
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1095)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:324)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSoundbank(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getInstrumentName(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.updateTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.initTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.init(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.(Unknown Source)
at org.herac.tuxguitar.gui.SongTableViewer.showTable(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.createComposites(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1147)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1093)
... 12 more


Back to Top
 
Julian
Post: Jan 27th 2008 at 4:44 PM

Hi,
do you have snd_seq module loaded ???
exec this on a terminal:
lsmod | grep snd

if snd_seq is not on the result list, just load it (as root):
modprobe snd_seq

about alsa-oss, it have not sence if you don't use it, you must exec "aoss ./tuxguitar" to run alsa-oss as wrapper.


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 8:48 AM

Hi,

I've got the same problem (on Fedora 8 x86_64) :

I've installed Suns's deluxe sound bank, as snd_seq module was not loaded, I typed "modprobe snd_seq".
I've also tried to launch TuxGuitar with "aoss ./tuxguitar".
And always the same error complaining about unavailable sound bank...
I've tried tu use default sound bank, alternate soundbank providing the path to the soundbank file.
I'm using Fedora's Iced Tead (and not Sun's JRE).

Thanks by advance for your help. I can provide you the (long !) error message if you want.


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 8:53 AM

Here are the messages @ launching TuxGuitar
[me@fedora TuxGuitar-0.9.1-linux-gtk-x86_64]$ aoss ./tuxguitar
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1096)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:325)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.init(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
at java.lang.Class.newInstance0(Class.java:373)
at java.lang.Class.newInstance(Class.java:326)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.util.ClassLoaderUtil.newInstance(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.initPlayer(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1148)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1094)
... 15 more
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1096)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:325)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSoundbank(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getInstrumentName(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.updateTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.loadProperties(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.initTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.init(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.(Unknown Source)
at org.herac.tuxguitar.gui.SongTableViewer.showTable(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.createComposites(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1148)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1094)
... 13 more
javax.sound.midi.MidiUnavailableException
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1096)
at javax.sound.midi.MidiSystem.getSynthesizer(MidiSystem.java:325)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSynthesizer(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getSoundbank(Unknown Source)
at org.herac.tuxguitar.player.impl.MidiPlayerImpl.getInstrumentName(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.updateTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.initTable(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.init(Unknown Source)
at org.herac.tuxguitar.gui.table.SongTableInfo.(Unknown Source)
at org.herac.tuxguitar.gui.SongTableViewer.showTable(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.createComposites(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Requested device not installed
at javax.sound.midi.MidiSystem.getDefaultDevice(MidiSystem.java:1148)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(MidiSystem.java:1094)
... 12 more


Back to Top
 
Julian
Post: Feb 16th 2008 at 9:16 AM

Aiolizator: Iced Tea don't include all Sun JDK Components.
one of them is the "Java Synthesizer" needed by tuxguitar-0.9.1.
it's possible run tuxguitar under icedtea, but you must intall tuxguitar-alsa plugin to play sounds to a external synthesizer installed on your OS ( like timidity )

Actually there is not official binary release of tuxguitar-alsa builded for x86_64 arch.
so you'll need build it, or otherwise install a Sun java runtime.

Bye


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 9:29 AM

And how about using the x86 build of TuxGuitar ?
Would it work wih tuxguitar-alsa ?


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 9:44 AM

Trying to launch x86 build (with tuxguitar-alsa plugin installed) :

[me@fedora TuxGuitar-0.9.1-linux-gtk-x86]$ ./tuxguitar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/jchortala/Téléchargement/TuxGuitar-0.9.1-linux-gtk-x86/lib/libswt-pi-gtk-3232.so: /home/jchortala/Téléchargement/TuxGuitar-0.9.1-linux-gtk-x86/lib/libswt-pi-gtk-3232.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1769)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1694)
at java.lang.Runtime.loadLibrary0(Runtime.java:841)
at java.lang.System.loadLibrary(System.java:1067)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.(Display.java:126)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.main(Unknown Source)

I'm downloading Sun's JDK right now...


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 9:56 AM

It doesn't work either with Suns's JDK installed (with JAVA variable set), I've got the same essor message when launching TG.


Back to Top
 
Julian
Post: Feb 16th 2008 at 10:05 AM

The second error es because you are trying x86 version..
but you can't run a 32 bit app on a 64 bit platform ( Your OS was builded for 64 bit )

so try again with x86_64 version of tuxguitar.

also excec this to make sure about the JAVA env var:
$JAVA -version

also, if you shut down your PC since the "modprobe snd_seq" you must do that again. ( see Fedora Docs for how to auto load a module when system boot to don't do this all days )

then try run again..
if you get an error different as: "javax.sound.midi.MidiUnavailableException" so paste it here.

Bye


Back to Top
 
Johnny
Post: Feb 16th 2008 at 10:06 AM

Do you have 32-bit or 64-bit computer? It seems that your SWT library is for other architecture.

Here's a list of SWT libraries
http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1.1-200710231652/index.php#swt (on the bottom)

but you will have to add it to classpath manually...


Back to Top
 
Anonymous
Post: Feb 16th 2008 at 10:22 AM

I've a 64 bit CPU, but are you sure 32 bit apps cannot run on a 64 bit OS ? I've always thought it was possible to run both.

I know that that the module will have to be reloaded when the system reboots. I've put "snd_seq" in my /etc/modprobe.preload file in order to load it @ each system startup.


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 10:25 AM

previous post was mine, I forgot to type my Nickname


Back to Top
 
Julian
Post: Feb 16th 2008 at 10:29 AM

I know you can install a 32bit Os on a 64 bit Arch.
but if you installed a 64bit OS, you can't run 32bit apps. ( as i know.. maybe i'm wrong )
However, your second error posted says that:

wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

What about the x86_64 version of tuxguitar under Sun JRE ? did it works ?


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 11:18 AM

I didn't go on trying to run 32 bit version.

With Sun JDK, it doest'n work either.

There are so many java directories that I'm a little bit lost when giving the path for the $JAVA variable.


Back to Top
 
Julian
Post: Feb 16th 2008 at 11:30 AM

mmm i'm little confused.

> I didn't go on trying to run 32 bit version.
i mean the 64 bit version.. the first you tried
64 bit -> TuxGuitar-0.9.1-linux-gtk-x86_64
32 bit -> TuxGuitar-0.9.1-linux-gtk-x86

the $JAVA var must point to the "java" excecutable file.
e.g: export JAVA=/usr/lib/jvm/java-6-sun/bin/java

i don't have idea where is it installed on Fedora.

> With Sun JDK, it doest'n work either.
is MidiUnavailableException the error ?


Back to Top
 
Anonymous
Post: Feb 16th 2008 at 11:56 AM

I know which one is the 32, and which one is the 64 bit version thanks ;-)
I don't try anymore to get 32 bit version workin, I'm only tryin with the 64 one.

Yes, still the same f*in error

EDIT : I finally got it workin with the following var :

export JAVA=/usr/java/jdk1.6.0_04/bin/java

Thanks for your help, mate.


Back to Top
 
aiolizator
Post: Feb 16th 2008 at 12:02 PM

I have no more error messages, but I can't hear any sound :(.
Any clue ?


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 12:07 PM

I've tried "pulseaudio -k" before launching TuxGuitar, still no sound.


Back to Top
 
Julian
Post: Feb 16th 2008 at 12:29 PM

mmm, there are no error messages
but did you saw for errors when you try play ?


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 12:42 PM

The only error that appears in the console appears when I click on "Open" in the file menu :

tk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::odd-row-color' of type `GdkColor' from rc file value "((GString*) 0x2aaac412e6a0)" of type `GString'

But it has nothing to do with sound problems.

No other error occur.


Back to Top
 
Aiolizator
Post: Feb 16th 2008 at 3:16 PM

Finally it worked, I had to remove aoss in the beginning of the command line to have some sound.


Back to Top
 
Julian
Post: Feb 17th 2008 at 10:36 AM

mmm, Strange..
However, next version will include tuxguitar alsa as default for GNU/Linux releases.


Back to Top