seduction
 Language:
Welcome, Guest. Please login or register.
Did you miss your activation email?
2020/10/25, 22:57:50


Help

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: tuxguitar java problems  (Read 7995 times)

0 Members and 1 Guest are viewing this topic.

Offline michaa7

  • User
  • Posts: 2.128
tuxguitar java problems
« on: 2014/05/08, 14:02:35 »
I newly installed tuxguitar. When I open it I get an error "java sound api cannot be loaded" and thus I have no sound with tuxguitar.

Anyone here running successfully tuxguitar on siduction? Could you tell me what java libraries you have installed? Especially whether or not one of the following is neded: libbasicplayer-java libtritonus-java libtritonus-jni liblwjgl-java-jni
libbasicplayer-java
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.040
    • Land of the Buckeye
Re: tuxguitar java problems
« Reply #1 on: 2014/05/08, 15:36:31 »
Out of curiosity I installed it and ran it from a terminal on my 64-bit KDE desktop.  The terminal is full of Glib-GObject-Critical and Glib-GObject-Warning messages, but the package opens and responds to my clicking around in it.  I don't know how to use it and "play" did not produce any music -- I'm not sure whether that is an error or just my ignorance of how to use it.  I did not see any java messages, and I do not have any of your listed java-related packages installed on this system.  If you want more details, I can provide them.


Edit:  After further playing around, I went into "Composition > Properties", and when I canceled on that dialog, it crashed.  Here is the end of the terminal output:


Code: [Select]
(TuxGuitar:22337): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.40.0/./gobject/gclosure.c:688: unable to remove uninstalled invalidation notifier: 0x7fc8e2a52e00 (0x7fc928c30d70)


(TuxGuitar:22337): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed


(TuxGuitar:22337): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc8e2a4c718, pid=22337, tid=140502067345152
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x19718]  g_object_get_qdata+0x18
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/don/hs_err_pid22337.log
Compiled method (nm) 1566145   96     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007fc9250d3c90,0x00007fc9250d4010] = 896
 relocation     [0x00007fc9250d3db0,0x00007fc9250d3e10] = 96
 main code      [0x00007fc9250d3e20,0x00007fc9250d4010] = 496
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
« Last Edit: 2014/05/08, 15:42:31 by dibl »
Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO, 2@WD1003FZEX in BTRFS

Offline seasons

  • User
  • Posts: 258
Re: tuxguitar java problems
« Reply #2 on: 2014/05/08, 18:21:37 »
Do you have tuxguitar-jsa or another tuxguitar plugin package installed?

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #3 on: 2014/05/08, 19:09:50 »
@ dibl

for sound you need an installed synthesizer (timididy or fluidsynth) and you need to go to settings/sound and there you select your synthersizer (midi port "midi-through" won't do it here when I installed it time ago, I needed to select a specific port).
Default tuxguitar synth won't do it, but in a fresh (=incomplete install) there is nothing else to select. You at least need to install tuxguitar-jsa (and maybe more) to have more choices.
Probably after installing  tuxguitar-jsa it works for you, else you will get the same error message I got when I opened tuxguitar.

@ seasons

yepp, installed
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.040
    • Land of the Buckeye
Re: tuxguitar java problems
« Reply #4 on: 2014/05/08, 20:39:57 »
Yes.  I installed timidity and tuxguitar-jsa and it now now plays as expected.  Upon launching, I see an error that mentions "mozilla", but then the flood of Glib-GObject errors overruns the terminal buffer and the first error disappears off the top.


Clicking around in the menus like I did before, it doesn't crash now.
Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO, 2@WD1003FZEX in BTRFS

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #5 on: 2014/05/08, 21:19:41 »
Yes.  I installed timidity and tuxguitar-jsa and it now now plays as expected.  Upon launching, I see an error that mentions "mozilla", but then the flood of Glib-GObject errors overruns the terminal buffer and the first error disappears off the top....
Clicking around in the menus like I did before, it doesn't crash now.

Thanks dibl for testing.

Good news for you is bad news for me as I now wonder what the h..l is going on on *my* system. I now have to assume tuxguitar is working in SID, but not on my installation. Which JRE are you using? openjdk or sun/oracle?
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline seasons

  • User
  • Posts: 258
Re: tuxguitar java problems
« Reply #6 on: 2014/05/08, 21:40:41 »
michaa7, I can't reproduce the error with fluidsynth and tuxguitar-jsa installed. It plays sound okay.

All I have installed for java is openjdk-7-jre and the icedtea plugin. I am using straight ALSA (no pulseaudio).

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #7 on: 2014/05/08, 21:54:01 »
...
All I have installed for java is openjdk-7-jre and the icedtea plugin. I am using straight ALSA (no pulseaudio).

Thanks, same here.

But I badly neeeeeeeeeeeeeeeeeeeeeeeeeeed tuxguitar ... I. have. no. clue. where. I. need. to. look.

Which other programs are availabel to edit guitar tabs (please, don't mention musescore, a nightmere)? Maybe rosegarden? But it needs jack, I am tired of alllllllllllllllllllllllllllllllllll those config issus. Do you know how easy windows is on this topic?
« Last Edit: 2014/05/08, 21:57:58 by michaa7 »
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.040
    • Land of the Buckeye
Re: tuxguitar java problems
« Reply #8 on: 2014/05/08, 21:56:52 »
Here you go Micha:


Code: [Select]
root@imerabox:/# apt-cache policy openjdk-7-jre
openjdk-7-jre:
  Installed: 7u55-2.4.7-1
  Candidate: 7u55-2.4.7-1
  Version table:
 *** 7u55-2.4.7-1 0
        500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
root@imerabox:/# apt-cache policy icedtea-plugin
icedtea-plugin:
  Installed: 1.5-1
  Candidate: 1.5-1
  Version table:
 *** 1.5-1 0
        500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
root@imerabox:/# apt-cache policy alsa-tools
alsa-tools:
  Installed: 1.0.27-3
  Candidate: 1.0.27-3
  Version table:
 *** 1.0.27-3 0
        500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
root@imerabox:/# apt-cache policy pulseaudio
pulseaudio:
  Installed: 5.0-2
  Candidate: 5.0-2
  Version table:
 *** 5.0-2 0
        500 http://ftp.us.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
root@imerabox:/# lsb_release -a
LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch
Distributor ID: Debian
Description:    Debian GNU/Linux unstable (sid)
Release:        unstable
Codename:       sid
root@imerabox:/# uname -a
Linux imerabox 3.15-rc4-siduction-amd64 #1 SMP PREEMPT Mon May 5 12:42:51 UTC 2014 x86_64 GNU/Linux
Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO, 2@WD1003FZEX in BTRFS

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #9 on: 2014/05/08, 22:17:43 »
 relevant part of error output which suggest some alsa (?) problems:

Quote
...Caused by: java.lang.NoClassDefFoundError: gnu.javax.sound.midi.alsa.AlsaMidiDeviceProv ider ...

but I am clueless about what to do with this info

BTW: I can play midi using nted (useses timidity on midiport 0)
« Last Edit: 2014/05/08, 22:22:21 by michaa7 »
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.040
    • Land of the Buckeye
Re: tuxguitar java problems
« Reply #10 on: 2014/05/08, 22:23:25 »
It's way over my head, to be honest, but I would focus on these two:


Code: [Select]
org.herac.tuxguitar.player.base.MidiPlayerEx ception: Java sound api cannot be loaded
.
.
.
Caused by: java.lang.NoClassDefFoundError: gnu.javax.sound.midi.alsa.AlsaMidiDeviceProv ider


and also maybe:


Code: [Select]
at java.security.AccessController.doPrivileged(libgcj.so.15)

EDIT: And I see you already filed a bug on that one.
Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO, 2@WD1003FZEX in BTRFS

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #11 on: 2014/05/08, 22:25:09 »
Here you go Micha:
...

Thanks again.

alsa-tools weren't installed for what ever reason, but after install and reboot tuxguitar still not working
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.040
    • Land of the Buckeye
Re: tuxguitar java problems
« Reply #12 on: 2014/05/08, 22:48:47 »
Under Tools > Settings > Sound, the MIDI port is set to "Gervill" on mine -- that is default.  And the MIDI Sequencer says TuxGuitar Sequencer.  When I cancelled out of that window, it crashed again -- it doesn't seem very stable.
Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO, 2@WD1003FZEX in BTRFS

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #13 on: 2014/05/08, 23:50:04 »
Under Tools > Settings > Sound, the MIDI port is set to "Gervill" on mine -- that is default.  And the MIDI Sequencer says TuxGuitar Sequencer.  When I cancelled out of that window, it crashed again -- it doesn't seem very stable.

yeah, that's how it looks like when and if it is working ;-)

In the meantime I installed tuxguitar tuxguitar-jsa  on an old siduction live system. Additionally to the two mentioned packages the following packages got installed:
Quote
  ca-certificates-java default-jre default-jre-headless fontconfig-config
  java-common libatk-wrapper-java libatk-wrapper-java-jni libbcmail-java
  libbcpkix-java libbcprov-java libfontconfig1 libglib2.0-0 libgnuinet-java
  libgnumail-java libgraphite2-3 libharfbuzz0b libitext-java libjs-jquery
  libmozjs24d libnspr4 libnss3 libpango-1.0-0 libpango1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpangoxft-1.0-0
  libswt-cairo-gtk-3-jni libswt-gtk-3-java libswt-gtk-3-jni
  libswt-webkit-gtk-3-jni openjdk-7-jre openjdk-7-jre-headless tzdata
  tzdata-java xulrunner-24.0
I will try to reinstall all of them on my installed system an see where it leads.

Any other ideas how to handle this problem are very welcome


EDIT://

Reinstalling those packages didn't help (all where installed before and none got updated).
One message during update might be of interest:
Quote
update-binfmts: warning: current package is openjdk-7, but binary format already installed by openjdk-6

There is a related bug report, but I don't know how to read it:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643760

I guess it would be a good idea to get rid of this message (and tzhe underlying problem). Should I purge all java packages and then reinstall them?
« Last Edit: 2014/05/09, 00:13:14 by michaa7 »
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline michaa7

  • User
  • Posts: 2.128
Re: tuxguitar java problems
« Reply #14 on: 2014/05/09, 00:47:33 »
Although the error  (java sound API cannot be loaded) persists I now have sound using timidity-port 0 . I can live with that for now.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake