Skip to content

Pyglet 2.1.10 breaks ffmpeg support #1385

@larsoner

Description

@larsoner

git bisect says the failure is due to #1365. See for example https://github.com/LABSN/expyfun/actions/runs/19048595053/job/54402923742?pr=541, but locally:

$ pytest expyfun/visual/tests/test_visuals.py -k video
=============================================================================== test session starts ================================================================================
platform linux -- Python 3.13.7, pytest-8.3.5, pluggy-1.6.0
PySide6 6.10.0 -- Qt runtime 6.10.0 -- Qt compiled 6.10.0
rootdir: /home/larsoner/python/expyfun

...

expyfun/visual/tests/test_visuals.py free(): invalid next size (normal)
Fatal Python error: Aborted

...

Current thread 0x000075cd15384200 (most recent call first):
  File "/home/larsoner/python/pyglet/pyglet/clock.py", line 217 in call_scheduled_functions
  File "/home/larsoner/python/pyglet/pyglet/clock.py", line 270 in tick
  File "/home/larsoner/python/pyglet/pyglet/clock.py", line 528 in tick
  File "/home/larsoner/python/expyfun/expyfun/_experiment_controller.py", line 1057 in _dispatch_events
  File "/home/larsoner/python/expyfun/expyfun/_utils.py", line 708 in _wait_secs
  File "/home/larsoner/python/expyfun/expyfun/_experiment_controller.py", line 2194 in wait_secs
  File "/home/larsoner/python/expyfun/expyfun/visual/tests/test_visuals.py", line 118 in test_video

Not minimal at all, but should be able to replicate by git clone git@github.com:/LABSN/expyfun.git and pip install -e . or similar then running the command above.

This is on Ubuntu 25.10 with:

$ ffmpeg
ffmpeg version 7.1.1-1ubuntu4 Copyright (c) 2000-2025 the FFmpeg developers
  built with gcc 15 (Ubuntu 15.2.0-2ubuntu2)

and pyglet-ffmpeg 0.1.4.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions