<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50839</bug_id>
          
          <creation_ts>2024-07-05 11:16:12 +0300</creation_ts>
          <short_desc>При запуске теста  time_test.py  и других тестов pygame проблемы с ALSA: &apos;ALSA lib pcm.c: underrun occurred&apos;</short_desc>
          <delta_ts>2024-07-08 17:34:47 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-pygame</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tatyana Gagina">tatyana</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>248567</commentid>
    <comment_count>0</comment_count>
    <who name="Tatyana Gagina">tatyana</who>
    <bug_when>2024-07-05 11:16:12 +0300</bug_when>
    <thetext>Стенды, обновлённые до Sisyphus:
ALT Workstation K x86-64
ALT Workstation x86-64
ALT Education KDE/XFCE x86-64

Версия: python3-module-pygame-2.5.2-alt1

Стенды:
- виртуальные машины в окружении Proxmox
$ lspci | grep -i audio
00:17.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

- реальный стенд (ноутбук): Lenovo IdeaPad Slim 3
$ lspci | grep -i audio
00:1f.3 Multimedia audio controller: Intel Corporation Raptor Lake-P/U/H cAVS (rev 01)
Процессор: 13th Gen Intel(R) Core(TM) i5-1335Z

Версия: python3-module-pygame-2.5.2-alt1


Шаги:
1. Установить пакет:
# apt-get install -y  python3-module-pygame

2. Запустить тест  time_test.py:
# cd /usr/lib64/python3/site-packages/pygame/tests/ &amp;&amp; python3 ./time_test.py

Результат: ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred

На виртуальных машинах через раз (с Audio Device ich9-intel-hda и без).
То есть вывод может быть таким (без ошибок):
----------------------------------------------------------------------
Ran 10 tests in 16.958s

OK

А может быть и таким (1 из 3-х запуcков):
........ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
..
----------------------------------------------------------------------
Ran 10 tests in 16.958s

OK

На Sisyphus может быть так:
........ALSA lib confmisc.c:855:(parse_card) cannot find card &apos;0&apos;
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM default
..
----------------------------------------------------------------------
Ran 10 tests in 19.021s

OK

Детали: не зависит от того, где запускалось (на виртуальных машинах или реальном стенде), наблюдается при выполнении других тестов pygame.

Ожидаемый результат: стабильное выполнение теста, без ошибок.

Проверялось на p10, ошибка воспроизводится.
Версия: python3-module-pygame-2.0.1-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248635</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-07-08 17:34:47 +0300</bug_when>
    <thetext>python3-module-pygame-2.6.0-alt1 -&gt; sisyphus:

 Fri Jul 05 2024 Grigory Ustinov &lt;grenka@altlinux&gt; 2.6.0-alt1
 - Automatically updated to 2.6.0.
 - Built with check (Closes: #50821, #50833, #50834, #50836, #50838, #50839).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>