Package: src:pyglet
Version: 2.0.17+ds-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202605/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pyglet, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" 
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pyglet  
* Building wheel...
Successfully built pyglet-2.0.17-py3-none-any.whl

[... snipped ...]

    def test_issue471(self):
        doc = pyglet.text.document.FormattedDocument()
        layout = pyglet.text.layout.IncrementalTextLayout(doc, 100, 100)
>       doc.insert_text(0, "hello", {'bold': True})

tests/unit/test_text.py:308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/document.py:377: in insert_text
    self.dispatch_event("on_insert_text", start, text)
pyglet/event.py:360: in dispatch_event
    if handler(*args):
       ^^^^^^^^^^^^^^
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 10, 12, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
______________________ TestIssues.test_issue471_comment2 _______________________

self = <tests.unit.test_text.TestIssues testMethod=test_issue471_comment2>

    def test_issue471_comment2(self):
        doc2 = pyglet.text.decode_attributed('{bold True}a')
>       layout = pyglet.text.layout.IncrementalTextLayout(doc2, 100, 10)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/unit/test_text.py:313: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/layout/incremental.py:132: in __init__
    super().__init__(document, width, height, x, y, z, anchor_x, anchor_y, 
rotation, multiline, dpi, batch, group,
pyglet/text/layout/base.py:956: in __init__
    self._init_document()
pyglet/text/layout/incremental.py:145: in _init_document
    self.on_insert_text(0, self._document.text)
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 10, 9, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
_______ test_incrementallayout_get_position_on_line_before_start_of_text _______

    def test_incrementallayout_get_position_on_line_before_start_of_text():
        single_line_text = "This is a single line of text."
        document = pyglet.text.document.UnformattedDocument(single_line_text)
        font = document.get_font()
>       layout = pyglet.text.layout.IncrementalTextLayout(document,
                                                                      height = 
font.ascent - font.descent,
                                                                      width = 
200,
                                                                      
multiline=False)

tests/unit/text/test_layout.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/layout/incremental.py:132: in __init__
    super().__init__(document, width, height, x, y, z, anchor_x, anchor_y, 
rotation, multiline, dpi, batch, group,
pyglet/text/layout/base.py:956: in __init__
    self._init_document()
pyglet/text/layout/incremental.py:145: in _init_document
    self.on_insert_text(0, self._document.text)
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 11, 12, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
=========================== short test summary info ============================
FAILED tests/integration/text/test_label_creation.py::test_label_creation[Label]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document0]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document1]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document2]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-IncrementalTextLayout]
FAILED tests/unit/test_text.py::TestIssues::test_issue241_comment4b - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue241_comment5 - pyglet.g...
FAILED tests/unit/test_text.py::TestIssues::test_issue429_comment4a - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue429_comment4b - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue471 - pyglet.gl.lib.GLE...
FAILED tests/unit/test_text.py::TestIssues::test_issue471_comment2 - pyglet.g...
FAILED 
tests/unit/text/test_layout.py::test_incrementallayout_get_position_on_line_before_start_of_text
==== 23 failed, 586 passed, 106 skipped, 95 deselected, 2 xfailed in 25.46s ====
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pyglet/build; xvfb-run --auto-servernum 
--server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" 
python{version} -m pytest -v -k "not interactive and not PulseAudio and not 
test_pulse and not test_player_play and not test_player_play_multiple and not 
test_player_silent_audio_driver and not test_freetype_face and not 
test_fontconfig and not test_linux_fontconfig and not test_driver and not 
test_openal and not test_elapsed_time_between_tick and not test_compute_fps" 
--ignore=tests/interactive
dh_auto_test: error: pybuild --test -i python{version} -p "3.14 3.13" 
--parallel=2 returned exit code 13
make: *** [debian/rules:39: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to