Bug 32696 - Audio crashes with pyglet
Summary: Audio crashes with pyglet
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-01-07 12:35 CET by papoteur
Modified: 2024-01-08 20:02 CET (History)
3 users (show)

See Also:
Source RPM: python-pyglet-1.5.16-3.mga9
CVE:
Status comment:


Attachments
Display a button to stop the program when plyaing a sound (1.30 KB, text/plain)
2024-01-07 12:38 CET, papoteur
Details

Description papoteur 2024-01-07 12:35:47 CET
Description of problem:
When trying to play a sound, crash occurs:
python test2_pyglet.py 
Traceback (most recent call last):                                                                                                                                                           
  File "/usr/lib/python3.10/site-packages/pyglet/__init__.py", line 342, in __getattr__                                                                                                      
    return getattr(self._module, name)                                                                                                                                                       
AttributeError: 'NoneType' object has no attribute 'load'                                                                                                                                    
                                                                                                                                                                                             
During handling of the above exception, another exception occurred:                                                                                                                          
                                                                                                                                                                                             
Traceback (most recent call last):                                                                                                                                                           
  File "/home/yves/Documents/test2_pyglet.py", line 46, in <module>                                                                                                                          
    x = main()                                                                                                                                                                               
  File "/home/yves/Documents/test2_pyglet.py", line 10, in __init__                                                                                                                          
    self.sound = pyglet.media.load('/usr/share/sounds/purple/login.wav')                                                                                                                     
  File "/usr/lib/python3.10/site-packages/pyglet/__init__.py", line 348, in __getattr__                                                                                                      
    __import__(import_name)                                                                                                                                                                  
  File "/usr/lib/python3.10/site-packages/pyglet/media/__init__.py", line 143, in <module>                                                                                                   
    add_default_media_codecs()                                                                                                                                                               
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/__init__.py", line 102, in add_default_media_codecs                                                                            
    if have_ffmpeg():                                                                                                                                                                        
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/__init__.py", line 118, in have_ffmpeg                                                                                         
    from . import ffmpeg_lib                                                                                                                                                                 
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/__init__.py", line 36, in <module>                                                                                  
    from .libavcodec import *                                                                                                                                                                
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/libavcodec.py", line 46, in <module>                                                                                
    from . import libavutil                                                                                                                                                                  
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/libavutil.py", line 206, in <module>                                                                                
    avutil.av_frame_get_best_effort_timestamp.restype = c_int64                                                                                                                              
  File "/usr/lib64/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libavutil.so.57: undefined symbol: av_frame_get_best_effort_timestamp
Exception ignored in atexit callback: <function _delete_audio_driver at 0x7fb9014b9e10>
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyglet/media/drivers/__init__.py", line 103, in _delete_audio_driver
    from .. import Source
  File "/usr/lib/python3.10/site-packages/pyglet/media/__init__.py", line 143, in <module>
    add_default_media_codecs()
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/__init__.py", line 102, in add_default_media_codecs
    if have_ffmpeg():
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/__init__.py", line 118, in have_ffmpeg
    from . import ffmpeg_lib
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/__init__.py", line 36, in <module>
    from .libavcodec import *
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/libavcodec.py", line 46, in <module>
    from . import libavutil
  File "/usr/lib/python3.10/site-packages/pyglet/media/codecs/ffmpeg_lib/libavutil.py", line 206, in <module>
    avutil.av_frame_get_best_effort_timestamp.restype = c_int64
  File "/usr/lib64/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libavutil.so.57: undefined symbol: av_frame_get_best_effort_timestamp

Version-Release number of selected component (if applicable):
1.5.16

How reproducible:
I will join the script.
Comment 1 papoteur 2024-01-07 12:38:00 CET
Created attachment 14256 [details]
Display a button to stop the program when plyaing a sound

Path for a button and a sound are hardcoded. Change them if needed
Comment 2 papoteur 2024-01-07 12:55:04 CET
Submitting an update
Source:
python-pyglet-1.5.27-1.mga9
RPM:
python3-pyglet-1.5.27-1.mga9

Assignee: yvesbrungard => qa-bugs

Comment 3 katnatek 2024-01-07 19:22:34 CET
Tested in Real Hardware Mageia 9 x86_64

Install current version of python3-pyglet
Use test script and confirm the crash
Update to testing package without issues
Run again the test script and the sound is played

Whiteboard: (none) => MGA9-64-OK

Comment 4 Thomas Andrews 2024-01-07 21:21:46 CET
Validating.

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

katnatek 2024-01-08 02:17:52 CET

CC: (none) => marja11

Comment 5 katnatek 2024-01-08 02:18:50 CET
Marja, please upload advisory for this bug
Comment 6 Marja Van Waes 2024-01-08 15:39:16 CET
(In reply to katnatek from comment #5)
> Marja, please upload advisory for this bug

Done

Keywords: (none) => advisory

Comment 7 Mageia Robot 2024-01-08 20:02:50 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0006.html

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


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