Tux Guitar

Problems

Subject tuxguitar crash when configuring fluidsynth plugin



Author Message
Andy
Post: Jan 6th 2010 at 12:30 PM

Hi there,
I'm using Tuxguitar 1.2 (the downloadable version from your website) on my opensuse 11.2 system. Currently I want to use my own soundfonts file and try to configure the fluidsynth plugin.

When I start Tuxguitar as root user everything is working, when I start Tuxguitar as user, Tuxguitar crashes after clicking the configure buttom of the fluidsynth plugin.

I get the following "dump":
*** glibc detected *** /usr/lib/jvm/java/bin/java: free(): invalid pointer: 0x081f99a0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7f2f50b]
/lib/libc.so.6(cfree+0xd9)[0xb7f34049]
/home/mrplanlos/tuxguitar-1.2-linux-x86/lib/libtuxguitar-fluidsynth-jni.so(Java_org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth_getPropertyOptions+0xed)[0x8f972e0a]
[0xb54bef4d]
[0xb54b7da1]
[0xb54b7f07]
[0xb54b7f07]
[0xb54b7da1]
[0xb54b827d]
[0xb54b827d]
[0xb559b514]
[0xb55fd774]
[0xb55f9638]
[0xb54b7fcd]
[0xb54b7da1]
[0xb54b52cc]
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/client/libjvm.so[0xb77b38f1]
[0x9]
======= Memory map: ========
08048000-08051000 r-xp 00000000 08:07 179254 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java
08051000-08052000 r--p 00008000 08:07 179254 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java
08052000-08053000 rw-p 00009000 08:07 179254 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/java
08053000-0872b000 rw-p 00000000 00:00 0 [heap]
8ef8a000-8efa8000 r-xp 00000000 08:07 111206 /lib/libgcc_s.so.1
8efa8000-8efa9000 r--p 0001d000 08:07 111206 /lib/libgcc_s.so.1
8efa9000-8efaa000 rw-p 0001e000 08:07 111206 /lib/libgcc_s.so.1
8efaa000-8efab000 ---p 00000000 00:00 0
8efab000-8f7ab000 rwxp 00000000 00:00 0
8f7ab000-8f7e0000 r--s 00000000 08:06 193924 /var/run/nscd/group
8f7e0000-8f816000 r-xp 00000000 08:07 108365 /lib/libncurses.so.5.6
8f816000-8f817000 ---p 00036000 08:07 108365 /lib/libncurses.so.5.6
8f817000-8f819000 r--p 00036000 08:07 108365 /lib/libncurses.so.5.6
8f819000-8f81d000 rw-p 00038000 08:07 108365 /lib/libncurses.so.5.6
8f81d000-8f820000 r-xp 00000000 08:07 105299 /lib/libuuid.so.1.3.0
8f820000-8f821000 r--p 00003000 08:07 105299 /lib/libuuid.so.1.3.0
8f821000-8f822000 rw-p 00004000 08:07 105299 /lib/libuuid.so.1.3.0
8f822000-8f84c000 r-xp 00000000 08:07 325311 /usr/lib/libportaudio.so.2.0.0
8f84c000-8f84d000 r--p 00029000 08:07 325311 /usr/lib/libportaudio.so.2.0.0
8f84d000-8f84e000 rw-p 0002a000 08:07 325311 /usr/lib/libportaudio.so.2.0.0
8f84e000-8f85f000 r-xp 00000000 08:07 325096 /usr/lib/libjack.so.0.0.28
8f85f000-8f860000 r--p 00010000 08:07 325096 /usr/lib/libjack.so.0.0.28
8f860000-8f862000 rw-p 00011000 08:07 325096 /usr/lib/libjack.so.0.0.28
8f862000-8f86a000 rw-p 00000000 00:00 0
8f86a000-8f8a0000 r-xp 00000000 08:07 105266 /lib/libreadline.so.6.0
8f8a0000-8f8a1000 r--p 00035000 08:07 105266 /lib/libreadline.so.6.0
8f8a1000-8f8a4000 rw-p 00036000 08:07 105266 /lib/libreadline.so.6.0
8f8a4000-8f8a6000 rw-p 00000000 00:00 0
8f8a6000-8f8b1000 r-xp 00000000 08:07 324443 /usr/lib/liblash.so.1.1.1
8f8b1000-8f8b2000 r--p 0000a000 08:07 324443 /usr/lib/liblash.so.1.1.1
8f8b2000-8f8b3000 rw-p 0000b000 08:07 324443 /usr/lib/liblash.so.1.1.1
8f8b3000-8f907000 r-xp 00000000 08:07 326444 /usr/lib/libfluidsynth.so.1.1.3
8f907000-8f908000 r--p 00053000 08:07 326444 /usr/lib/libfluidsynth.so.1.1.3
8f908000-8f90a000 rw-p 00054000 08:07 326444 /usr/lib/libfluidsynth.so.1.1.3
8f90a000-8f970000 rw-p 00000000 00:00 0
8f970000-8f973000 r-xp 00000000 08:08 267341 /home/mrplanlos/tuxguitar-1.2-linux-x86/lib/libtuxguitar-fluidsynth-jni.so
8f973000-8f974000 rw-p 00003000 08:08 267341 /home/mrplanlos/tuxguitar-1.2-linux-x86/lib/libtuxguitar-fluidsynth-jni.so
8f974000-8f976000 r-xp 00000000 08:07 439813 /usr/lib/pango/1.6.0/modules/pango-arabic-fc.so
8f976000-8f977000 r--p 00001000 08:07 439813 /usr/lib/pango/1.6.0/modules/pango-arabic-fc.so
8f977000-8f978000 rw-p 00002000 08:07 439813 /usr/lib/pango/1.6.0/modules/pango-arabic-fc.so
8f978000-8f979000 r-xp 00000000 08:07 439525 /usr/lib/pango/1.6.0/modules/pango-arabic-lang.so
8f979000-8f97a000 r--p 00000000 08:07 439525 /usr/lib/pango/1.6.0/modules/pango-arabic-lang.so
8f97a000-8f97b000 rw-p 00001000 08:07 439525 /usr/lib/pango/1.6.0/modules/pango-arabic-lang.so
8f97b000-8f9d2000 r--p 00000000 08:07 416604 /usr/share/fonts/truetype/tahomabd.ttf
8f9d2000-8f9d5000 r--p 00000000 08:07 356512 /usr/share/locale-bundle/de/LC_MESSAGES/atk10.mo
8f9d5000-8fa19000 r--p 00000000 08:07 162393 /usr/share/fonts/truetype/arial.ttf
8fa19000-8fa5f000 r--p 00000000 08:07 162391 /usr/share/fonts/truetype/arialbd.ttf
8fa5f000-8fabf000 rw-s 00000000 00:04 1212422 /SYSV00000000 (deleted)
8fabf000-8fac0000 r-xp 00000000 08:07 437999 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
8fac0000-8fac1000 r--p 00000000 08:07 437999 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
8fac1000-8fac2000 rw-p 00001000 08:07 437999 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
8fac2000-8fac5000 rwxp 00000000 00:00 0
8fac5000-8fb13000 rwxp 00000000 00:00 0
8fb13000-8fb16000 rwxp 00000000 00:00 0
8fb16000-8fb64000 rwxp 00000000 00:00 0
8fb64000-8fb67000 ---p 00000000 00:00 0
8fb67000-8fbb5000 rwxp 00000000 00:00 0
8fbb5000-8fbb8000 ---p 00000000 00:00 0
8fbb8000-8fc06000 rwxp 00000000 00:00 0
8fc06000-8fc07000 rw-s 81000000 00:0f 7551 /dev/snd/pcmC0D0p
8fc07000-8fc08000 r--s 80000000 00:0f 7551 /dev/snd/pcmC0D0p
8fc08000-8fc0b000 ---p 00000000 00:00 0
8fc0b000-8fc59000 rwxp 00000000 00:00 0
8fc59000-8fc5a000 rw-p 00000000 00:00 0
8fc5a000-8fc5c000 r-xp 00000000 08:08 267340 /home/mrplanlos/tuxguitar-1.2-linux-x86/lib/libtuxguitar-alsa-jni.so
8fc5c000-8fc5d000 rw-p 00001000 08:08 267340 /home/mrplanlos/tuxguitar-1.2-linux-x86/lib/libtuxguitar-alsa-jni.so
8fc5d000-8fd2e000 r-xp 00000000 08:07 325214 /usr/lib/libasound.so.2.0.0
8fd2e000-8fd2f000 ---p 000d1000 08:07 325214 /usr/lib/libasound.so.2.0.0
8fd2f000-8fd32000 r--p 000d1000 08:07 325214 /usr/lib/libasound.so.2.0.0
8fd32000-8fd33000 rw-p 000d4000 08:07 325214 /usr/lib/libasound.so.2.0.0
8fd33000-8fd42000 r-xp 00000000 08:07 534800 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsoundalsa.so
8fd42000-8fd43000 r--p 0000e000 08:07 534800 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsoundalsa.so
8fd43000-8fd44000 rw-p 0000f000 08:07 534800 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsoundalsa.so
8fd44000-8fd45000 r-xp 00000000 08:07 534799 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsound.so
8fd45000-8fd46000 r--p 00000000 08:07 534799 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsound.so
8fd46000-8fd47000 rw-p 00001000 08:07 534799 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/i386/libjsound.so
8fd47000-8fd4e000 r--s 000fe000 08:07 534824 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/resources.jar
8fd4e000-8fd58000 r-xp 00000000 08:07 163190 /tmp/swtlib-32/libswt-cairo-gtk-3611.so
8fd58000-8fd59000 rw-p 00009000 08:07 163190 /tmp/swtlib-32/libswt-cairo-gtk-3611.so
8fd59000-8fd5b000 r--s 00003000 08:08 267350 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-browser-ftp.jar
8fd5b000-8fd5c000 r--s 00004000 08:08 267354 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-tef.jar
8fd5c000-8fd5e000 r--s 0000e000 08:08 267349 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-gtp.jar
8fd5e000-8fd60000 r--s 00006000 08:08 267364 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-jack.jar
8fd60000-8fd61000 r--s 00001000 08:08 267360 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-ascii.jar
8fd61000-8fd63000 r--s 00001000 08:08 267366 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-oss.jar
8fd63000-8fd65000 r--s 00006000 08:08 267358 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-tuner.jar
8fd65000-8fd67000 r--s 00005000 08:08 267351 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-ptb.jar
8fd67000-8fd69000 r--s 00004000 08:08 267348 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-lilypond.jar
8fd69000-8fd6b000 r--s 00000000 08:08 267365 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-alsa.jar
8fd6b000-8fd6c000 r--s 00004000 08:08 267363 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-fluidsynth.jar
8fd6c000-8fd6e000 r--s 00001000 08:08 267356 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-musicxml.jar
8fd6e000-8fd70000 r--s 00008000 08:08 267359 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-jsa.jar
8fd70000-8fd72000 r--s 00001000 08:08 267362 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-pdf.jar
8fd72000-8fd74000 r--s 00005000 08:08 267355 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-converter.jar
8fd74000-8fd75000 r--s 00003000 08:08 267361 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-gervill.jar
8fd75000-8fd77000 r--s 0000a000 08:08 267353 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-compat.jar
8fd77000-8fd7a000 r--s 0000b000 08:08 267352 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-community.jar
8fd7a000-8fd7c000 r--s 00005000 08:08 267357 /home/mrplanlos/tuxguitar-1.2-linux-x86/share/plugins/tuxguitar-midi.jar
8fd7c000-8fd88000 r--s 00108000 08:08 267339 /home/mrplanlos/tuxguitar-1.2-linux-x86/lib/itext.jar
8fd88000-8fde8000 rw-s 00000000 00:04 1179653 /SYSV00000000 (deleted)
8fde8000-8fe46000 r--p 00000000 08:07 416603 /usr/share/fonts/truetype/tahoma.ttf
8fe46000-8fe48000 r-xp 00000000 08:07 437690 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
8fe48000-8fe49000 r--p 00001000 08:07 437690 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
8fe49000-8fe4a000 rw-p 00002000 08:07 437690 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
8fe4a000-8fe51000 r--s 00000000 08:06 72 /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-x86.cache-2
8fe51000-8fe56000 r--s 00000000 08:06 49 /var/cache/fontconfig/1890317d8a3fded7854d26fdd2e67c05-x86.cache-2
8fe56000-8fe59000 r--s 00000000 08:06 59 /var/cache/fontconfig/31f82260556886db06538972b4bc1ecd-x86.cache-2
8fe59000-8fe7b000 r--s 00000000 08:06 80 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
8fe7b000-8feb0000 r--s 00000000 08:06 73 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86.cache-2
8feb0000-8feb5000 r--s 00000000 08:06 71 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
8feb5000-8fef6000 r--s 00000000 08:06 83 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
8fef6000-8ff37000 r--s 00000000 08:06 58 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
8ff37000-8ff3a000 r--s 00000000 08:08 6510 /home/mrplanlos/.fontconfig/7553ee7a2a0a5093faf785cc214e8187-x86.cache-2
8ff3a000-8ff59000 r--p 00000000 08:07 350204 /usr/share/locale/de/LC_MESSAGES/libc.mo
8ff59000-8ff87000 r-xp 00000000 08:07 440285 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
8ff87000-8ff88000 r--p 0002d000 08:07 440285 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
8ff88000-8ff89000 rw-p 0002e000 08:07 440285 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
8ff89000-8ff8d000 rwxp 00000000 00:00 0
8ff8d000-8ffb5000 r--p 00000000 08:07 356563 /usr/share/locale-bundle/de/LC_MESSAGES/gtk20-properties.mo
8ffb5000-8ffc8000 r--p 00000000 08:07 361138 /usr/share/locale-bundle/de/LC_MESSAGES/gtk20.mo
8ffc8000-8ffc9000 r--p 00000000 08:07 373959 /usr/lib/locale/de_DE.utf8/LC_NUMERIC
8ffc9000-8ffca000 r--p 00000000 08:07 367313 /usr/lib/locale/de_DE.utf8/LC_TIME
8ffca000-900b7000 r--p 00000000 08:07 367288 /usr/lib/locale/de_DE.utf8/LC_COLLATE
900b7000-900b8000 r--p 00000000 08:07 373977 /usr/lib/locale/de_DE.utf8/LC_MONETARY
900b8000-900b9000 r--p 00000000 08:07 373915 /usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES
900b9000-900ba000 r--p 00000000 08:07 380674 /usr/lib/locale/de_DE.utf8/LC_PAPER
900ba000-900bb000 r--p 00000000 08:07 375927 /usr/lib/locale/de_DE.utf8/LC_NAME
900bb000-900bc000 r--p 00000000 08:07 365395 /usr/lib/locale/de_DE.utf8/LC_ADDRESS
900bc000-900bd000 r--p 00000000 08:07 373877 /usr/lib/locale/de_DE.utf8/LC_TELEPHONE
900bd000-900be000 r--p 00000000 08:07 384174 /usr/lib/locale/de_DE.utf8/LC_MEASUREMENT
900be000-900c0000 r-xp 00000000 08:07 324715 /usr/lib/libXau.so.6.0.0
900c0000-900c1000 r--p 00001000 08:07 324715 /usr/lib/libXau.so.6.0.0
900c1000-900c2000 rw-p 00002000 08:07 324715 /usr/lib/libXau.so.6.0.0
900c2000-900ef000 r-xp 00000000 08:07 108490 /lib/libpcre.so.0.0.1
900ef000-900f0000 r--p 0002c000 08:07 108490 /lib/libpcre.so.0.0.1
900f0000-900f1000 rw-p 0002d000 08:07 108490 /lib/libpcre.so.0.0.1./tuxguitar: Zeile 36: 4487 Abgebrochen ${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Dtuxguitar.share.path="share/" -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"


Back to Top
 
Julian
Post: Jan 22nd 2010 at 5:47 PM

What fluidsynth version do you have ???


Back to Top
 
Karsten
Post: Jul 28th 2010 at 4:10 PM

I can confirm that. My fluidsynth version is 1.1.1-3mdv2010.1. OS is Mandriva 2010.1


Back to Top
 
Julian
Post: Jul 30th 2010 at 7:03 PM

Ohh i found a bug alocating memory at the native function "Java_org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth_getPropertyOptions" that could be cause of your problem.

I submited a prebuild libtuxguitar-fluidsynth-jni.so file at SVN:
http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/lib/libtuxguitar-fluidsynth-jni.so?revision=811

Could you try replacing it ?


Back to Top
 
Karsten
Post: Jul 31st 2010 at 1:10 AM

Great! Works now. But eats lots of mem when you close the dialog (as much as the size of the soundfont i´d guess ;-)
And selecting alsa while actually using pulseaudio as soundserver stalled my (uniprocessor) system. Selecting oss or pulseaudio worked. KDE´s backend was gstreamer.
Hm, maybe I should have started a new thread for that...


Back to Top
 
Julian
Post: Jul 31st 2010 at 3:11 PM

Well yes, if you open a 500 mg soundfont file, you may need to allocate 500 mg at memory..
Now if your sound server is pulseaudio, why do you try to use alsa or oss ?


Back to Top
 
Karsten
Post: Jul 31st 2010 at 4:32 PM

The thing is: the memory is _added_ to the java process each time I close the fluidsynth dialog. So after using the config dialog a few times (without restarting tuxguitar) my machine starts swapping. Maybe you need to unload the currently used soundfont first.

>Now if your sound server is pulseaudio, why do you try to use alsa or oss ?

Because TG does not autodetect the right one.
Because it should work - according to pulseaudio´s scheme
Simply to help you debug tuxguitar :o)


Back to Top
 
Julian
Post: Aug 2nd 2010 at 1:49 PM

i don't understand something..
when you modify the setup dialog, a soundfont is reloaded only if you had it already selected and did changes ( e.g: changed the audio driver or any audio setting ). it also works as a signleton plugin, you can't load a soundfont without unload any previously loaded.
i think the problem you describe is not related to the soundfont size. what about if you remove the soundfont from the config, and change other things, does the problem continue ?

> Because TG does not autodetect the right one
Well no, tg-fluidsynth doesn't know anything about your OS sound system. it uses fluidsynth's default, but fluidsynth's default seems to be a built time flag instead of check it dinamycally.

> Because it should work - according to pulseaudio´s scheme
It works fine for me using pulseaudio's as audio driver, using a buffer size about 1024 ( because pulse audio isn't low latency )

Using alsa don't works fine for me, as any other application trying to use alsa while pulseaudio is running. sometimes works.. sometimes don't...

Using OSS works fine, if i exect TG with "padsp" command ( but why to use it if i can use the right pulse driver )

And using jack works without problems... ofcourse if you already have jack running, and working with pulseaudio.. since i have pulseaudio running over jack, i have no problem with it.


Back to Top