Issue 348 in pyglet: Unable to create a OpenGL context.

88 views
Skip to first unread message

codesite...@google.com

unread,
Sep 17, 2008, 10:16:28 PM9/17/08
to pyglet...@googlegroups.com
Issue 348: Unable to create a OpenGL context.
http://code.google.com/p/pyglet/issues/detail?id=348

New issue report by sta...@viralmind.org:
What steps will reproduce the problem?

1. Launch IDLE
2. import pyglet
2. window = pyglet.window.Window()

Paste in the traceback or error message:

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
win = pyglet.window.Window()
File "C:\Python25\lib\site-packages\pyglet\window\win32\__init__.py",
line 423, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Python25\lib\site-packages\pyglet\window\__init__.py", line
686, in __init__
self._create()
File "C:\Python25\lib\site-packages\pyglet\window\win32\__init__.py",
line 518, in _create
self.context._set_window(self)
File "C:\Python25\lib\site-packages\pyglet\window\win32\__init__.py",
line 364, in _set_window
raise gl.ContextException('Unable to share contexts')
ContextException: Unable to share contexts

pyglet 1.1 with Python 2.5: Paste in the output of `python -m pyglet.info`
Other: Paste in the output of tools/gl_info.py (included in source distro):

Python
------------------------------------------------------------------------------
sys.version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel
)]
sys.platform: win32
os.getcwd(): C:\Python25

pyglet
------------------------------------------------------------------------------
pyglet.version: 1.1.1
pyglet.__file__: C:\Python25\lib\site-packages\pyglet\__init__.pyc
pyglet.options['debug_trace_depth'] = 1
pyglet.options['audio'] = ('directsound', 'openal', 'alsa', 'silent')
pyglet.options['xsync'] = True
pyglet.options['debug_trace_flush'] = True
pyglet.options['debug_win32'] = False
pyglet.options['debug_gl_trace'] = False
pyglet.options['debug_x11'] = False
pyglet.options['shadow_window'] = True
pyglet.options['debug_font'] = False
pyglet.options['debug_media'] = False
pyglet.options['debug_trace'] = False
pyglet.options['debug_lib'] = False
pyglet.options['graphics_vbo'] = True
pyglet.options['vsync'] = None
pyglet.options['debug_trace_args'] = False
pyglet.options['debug_gl'] = True
pyglet.options['debug_graphics_batch'] = False
pyglet.options['font'] = ('gdiplus', 'win32')
pyglet.options['debug_texture'] = False
pyglet.options['debug_gl_trace_args'] = False

pyglet.window
------------------------------------------------------------------------------
platform: <pyglet.window.win32.Win32Platform object at 0x016B0FF0>
display: <pyglet.window.win32.Win32Display object at 0x016C0070>
screens[0]: Win32Screen(x=0, y=0, width=1152, height=864)
config['double_buffer'] = True
config['stereo'] = False
config['buffer_size'] = 32
config['aux_buffers'] = 0
config['sample_buffers'] = 0
config['samples'] = 0
config['red_size'] = 8
config['green_size'] = 8
config['blue_size'] = 8
config['alpha_size'] = 8
config['depth_size'] = 24
config['stencil_size'] = 8
config['accum_red_size'] = 0
config['accum_green_size'] = 0
config['accum_blue_size'] = 0
config['accum_alpha_size'] = 0
context: Win32Context()

pyglet.gl.gl_info
------------------------------------------------------------------------------
gl_info.get_version(): 2.1.7873 Release
gl_info.get_vendor(): ATI Technologies Inc.
gl_info.get_renderer(): ATI Radeon HD 4800 Series
gl_info.get_extensions():
GL_AMDX_vertex_shader_tessellator
GL_AMD_performance_monitor
GL_ARB_color_buffer_float
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_fragment_program
GL_ARB_fragment_shader
GL_ARB_multisample
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_shader_objects
GL_ARB_shading_language_100
GL_ARB_shadow
GL_ARB_shadow_ambient
GL_ARB_texture_border_clamp
GL_ARB_texture_compression
GL_ARB_texture_cube_map
GL_ARB_texture_env_add
GL_ARB_texture_env_combine
GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3
GL_ARB_texture_float
GL_ARB_texture_mirrored_repeat
GL_ARB_texture_non_power_of_two
GL_ARB_texture_rectangle
GL_ARB_transpose_matrix
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_window_pos
GL_ATI_draw_buffers
GL_ATI_envmap_bumpmap
GL_ATI_fragment_shader
GL_ATI_meminfo
GL_ATI_separate_stencil
GL_ATI_shader_texture_lod
GL_ATI_texture_compression_3dc
GL_ATI_texture_env_combine3
GL_ATI_texture_float
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_blend_color
GL_EXT_blend_func_separate
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_compiled_vertex_array
GL_EXT_copy_texture
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample
GL_EXT_framebuffer_object
GL_EXT_framebuffer_sRGB
GL_EXT_gpu_program_parameters
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_float
GL_EXT_packed_pixels
GL_EXT_point_parameters
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shadow_funcs
GL_EXT_stencil_wrap
GL_EXT_subtexture
GL_EXT_texgen_reflection
GL_EXT_texture3D
GL_EXT_texture_compression_s3tc
GL_EXT_texture_cube_map
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add
GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_lod_bias
GL_EXT_texture_mirror_clamp
GL_EXT_texture_object
GL_EXT_texture_rectangle
GL_EXT_texture_sRGB
GL_EXT_texture_shared_exponent
GL_EXT_vertex_array
GL_KTX_buffer_region
GL_NV_blend_square
GL_NV_texgen_reflection
GL_SGIS_generate_mipmap
GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod
GL_WIN_swap_hint
WGL_EXT_swap_control

pyglet.gl.glu_info
------------------------------------------------------------------------------
glu_info.get_version(): 1.2.2.0 Microsoft Corporation
glu_info.get_extensions():
GL_EXT_bgra

pyglet.gl.glx_info
------------------------------------------------------------------------------
GLX not available.

pyglet.media
------------------------------------------------------------------------------
driver: pyglet.media.drivers.directsound

pyglet.media.avbin
------------------------------------------------------------------------------
Library: <CDLL 'avbin', handle 6e440000 at 186ecf0>
AVbin version: 5
FFmpeg revision: 13661

pyglet.media.drivers.openal
------------------------------------------------------------------------------
Library: <CDLL 'openal32', handle 10000000 at 186ead0>
Version: (1, 1)
Extensions:

Any additional info (platform/language/hardware) that may be relevant?

Windows XP Service Pack 2
English (United States)

Quad Q6600 @ 2.4Ghz
4GB Ram (3.25GB because of XP)
Asus P5K Deluxe Motherboard
Radeon HD4870 Graphics Card

Installed Python 2.5, wxPython then Pyglet.

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Sep 17, 2008, 10:34:30 PM9/17/08
to pyglet...@googlegroups.com
Issue 348: Unable to create a OpenGL context.
http://code.google.com/p/pyglet/issues/detail?id=348

Comment #1 by Alex.Holkner:
That's unusual for a such a new graphics card. The list of known cards
that exhibit
this problem is here: http://groups.google.com/group/pyglet-users/web/faq.
Make sure
you've installed the most recent video driver available.


Issue attribute updates:
Status: Accepted
Labels: OpSys-Windows

codesite...@google.com

unread,
Sep 18, 2008, 9:08:14 AM9/18/08
to pyglet...@googlegroups.com
Issue 348: Unable to create a OpenGL context.
http://code.google.com/p/pyglet/issues/detail?id=348

Comment #2 by sta...@viralmind.org:
Running the latest Catalyst 8.9 drivers on the ATI card-- is there any other
information that might be of help to try and resolve this? Would love to
be able to
play and learn with Pyglet on my home machine. (Running a different ATI
card with
Catalyst 8.9 at work with no problems)

codesite...@google.com

unread,
Sep 18, 2008, 10:24:46 AM9/18/08
to pyglet...@googlegroups.com
Issue 348: Unable to create a OpenGL context.
http://code.google.com/p/pyglet/issues/detail?id=348

Comment #3 by Alex.Holkner:
Nothing comes to mind sorry.

With some restrictions, you will be able to use pyglet by setting the
environment variable
PYGLET_SHADOW_WINDOW to 0.

Reply all
Reply to author
Forward
0 new messages