#1013756 solfege: crash with pyalsa

#1013756#5
Date:
2022-06-25 13:09:13 UTC
From:
To:
Dear Maintainer,

when I tried solfege for the first time it used OSS MIDI through the
sound card. There was a message in the config window that ALSA couldn't
be used because pyalsa was missing. I installed python3-pyalsa from
testing, and the next time I opened the config dialog in solfege it
crashed. I expected it to offer ALSA MIDI instead.

Cheers
Michael


Traceback (most recent call last):
  File "/usr/share/solfege/solfege/mainwin.py", line 672, in open_preferences_window
    self.g_config_window = ConfigWindow()
  File "/usr/share/solfege/solfege/configwindow.py", line 111, in __init__
    self.create_sound_config()
  File "/usr/share/solfege/solfege/configwindow.py", line 467, in create_sound_config
    self.create_linux_sound_page()
  File "/usr/share/solfege/solfege/configwindow.py", line 622, in create_linux_sound_page
    connections = solfege.soundcard.alsa_sequencer.get_connection_list()
  File "/usr/share/solfege/solfege/soundcard/alsa_sequencer.py", line 123, in get_connection_list
    sequencer = alsaseq.Sequencer(name='default',
OverflowError: signed integer is greater than maximum

#1013756#10
Date:
2022-06-30 19:20:33 UTC
From:
To:
reopen 935535
reopen 938965
merge 935535 1013756
block 1013756 by 938965
thanks

Hello Michael!

Thanks for reporting this issue. This is a problem in python-alsa
itself that have been reported in [1], fixed upstream [2], but the
Debian package is still waiting for an update.

I reopen associated bugs and try to update python-alsa.

Best Regards,
François


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=938965
[2]
https://github.com/alsa-project/alsa-python/commit/a64a6cc703d08db5c223a16bf812a569534ba464

#1013756#17
Date:
2022-06-30 19:20:33 UTC
From:
To:
reopen 935535
reopen 938965
merge 935535 1013756
block 1013756 by 938965
thanks

Hello Michael!

Thanks for reporting this issue. This is a problem in python-alsa
itself that have been reported in [1], fixed upstream [2], but the
Debian package is still waiting for an update.

I reopen associated bugs and try to update python-alsa.

Best Regards,
François


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=938965
[2]
https://github.com/alsa-project/alsa-python/commit/a64a6cc703d08db5c223a16bf812a569534ba464

#1013756#22
Date:
2023-01-18 00:13:52 UTC
From:
To:
Hi, I had the same bug, so I try to follow the instructions given in

https://github.com/alsa-project/alsa-python/commit/a64a6cc703d08db5c223a16bf812a569534ba464

I could "hear" some improvements (some sound), but now I am face to

'''Traceback (most recent call last):
File "/usr/share/solfege/solfege/exercises/idbyname.py", line 296, in new_question
self.do_at_question_start_show_play()
File "/usr/share/solfege/solfege/abstract.py", line 1077, in do_at_question_start_show_play
self.m_t.m_P.play_question()
File "/usr/share/solfege/solfege/lessonfile.py", line 1413, in play_question
question[varname].play(self, question)
File "/usr/share/solfege/solfege/lessonfile.py", line 573, in play
self.__play(lessonfile_ref, question,
File "/usr/share/solfege/solfege/lessonfile.py", line 601, in __play
soundcard.synth.play_track(t1, t2, t3)
File "/usr/share/solfege/solfege/soundcard/alsa_sequencer.py", line 51, in play_track
self.play_midieventstream(MidiEventStream(*tracks))
File "/usr/share/solfege/solfege/soundcard/alsa_sequencer.py", line 94, in play_midieventstream
event.time = tTypeError: integer or float expected...
Thanks