Tux Guitar

Problems

Subject No more handles [Unsupported platform]



Author Message
Pietro Cerutti
Post: Mar 12th 2008 at 6:57 PM

Dear Julián, dear all,

I'm the maintainer/porter of TuxGuitar on FreeBSD and I'm currently porting 1.0RC2.

Everything works fine, well done guys!

The only problem is that I cannot access the documentation from the Help/Documentation menu.

I've set the MOZILLA_FIVE_HOME environment variable, but with no success:

org.herac.tuxguitar.gui.help.doc.DocException: org.eclipse.swt.SWTError: No more handles [Unsupported platform]
at org.herac.tuxguitar.gui.help.doc.DocDialog.show(Unknown Source)
at org.herac.tuxguitar.gui.actions.help.ShowDocAction.execute(Unknown Source)
at org.herac.tuxguitar.gui.actions.Action$1.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Caused by: org.eclipse.swt.SWTError: No more handles [Unsupported platform]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.MozillaDelegate.(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.(Unknown Source)
... 9 more


Any clue?

Thanks!


Back to Top
 
Julian
Post: Mar 12th 2008 at 7:22 PM

hi, how are you ???

mmm ok..
it seems freebsd version of swt don't have browser support.

But well, i'm looking on swt home page, and i don't see any freebsd download link :d.. do you use GNU/Linux gtk version ??
as i see on GNU/Linux swt sources, the browser is validating the "os.name" java property. and it it's not "linux" it throw an exception.
so.. what about if you run: "tuxguitar -Dos.name=linux"
does it work ??


Back to Top
 
Julian
Post: Mar 12th 2008 at 7:24 PM

I forgot to say you..
you need add also MOZILLA_FIVE_HOME to the LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:MOZILLA_FIVE_HOME


Back to Top
 
Pietro Cerutti
Post: Mar 12th 2008 at 7:39 PM

Hello Julián,
everything's fine here :-)

Good, it works by setting os.name to linux... dirty hack, but it works!

I will PING you as soon as the port is committed!

Thanks, cheers!


Back to Top
 
Julian
Post: Mar 12th 2008 at 7:51 PM

Ok, i'm thinking on change this SWT browser by a real.
it's giving problems on other releases too.

so i think maybe exec a system browser will be better.

Please, can you test if tuxguitar-oss works under FreeBSD ?


Back to Top
 
Pietro Cerutti
Post: Mar 12th 2008 at 8:39 PM

mh not really...

It builds and it gets installed in plugins/, but then:

org.herac.tuxguitar.gui.system.plugins.TGPluginException: An error ocurred when trying to set plugin status
at org.herac.tuxguitar.gui.system.plugins.TGPluginManager.setEnabled(Unknown Source)
at org.herac.tuxguitar.gui.actions.settings.EditPluginsAction$4.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(Unknown Source)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError
at org.herac.tuxguitar.player.impl.midiport.oss.MidiPortProviderImpl.listPorts(Unknown Source)
at org.herac.tuxguitar.player.base.MidiPlayer.addPortProvider(Unknown Source)
at org.herac.tuxguitar.gui.system.plugins.base.TGMidiPortProviderPlugin.addPluin(Unknown Source)
at org.herac.tuxguitar.gui.system.plugins.base.TGMidiPortProviderPlugin.setEnabled(Unknown Source)


But I have midi problems on this machine, so maybe it's not your fault :-)


Back to Top
 
Julian
Post: Mar 12th 2008 at 9:04 PM

mmm, no it isn't a sound problem.
"Caused by: java.lang.NoClassDefFoundError" means that there is a missing class.

It seems MidiSystem.class or MidiConfigUtils.class is not on the .jar at:
/org/herac/tuxguitar/player/impl/midiport/oss/

can you check that ?


Back to Top
 
Pietro Cerutti
Post: Mar 12th 2008 at 9:31 PM

It seems to me that everything is there:

jar tf /usr/local/share/tuxguitar/plugins/tuxguitar-oss.jar
META-INF/
META-INF/MANIFEST.MF
META-INF/services/
org/
org/herac/
org/herac/tuxguitar/
org/herac/tuxguitar/player/
org/herac/tuxguitar/player/impl/
org/herac/tuxguitar/player/impl/midiport/
org/herac/tuxguitar/player/impl/midiport/oss/
META-INF/services/org.herac.tuxguitar.gui.system.plugins.TGPlugin
org/herac/tuxguitar/player/impl/midiport/oss/JNILibraryLoader.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiConfigUtils$1.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiConfigUtils$2.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiConfigUtils.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiOutImpl.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiPortImpl.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiPortProviderImpl.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiPortProviderPlugin.class
org/herac/tuxguitar/player/impl/midiport/oss/MidiSystem.class


Maybe there's a problem with the library. I put it here:
/usr/local/share/tuxguitar/plugins/libtuxguitar-oss-jni.so

and invoke java with:
-Djava.library.path=/usr/local/share/tuxguitar/plugins


Back to Top
 
Pietro Cerutti
Post: Mar 12th 2008 at 9:35 PM

wait... it seems to work now... I'll check back in a few minutes...

btw, do you have Jabber, ICQ, Skype or something? Maybe it would be better if we could discuss real-time.

Jabber: gahr@swissjabber.ch
Skype: pietro.cerutti
ICQ: 117293691

Thanks!


Back to Top