Bug 1760 - tuxguitar doesn't lauch on i586 (works in x86_64)
Summary: tuxguitar doesn't lauch on i586 (works in x86_64)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
: 3479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-12 13:27 CEST by Manuel Hiebel
Modified: 2012-06-19 22:01 CEST (History)
11 users (show)

See Also:
Source RPM: tuxguitar-1.2-6.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Manuel Hiebel 2011-06-12 13:27:59 CEST
Description of problem:
Tuxguitar doesn't launch on i586 with java-jdk or java-sun (tested in a vm) and recovered by several user

$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10) (mageia-14.b22.5.mga1-i386)
OpenJDK Server VM (build 20.0-b10, mixed mode)

$ tuxguitar
/usr/bin/tuxguitar: ligne14: /bin/rpm: Permission non accordée
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000000, pid=10943, tid=3062569840
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Server VM (20.0-b10 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10
# Distribution: Mageia 1, package mageia-14.b22.5.mga1-i386
# Problematic frame:
# C 0x00000000

â splashscreen, then nothing




Version-Release number of selected component (if applicable):
tuxguitar-1.2-6.mga1.i586.rpm

How reproducible:
every times with jdk or sun jvm on i586

Steps to Reproduce:
1.install tuxguitar on i586
2.launch tuxguitar
3.see the bug

I have found a related bug by fedora: https://bugzilla.redhat.com/show_bug.cgi?id=661562

Thanks, and sorry for my bad English :/
Comment 2 Jani Välimaa 2011-06-12 17:51:33 CEST
I've seen this one before on Mdv..

Crash is caused by Tuxguitar's ALSA-plugin and you can temporarily work-around
it by disabling it.

Add the following line to file ~/.tuxguitar-1.2/plugin.properties:
org.herac.tuxguitar.player.impl.midiport.alsa.MidiOutputPortProviderPlugin.enabled=false

CC: (none) => jani.valimaa

Comment 3 Manuel Hiebel 2011-06-12 18:33:07 CEST
Yes it's works with the line in .tuxguitar-1.2/plugin.properties (tested in my VM)
Thanks, for now :)
Comment 4 Kenneth Marcy 2011-07-08 05:17:02 CEST
This is the text of the ABRT activity caused by trying to launch tuxguitar in Mageia 1:  Package:    	java-1.6.0-openjdk-0:1.6.0.0-14.b22.5.mga1
Latest Crash:	Thu 07 Jul 2011 08:03:05 PM 
Command:    	/usr/bin/java -Xmx512m -cp ::/usr/share/tuxguitar/tuxguitar.jar:/usr/lib/eclipse/swt.jar:/usr/share/java/itext.jar:/usr/share/tuxguitar/ -Dtuxguitar.share.path=/usr/share/tuxguitar/ -Djava.library.path=/usr/lib/tuxguitar/:/lib:/usr/lib:/usr/lib/jni:/usr/local/lib:/usr/lib/xulrunner-2.0.1 org.herac.tuxguitar.gui.TGMain '' '' /usr/share/tuxguitar/tuxguitar.tg
Reason:     	Process /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java was killed by signal 6 (SIGABRT)
Comment:    	None
Bug Reports:	Just this one to show how it presents itself on my machine.

CC: (none) => kmmos1

Comment 5 Ernst Pini 2011-07-21 19:15:30 CEST
I have started on my laptop with this file from the sourceforge.net web-site:
tuxguitar-1.2-linux-x86.tar.gz
It works with no problems

CC: (none) => eus.pini

Comment 6 Yann COLLETTE 2011-07-24 16:51:58 CEST
I tested on my laptop and tuxguitar still doesn't start (I added the recommended line into plugin.properties).
I am still stuck in the splashscreen.
I tested this with java sun and java openjdk, with or without jack started.

YC

CC: (none) => ycollette.nospam

Comment 7 Ernst Pini 2011-07-27 09:56:13 CEST
with which program you has started/tested?

Ciao
Comment 8 Yann COLLETTE 2011-07-27 11:36:58 CEST
I tested with the mageia rpm package via command line.

I also installed a binary package from the tuxguitar website and this binary package worked fine. The only problem I've got is that I don't have the fluid synth plugin in tuxguitar.

I will test to start tuxguitar after removing openjdk and installing sun jdk instead.
I will also test to start tuxguitar after disabling pulseaudio.

YC
Comment 9 Ernst Pini 2011-07-27 11:52:33 CEST
Did you try with my alternative?
sourceforge.net web-site:
tuxguitar-1.2-linux-x86.tar.gz

Ciao
Comment 10 Yann COLLETTE 2011-07-27 11:55:43 CEST
Yes, it works, but I really need the fluidsynth plugin and the jack plugin.
And a working rpm package is better than a binary package :-)
YC
Comment 11 Yann COLLETTE 2011-07-27 19:54:17 CEST
OK, I will install the binary package.
I removed openjdk, I disabled pulseaudio and tuxguitar still hangs.

YC
Comment 12 José Jorge 2011-08-07 13:32:03 CEST
(In reply to comment #2)
> Add the following line to file ~/.tuxguitar-1.2/plugin.properties:
> org.herac.tuxguitar.player.impl.midiport.alsa.MidiOutputPortProviderPlugin.enabled=false

This workaround has worked for me...

CC: (none) => lists.jjorge

Comment 13 Samuel Verschelde 2011-10-01 02:52:35 CEST
Assigning to maintainer now that our maintainers database has an entry for
this package. Please assign back to bugsquad@mageia.org in case of a mistake
from me.

CC: (none) => stormi
Assignee: bugsquad => lists.jjorge

Comment 14 Manuel Hiebel 2011-11-27 23:17:49 CET
*** Bug 3479 has been marked as a duplicate of this bug. ***

CC: (none) => jkopkiewicz

Comment 15 Oleg Kitain 2012-01-08 14:09:29 CET
Bug confirmed. As I have various things depending on the ALSA plugin, I would rather have it fixed. Not a maintainer though.

CC: (none) => oktain

Comment 16 José Jorge 2012-01-09 10:44:50 CET
I applied a Mandriva patch that seems to fix that on tuxguitar-1.2-6.1.mga1 .
Please test it from updates_testing.

Status: NEW => ASSIGNED

José Jorge 2012-01-09 10:45:02 CET

Assignee: lists.jjorge => qa-bugs

Comment 17 Jani Välimaa 2012-01-09 15:42:52 CET
Actually it's not fixing the problem, it only disables the ALSA plugin by default.

BTW, I made this change to mdv pkg as well as to cauldron pkg. It seems that I made it first to mdv pkg, so I guess we can say the change is from mdv. :)
Comment 18 Jani Välimaa 2012-01-09 15:44:46 CET
(In reply to comment #17)
> Actually it's not fixing the problem, it only disables the ALSA plugin by
> default.
> 
I mean, the real problem is still there. This is only a workaround.
Comment 19 claire robinson 2012-01-09 16:27:03 CET
x86_64

Reportedly not affected so just checking for regressions.

The following 5 packages are going to be installed:

- bouncycastle-1.45-5.mga1.noarch
- bouncycastle-mail-1.45-3.mga1.noarch
- bouncycastle-tsp-1.45-3.mga1.noarch
- itext-2.1.7-4.mga1.noarch
- tuxguitar-1.2-6.mga1.x86_64

Downloaded Nirvana - Smells Like Teen Spirit TuxGuitar tablature

from http://community.tuxguitar.com.ar/file/4633/Nirvana+-+Smells+Like+Teen+Spirit/

Opened in tuxguitar and played it through. It doesn't sound like I remember it :D

Used Save As to create a save and loaded the save back in. Created a new bar or two and save and reloaded. Ok.

Updated to update candidate and followed same procedure. Not sure how to use it beyond the basics.

Testing complete x86_64
Comment 20 claire robinson 2012-01-11 17:08:53 CET
i586

Before
------
The following 4 packages are going to be installed:

- eclipse-swt-3.6.2-12.mga1.i586
- libxulrunner9.0.1-9.0.1-0.2.mga1.i586
- tuxguitar-1.2-6.mga1.i586
- xulrunner-9.0.1-0.2.mga1.i586

$ tuxguitar
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x8ea228de, pid=31012, tid=3065322352
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Client VM (20.0-b11 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10.4
# Distribution: Mageia 1, package fedora-24.b22.6.1.mga1-i386
# Problematic frame:
# C  0x8ea228de
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid31012.log
#
# If you would like to submit a bug report, please include
# instructions 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.
#
/usr/bin/tuxguitar: line 38: 31012 Aborted                 ${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Dtuxguitar.share.path="/usr/share/tuxguitar/" -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2" "$arg"


After
-----

The following package is going to be installed:

- tuxguitar-1.2-6.1.mga1.i586

Downloaded the nirvana templature as before but when I click to play it I get a message that the Jack server is not running and related errors in the console.

$ tuxguitar
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
org.herac.tuxguitar.player.base.MidiPlayerException: Jack server not running?
        at org.herac.tuxguitar.player.base.MidiPlayer.play(MidiPlayer.java:232)
        at org.herac.tuxguitar.gui.transport.TGTransport.play(TGTransport.java:430)
        at org.herac.tuxguitar.gui.actions.transport.TransportPlayAction.execute(TransportPlayAction.java:26)
        at org.herac.tuxguitar.gui.actions.Action$1.run(Action.java:76)
        at org.herac.tuxguitar.util.TGSynchronizer$TGSynchronizerTask.run(TGSynchronizer.java:58)
        at org.herac.tuxguitar.gui.TuxGuitar$1$2.run(TuxGuitar.java:180)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
        at org.herac.tuxguitar.gui.TuxGuitar.displayGUI(TuxGuitar.java:228)
        at org.herac.tuxguitar.gui.TGMain.main(TGMain.java:6)
Caused by: org.herac.tuxguitar.player.base.MidiPlayerException: Jack server not running?
        at org.herac.tuxguitar.jack.synthesizer.JackOutputPort.check(JackOutputPort.java:44)
        at org.herac.tuxguitar.player.base.MidiPlayer.checkDevices(MidiPlayer.java:288)
        at org.herac.tuxguitar.player.base.MidiPlayer.play(MidiPlayer.java:171)
        ... 11 more
Comment 21 claire robinson 2012-01-11 17:16:07 CET
If I change to Gervill midi port in tools=>settings=>sound it works as it should.

Should Jack be required?
Comment 22 José Jorge 2012-01-11 20:47:20 CET
(In reply to comment #21)
> If I change to Gervill midi port in tools=>settings=>sound it works as it
> should.
> 
> Should Jack be required?

I don't think so : I use it without jack.
Comment 23 claire robinson 2012-01-12 13:33:11 CET
The default behaviour is to use jack which produces the error message. 

We should probably either change the default behaviour to use Gervill which appears to be part of the package or provide a working jack.

gervill would probably be better.


I'm not sure why I never saw the error on x86_64, I'll install it again and see how it is set up.
Comment 24 claire robinson 2012-01-12 13:47:33 CET
On my x86_64 it is already set to use gervill.

Could this be a result of the workaround for i586?
Comment 25 Dave Hodgins 2012-01-16 02:18:54 CET
I wonder if the default only affects new installs.
If you delete the ~/.tuxguitar-1.2 directory does it work?

I installed it from Core updates Testing, without having
installed the previous version, and it's working fine on my
i586 system.

CC: (none) => davidwhodgins

Comment 26 Manuel Hiebel 2012-01-16 23:31:41 CET
Hello, tuxguitar works without issue here (x86_64), with Gervil, Timidity
Comment 27 claire robinson 2012-01-18 18:06:44 CET
I removed tuxguitar and removed ~/.tuxguitar-1.2

I installed the Release version and tried to start it, which it wouldn't. I then updated to the Testing version and started.

When I try to play the Nirvana templature I get a message about Jack not running.
Comment 28 José Jorge 2012-01-18 20:25:59 CET
(In reply to comment #27)
> When I try to play the Nirvana templature I get a message about Jack not
> running.

I can reproduce this problem, solved going to the preferences and selecting Gervill. While I could search for something better, I suggest we push this update, as it allows to use tuxguitar without editing a text file.

On x86_64, Gervill output is the default...
Comment 29 claire robinson 2012-01-19 14:10:15 CET
Update validated.

Bug 4195 created regarding the jack server and assigned to you Jose


Advisory
---------------------

Users with i586 installations were unable to start Tuxguitar. This update provides a fix.

These users may currently need to manually select Gervill midi sequencer in the preferences if they receive errors about the Jack server not running.

Tools => Settings => Sound => Select Gervill as Midi Sequencer

Please see: https://bugs.mageia.org/show_bug.cgi?id=4195

----------------------

SRPM: tuxguitar-1.2-6.1.mga1.src.rpm


Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 30 Thomas Backlund 2012-01-21 18:35:58 CET
update pushed

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED

Comment 31 Yann Cantin 2012-05-10 22:37:57 CEST
Always crashing here with latest update.

I've tracked down the SIGSEGV to a call to fluid_settings_getstr in the fluidsynth jni, but don't see any problem. Given that the binary from the official site (same code) works flawlessly, i've focus on the compilation : bingo.

Adding "-O0" to jni's make options in tuxguitar.spec solve all problem here (mga1 i586 openjdk) :

##
for jni in $JNIS; do
   %{make} -C TuxGuitar-$jni/jni CFLAGS="%{optflags} \
              -I%{_jvmdir}/java-openjdk/include \
              -I%{_jvmdir}/java-openjdk/include/linux \
              -fPIC -O0"
                    ^^^
##


Tested with tuxguitar-1.2-6.1.mga1.src.rpm and tuxguitar-1.2-7.mga2.src.rpm : all jnis works (alsa jack oss fluidsynth), no crash on startup or plugin config.
However, the startup messages (Bug 4195) is still here.

-O1 don't solve the problem.

I've tried -O0 + all standard -fblah triggered by -O1 set, it also works (but add a huge line in the spec), so the problem seem to be related to some optimization mechanics far from my hands...

The jnis are mostly glue code, -O0 don't hurt performance badly (nothing noticeable here), so i think this could be set by default in the spec.

CC: (none) => yann.cantin

Comment 32 José Jorge 2012-05-14 20:52:38 CEST
(In reply to comment #31)
> Always crashing here with latest update.
>...
> The jnis are mostly glue code, -O0 don't hurt performance badly (nothing
> noticeable here), so i think this could be set by default in the spec.

Thank you for the report. So I will submit tuxguitar-1.2-6.2.mga1 to updates_testing ASAP.

Advisory
---------------------

Some users experience a crash while starting Tuxguitar. This update provides a fix.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 33 Manuel Hiebel 2012-05-14 20:54:12 CEST
José, a new bug report would be easier for the QA.

Keywords: validated_update => (none)
CC: sysadmin-bugs => (none)

Comment 34 José Jorge 2012-05-16 14:59:58 CEST
Well, as previous fix worked for everybody, this fix is only targetted at Yann Cantin. Yann, please ensure tuxguitar-1.2-6.2.mga1 in updates_testing works for you. QA, please wait for Yann's answer.
Comment 35 Oleg Kitain 2012-05-16 20:14:00 CEST
It didn't work for me, so it is probably a more widespread issue.
Comment 36 José Jorge 2012-05-16 21:00:32 CEST
(In reply to comment #35)
> It didn't work for me, so it is probably a more widespread issue.

Ok, but did the updates_testing version work for you?
Comment 37 Yann Cantin 2012-05-17 01:28:28 CEST
Configurations tested :

- fluidsynth plugin (using pulseaudio driver)

- fluidsynth plugin (using alsa driver)

- jack plugin + fluidsynth (server process)

All works flawlessly, no freeze/crash at startup or plugin's config dialog.
Comment 38 Dave Hodgins 2012-05-17 01:56:00 CEST
Testing complete on i586 for the srpm
tuxguitar-1.2-7.1.mga1.src.rpm

I can't reproduce the crash, both the old and new versions
are working fine here.
Comment 39 Yann Cantin 2012-05-17 04:16:09 CEST
Did you try all the plugins ?
The previous fix disable the problematic ones.
Comment 40 Yann Cantin 2012-05-17 04:18:35 CEST
Forgot : try starting with an empty conf ( no ~/.tuxguitar-1.2/ ).
Comment 41 José Jorge 2012-05-17 09:40:58 CEST
(In reply to comment #40)
> Forgot : try starting with an empty conf ( no ~/.tuxguitar-1.2/ ).

Thanks Yann. So we only need someone with x86_64 install to test no regression appears.
Comment 42 Oleg Kitain 2012-05-17 19:07:02 CEST
Works fine in i586 on 1.2-6.2, as it didn't work before. Alsa and Fluidsynth work fine.
Comment 43 Manuel Hiebel 2012-06-01 18:06:19 CEST
ok on x86_64


Suggested Advisory:
-------------
Some users experience a crash while starting Tuxguitar. This update provides a
fix.

https://bugs.mageia.org/show_bug.cgi?id=1760
-------------

SRPM: tuxguitar-1.2-6.2.mga1.src.rpm

Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Hardware: i586 => All

Jani Välimaa 2012-06-01 21:20:30 CEST

CC: jani.valimaa => (none)

Comment 44 Thomas Backlund 2012-06-19 22:01:47 CEST
Update pused:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0021-1

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.