solfege crashes at startup

Bug #206093 reported by Cousin Marc
270
Affects Status Importance Assigned to Milestone
solfege (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: solfege

At startup, solfege crashes. Here are the console messages :

solfege
Checking for gtkhtml2... No module named gtkhtml2
warning: invalid directory in path: /home/marc/lessonfiles
Solfege will use fakesynth
/usr/share/solfege/src/mainwin.py:436: GtkWarning: Refusing to add non-unique action '_Rhythm' to action group 'NotExit'
  self.m_action_groups['NotExit'].add_actions(actions)

Traceback (most recent call last):
  File "/usr/bin/solfege", line 77, in <module>
    src.mainwin.start_app(os.path.join(prefix, "share", "solfege"))
  File "/usr/share/solfege/src/mainwin.py", line 802, in start_app
    w.post_constructor()
  File "/usr/share/solfege/src/mainwin.py", line 640, in post_constructor
    self.m_app.display_sound_init_error_message(self.m_app.m_sound_init_exception)
  File "/usr/share/solfege/src/app.py", line 158, in display_sound_init_error_message
    self.m_ui.display_exception_message(e)
  File "/usr/share/solfege/src/mainwin.py", line 497, in display_exception_message
    sourcefile, lineno, func, code = traceback.extract_tb(sys.exc_info()[2])[0]

It seems to be this bug :

http://www.solfege.org/SITS/00167

Solfege version : 3.9.3-4 (from hardy beta)

apt-cache policy solfege
solfege:
  Installed: 3.9.3-4
  Candidate: 3.9.3-4
  Version table:
 *** 3.9.3-4 0
        500 ftp://ftp.free.fr hardy/universe Packages
        100 /var/lib/dpkg/status

TEST CASE

PROCEDURE:
  Install solfege binary package
  Run solfege

RESULT ON PASS:
  If no MIDI device is available, a message window should appear stating that.

RESULT ON FAIL:
  If no MIDI device available, program crashes as above.

END TEST CASE

Revision history for this message
Basil Shubin (bashux) wrote :

I can confirm this bug in Ubuntu 8.04:

$ apt-cache show solfege
Package: solfege
Priority: optional
Section: universe/gnome
Installed-Size: 8536
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Tom Cato Amundsen <email address hidden>
Architecture: i386
Version: 3.9.3-4
Depends: python-gnome2 (>= 1.99.11), python-gnome2-extras (>= 2.10.0), python-gtk2 (>= 1.99.11), timidity, freepats, libc6 (>= 2.6.1-1), python (>= 2.5), python-support (>= 0.7.1), python (<< 2.6)
Suggests: doc-base
Filename: pool/universe/s/solfege/solfege_3.9.3-4_i386.deb
Size: 2168880

Revision history for this message
n0mer (n0mer) wrote :

confirm, too
> dpkg -l | grep solfege
ii solfege 3.9.3-4 Ear training program for GNOME2

Revision history for this message
Daniel BERMON (daniel-bermon) wrote :

I confirm too this crash on 8.04 (UBUNTUSTUDIO).
The crash occured first time after upgrading from ubuntu 7.10 to 8.04 (beta).
Solfege crashes also on a fresh 8.04 install.
Manually creating the missing folder "lessonfiles" cures the warning but Solfege crashes anyway.

daniel@daniel-desktop:~$ solfege
Checking for gtkhtml2... ok
warning: invalid directory in path: /home/daniel/lessonfiles
Solfege will use fakesynth
/usr/share/solfege/src/mainwin.py:436: GtkWarning: Refusing to add non-unique action '_Rhythm' to action group 'NotExit'
  self.m_action_groups['NotExit'].add_actions(actions)

Traceback (most recent call last):
  File "/usr/bin/solfege", line 77, in <module>
    src.mainwin.start_app(os.path.join(prefix, "share", "solfege"))
  File "/usr/share/solfege/src/mainwin.py", line 802, in start_app
    w.post_constructor()
  File "/usr/share/solfege/src/mainwin.py", line 640, in post_constructor
    self.m_app.display_sound_init_error_message(self.m_app.m_sound_init_exception)
  File "/usr/share/solfege/src/app.py", line 158, in display_sound_init_error_message
    self.m_ui.display_exception_message(e)
  File "/usr/share/solfege/src/mainwin.py", line 497, in display_exception_message
    sourcefile, lineno, func, code = traceback.extract_tb(sys.exc_info()[2])[0]
IndexError: list index out of range
daniel@daniel-desktop:~$

Revision history for this message
Daniel BERMON (daniel-bermon) wrote : Re: solfege crashes at startup : my solution

I was able to run SOLFEGE with a little trick :

1) from the console, run solfege --no-sound :
    solfege starts (of course without sound)

2) inside solfege, do :
    "file" "preferences" "sound setup"

3) choose a midi setup that returns no error.
the first choice : "no sound" is the easiest choice !
On my system, i had to choose "use external midiplayer"

5) than save the changes, and exit.

6)Run solfege again from a console, from a desktop shortcut, or from a menu.

7) Et voila ! No crash, sound activated, enjoy the music !

I hope this helped!

Daniel

Revision history for this message
n0mer (n0mer) wrote :

confirm, this "--no-sound" thick worked for me too
thanks Daniel!

Revision history for this message
Owen Tuz (owentuz) wrote :

I can also confirm this works, thanks!

Revision history for this message
Angelo Corazzato (angelocorazzato) wrote :

Works for me too - Ubuntu 8.04 Italian Version, if that matters :)
Thank you a lot.

Revision history for this message
domis (tom-sepp) wrote :

Works for me too - thanks!

Changed in solfege:
status: New → Confirmed
Revision history for this message
yza (yza33) wrote :

works fine for me too (in french) , thanks Daniel !

Revision history for this message
Franco Califano (califano1938) wrote :

It works for me too. Thank you!

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

This bug has already been reported upstream: http://code.google.com/p/solfege/issues/detail?id=78

Revision history for this message
Tom Cato Amundsen (tca) wrote :

Ubuntu has a too old version of solfege. This is fixed in 3.10.1. But the workaround mentioned above using --no-sound works fine.

Revision history for this message
shrek_master (tran-franck) wrote :

thanks a lot

it works fine

Revision history for this message
Rafael F. (rfcompte) wrote :

That trick fixed it, thanks ! Any chance that the last version 3.10.4 could be backported to hardy?

Revision history for this message
Rafael F. (rfcompte) wrote :

I have been using in hardy the newer version of solfege from intrepid, namely solfege_3.10.3-1_i386.deb. I haven't run into any issues. It installs and runs just fine. This bug is fixed in that version and I opened a bug report in hardy-backports. If you happen to be in the mood for testing it you could drop by bug #244135 and tell us about it ;-)

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Fixed in Intrepid.

Changed in solfege:
importance: Undecided → Medium
status: Confirmed → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

This needs a fix for Hardy too, ACK from motu-sru.

Changed in solfege:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Version 3.9.3-4ubuntu0.1 uploaded to hardy-proposed.

description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in solfege:
status: Confirmed → Fix Committed
Revision history for this message
ShadowMax76 (shadowmax76) wrote :

Verification done:

- 3.9.3-4 (hardy): the program crash on startup;
- 3.9.3-4ubuntu0.1 (hardy-proposed): the program start successfully.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I can confirm version in hardy-proposed fixes this issue.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in solfege:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.