-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Pyglet crashes when starting a window with fullscreen=True. This issue shows up in v2.1.3 but not in v2.1.2.
Stack trace:
Traceback (most recent call last):
File "/home/yali/Projects/emory-cart/brand-modules/brand-discrete-mvmt/nodes/gesture_hero_2_display/test.py", line 31, in <module>
window = pyglet.window.Window(
^^^^^^^^^^^^^^^^^^^^^
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/window/xlib/init.py", line 167, in init
super().init(*args, kwargs)
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/window/init.py", line 550, in init**
width, height = self._set_fullscreen_mode(mode, width, height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/window/init.py", line 968, in setfullscreen_mode
self.screen.set_mode(mode)
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/display/xlib.py", line 254, in set_mode
xlib_vidmoderestore.set_initial_mode(self._initial_mode)
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/display/xlib_vidmoderestore.py", line 170, in set_initial_mode
os.write(_mode_write_pipe, packet.encode())
^^^^^^^^^^^^^^^
File "/home/yali/lib/miniconda3/envs/dbci/lib/python3.12/site-packages/pyglet/display/xlib_vidmoderestore.py", line 53, in encode
return struct.pack(self.format, self.display, self.screen, self.width, self.height, self.rate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: required argument is not an integer
System Information:
Output of python -m pyglet.info:
Platform
------------------------------------------------------------------------------
platform: Linux-6.5.0-41-generic-x86_64-with-glibc2.35
release: 6.5.0-41-generic
machine: x86_64
Python
------------------------------------------------------------------------------
implementation: CPython
sys.version: 3.12.9 | packaged by conda-forge | (main, Feb 14 2025, 08:00:06) [GCC 13.3.0]
sys.maxint: 9223372036854775807
os.getcwd(): /home/yali/Projects/
pyglet
------------------------------------------------------------------------------
pyglet.version: 2.1.3
pyglet.compat_platform: linux
pyglet.__file__: /home/yali/lib/miniconda3/envs/pyglet/lib/python3.12/site-packages/pyglet/__init__.py
pyglet.options['audio'] = ('xaudio2', 'directsound', 'openal', 'pulse', 'silent')
pyglet.options['debug_font'] = False
pyglet.options['debug_gl'] = True
pyglet.options['debug_gl_trace'] = False
pyglet.options['debug_gl_trace_args'] = False
pyglet.options['debug_gl_shaders'] = False
pyglet.options['debug_graphics_batch'] = False
pyglet.options['debug_lib'] = False
pyglet.options['debug_media'] = False
pyglet.options['debug_texture'] = False
pyglet.options['debug_trace'] = False
pyglet.options['debug_trace_args'] = False
pyglet.options['debug_trace_depth'] = 1
pyglet.options['debug_trace_flush'] = True
pyglet.options['debug_win32'] = False
pyglet.options['debug_input'] = False
pyglet.options['debug_x11'] = False
pyglet.options['shadow_window'] = True
pyglet.options['vsync'] = None
pyglet.options['xsync'] = True
pyglet.options['xlib_fullscreen_override_redirect'] = False
pyglet.options['search_local_libs'] = True
pyglet.options['win32_gdi_font'] = False
pyglet.options['headless'] = False
pyglet.options['headless_device'] = 0
pyglet.options['win32_disable_shaping'] = False
pyglet.options['dw_legacy_naming'] = False
pyglet.options['win32_disable_xinput'] = False
pyglet.options['com_mta'] = False
pyglet.options['osx_alt_loop'] = False
pyglet.options['dpi_scaling'] = 'real'
pyglet.options['shader_bind_management'] = True
pyglet.window
------------------------------------------------------------------------------
display: <pyglet.display.xlib.XlibDisplay object at 0x7424b08bf9e0>
screens[0]: XlibScreen(display=<pyglet.display.xlib.XlibDisplay object at 0x7424b08bf9e0>, x=0, y=0, width=1920, height=1080, xinerama=False)
config['double_buffer'] = 1
config['stereo'] = 0
config['buffer_size'] = 24
config['aux_buffers'] = 4
config['sample_buffers'] = 0
config['samples'] = 0
config['red_size'] = 8
config['green_size'] = 8
config['blue_size'] = 8
config['alpha_size'] = 0
config['depth_size'] = 24
config['stencil_size'] = 0
config['accum_red_size'] = 16
config['accum_green_size'] = 16
config['accum_blue_size'] = 16
config['accum_alpha_size'] = 16
config['major_version'] = 3
config['minor_version'] = 3
config['forward_compatible'] = None
config['opengl_api'] = 'gl'
config['debug'] = None
context: XlibContext(id=127700929768880, share=XlibContext(id=127700922623200, share=None))
window.context._info
------------------------------------------------------------------------------
gl_info.get_version(): (3, 3)
gl_info.get_vendor(): NVIDIA Corporation
gl_info.get_renderer(): NVIDIA GeForce RTX 3090/PCIe/SSE2
pyglet.gl.glx_info
------------------------------------------------------------------------------
context.is_direct(): True
glx_info.get_server_vendor(): NVIDIA Corporation
glx_info.get_server_version(): 1.4
glx_info.get_server_extensions():
GLX_EXT_visual_info
GLX_EXT_visual_rating
GLX_EXT_import_context
GLX_SGIX_fbconfig
GLX_SGIX_pbuffer
GLX_SGI_video_sync
GLX_SGI_swap_control
GLX_EXT_swap_control
GLX_EXT_swap_control_tear
GLX_EXT_texture_from_pixmap
GLX_EXT_buffer_age
GLX_ARB_create_context
GLX_ARB_create_context_profile
GLX_EXT_create_context_es_profile
GLX_EXT_create_context_es2_profile
GLX_ARB_create_context_no_error
GLX_ARB_create_context_robustness
GLX_NV_delay_before_swap
GLX_EXT_stereo_tree
GLX_EXT_libglvnd
GLX_ARB_context_flush_control
GLX_NV_robustness_video_memory_purge
GLX_NV_multigpu_context
GLX_ARB_multisample
GLX_NV_float_buffer
GLX_ARB_fbconfig_float
GLX_EXT_framebuffer_sRGB
GLX_NV_copy_image
glx_info.get_client_vendor(): NVIDIA Corporation
glx_info.get_client_version(): 1.4
glx_info.get_client_extensions():
GLX_ARB_get_proc_address
GLX_ARB_multisample
GLX_EXT_visual_info
GLX_EXT_visual_rating
GLX_EXT_import_context
GLX_SGI_video_sync
GLX_NV_swap_group
GLX_SGIX_fbconfig
GLX_SGIX_pbuffer
GLX_SGI_swap_control
GLX_EXT_swap_control
GLX_EXT_swap_control_tear
GLX_EXT_buffer_age
GLX_ARB_create_context
GLX_ARB_create_context_profile
GLX_NV_float_buffer
GLX_ARB_fbconfig_float
GLX_EXT_fbconfig_packed_float
GLX_EXT_texture_from_pixmap
GLX_EXT_framebuffer_sRGB
GLX_NV_copy_image
GLX_NV_copy_buffer
GLX_NV_multisample_coverage
GLX_EXT_create_context_es_profile
GLX_EXT_create_context_es2_profile
GLX_ARB_create_context_no_error
GLX_ARB_create_context_robustness
GLX_NV_delay_before_swap
GLX_EXT_stereo_tree
GLX_ARB_context_flush_control
GLX_NV_robustness_video_memory_purge
GLX_NV_multigpu_context
glx_info.get_extensions():
GLX_ARB_get_proc_address
GLX_ARB_multisample
GLX_EXT_visual_info
GLX_EXT_visual_rating
GLX_EXT_import_context
GLX_SGI_video_sync
GLX_SGIX_fbconfig
GLX_SGIX_pbuffer
GLX_SGI_swap_control
GLX_EXT_swap_control
GLX_EXT_swap_control_tear
GLX_EXT_buffer_age
GLX_ARB_create_context
GLX_ARB_create_context_profile
GLX_NV_float_buffer
GLX_ARB_fbconfig_float
GLX_EXT_texture_from_pixmap
GLX_EXT_framebuffer_sRGB
GLX_NV_copy_image
GLX_EXT_create_context_es_profile
GLX_EXT_create_context_es2_profile
GLX_ARB_create_context_no_error
GLX_ARB_create_context_robustness
GLX_NV_delay_before_swap
GLX_EXT_stereo_tree
GLX_ARB_context_flush_control
GLX_NV_robustness_video_memory_purge
GLX_NV_multigpu_context
pyglet.media
------------------------------------------------------------------------------
audio driver: <pyglet.media.drivers.openal.adaptation.OpenALDriver object at 0x7424aff271d0>
pyglet.media.ffmpeg
------------------------------------------------------------------------------
FFmpeg version: 4.4.2-0ubuntu0.22.04.1
pyglet.media.drivers.openal
------------------------------------------------------------------------------
Library: <CDLL 'libopenal.so.1', handle 62cc3ff288c0 at 0x7424afe86bd0>
Version: 1.1
Extensions:
ALC_ENUMERATE_ALL_EXT
ALC_ENUMERATION_EXT
ALC_EXT_CAPTURE
ALC_EXT_DEDICATED
ALC_EXT_disconnect
ALC_EXT_EFX
ALC_EXT_thread_local_context
ALC_SOFT_device_clock
ALC_SOFT_HRTF
ALC_SOFT_loopback
ALC_SOFT_output_limiter
ALC_SOFT_pause_device
pyglet.input.wintab
------------------------------------------------------------------------------
WinTab not available.
How To Reproduce
Run this code:
import pyglet
window = pyglet.window.Window(
width=1920,
height=1080,
fullscreen=True,
)
pyglet.app.run()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working