kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Out of memory #261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run this script
import pyglet
window = pyglet.window.Window()
label = pyglet.text.Label('Hello, world',
                          font_name='Times New Roman',
                          font_size=36,
                          x=window.width//2, y=window.height//2,
                          halign='center', valign='center')
@window.event
def on_draw():
    window.clear()
    label.draw()
pyglet.app.run()

Paste in the traceback or error message:

python HelloWorldPyglet.py 
Traceback (most recent call last):
  File "HelloWorldPyglet.py", line 16, in <module>
    pyglet.app.run()
  File "/home/le/pywiic/trunk/lib/pyglet/app/__init__.py", line 263, in run
    EventLoop().run()
  File "/home/le/pywiic/trunk/lib/pyglet/app/xlib.py", line 91, in run
    sleep_time = self.idle()
  File "/home/le/pywiic/trunk/lib/pyglet/app/__init__.py", line 192, in idle
    window.dispatch_event('on_draw')
  File "/home/le/pywiic/trunk/lib/pyglet/window/__init__.py", line 1202, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "/home/le/pywiic/trunk/lib/pyglet/event.py", line 340, in dispatch_event
    if handler(*args):
  File "HelloWorldPyglet.py", line 14, in on_draw
    label.draw()
  File "/home/le/pywiic/trunk/lib/pyglet/text/layout.py", line 773, in draw
    self.batch.draw()
  File "/home/le/pywiic/trunk/lib/pyglet/graphics/__init__.py", line 502,
in draw
    func()
  File "/home/le/pywiic/trunk/lib/pyglet/graphics/__init__.py", line 460,
in <lambda>
    (lambda d, m: lambda: d.draw(m))(domain, mode))
  File "/home/le/pywiic/trunk/lib/pyglet/graphics/vertexdomain.py", line
271, in draw
    glDrawArrays(mode, starts[0], sizes[0])
  File "/home/le/pywiic/trunk/lib/pyglet/gl/lib.py", line 88, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: out of memory

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.1 (r251:54863, Mar  7 2008, 04:10:12) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
sys.platform: linux2
os.getcwd(): /home/le/pyglet-1.1alpha2/pyglet

pyglet
------------------------------------------------------------------------------
pyglet.version: 1.0
pyglet.__file__: /usr/lib/python2.5/site-packages/pyglet/__init__.pyc
pyglet.options['audio'] = ('directsound', 'openal', 'alsa', 'silent')
pyglet.options['debug_win32'] = False
pyglet.options['debug_font'] = False
pyglet.options['debug_media'] = False
pyglet.options['vsync'] = None
pyglet.options['debug_gl'] = True
pyglet.options['font'] = ('gdiplus', 'win32')

pyglet.window
------------------------------------------------------------------------------
platform: <pyglet.window.xlib.XlibPlatform object at 0x83fc02c>
display: <pyglet.window.xlib.XlibDisplayDevice object at 0xb7d35dcc>
screens[0]: XlibScreen(screen=0, x=0, y=0, width=1152, height=864, xinerama=1)
config['double_buffer'] = c_long(1)
config['stereo'] = c_long(0)
config['buffer_size'] = c_long(32)
config['aux_buffers'] = c_long(4)
config['sample_buffers'] = c_long(0)
config['samples'] = c_long(0)
config['red_size'] = c_long(8)
config['green_size'] = c_long(8)
config['blue_size'] = c_long(8)
config['alpha_size'] = c_long(0)
config['depth_size'] = c_long(24)
config['stencil_size'] = c_long(8)
config['accum_red_size'] = c_long(16)
config['accum_green_size'] = c_long(16)
config['accum_blue_size'] = c_long(16)
config['accum_alpha_size'] = c_long(16)
context: XlibGLContext()

pyglet.gl.gl_info
------------------------------------------------------------------------------
gl_info.get_version(): 1.5.8 NVIDIA 96.39
gl_info.get_vendor(): NVIDIA Corporation
gl_info.get_renderer(): GeForce4 MX Integrated GPU/AGP/SSE/3DNOW!
gl_info.get_extensions():
   GL_ARB_imaging
   GL_ARB_multitexture
   GL_ARB_pixel_buffer_object
   GL_ARB_point_parameters
   GL_ARB_point_sprite
   GL_ARB_shader_objects
   GL_ARB_shading_language_100
   GL_ARB_texture_compression
   GL_ARB_texture_cube_map
   GL_ARB_texture_env_add
   GL_ARB_texture_env_combine
   GL_ARB_texture_env_dot3
   GL_ARB_texture_mirrored_repeat
   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_EXT_Cg_shader
   GL_EXT_abgr
   GL_EXT_bgra
   GL_EXT_blend_color
   GL_EXT_blend_minmax
   GL_EXT_blend_subtract
   GL_EXT_clip_volume_hint
   GL_EXT_compiled_vertex_array
   GL_EXT_draw_range_elements
   GL_EXT_fog_coord
   GL_EXT_gpu_program_parameters
   GL_EXT_multi_draw_arrays
   GL_EXT_packed_pixels
   GL_EXT_paletted_texture
   GL_EXT_pixel_buffer_object
   GL_EXT_point_parameters
   GL_EXT_rescale_normal
   GL_EXT_secondary_color
   GL_EXT_separate_specular_color
   GL_EXT_shared_texture_palette
   GL_EXT_stencil_wrap
   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
   GL_EXT_texture_lod_bias
   GL_EXT_texture_object
   GL_EXT_vertex_array
   GL_IBM_rasterpos_clip
   GL_IBM_texture_mirrored_repeat
   GL_KTX_buffer_region
   GL_NV_blend_square
   GL_NV_fence
   GL_NV_fog_distance
   GL_NV_light_max_exponent
   GL_NV_packed_depth_stencil
   GL_NV_pixel_data_range
   GL_NV_point_sprite
   GL_NV_register_combiners
   GL_NV_texgen_reflection
   GL_NV_texture_env_combine4
   GL_NV_texture_rectangle
   GL_NV_vertex_array_range
   GL_NV_vertex_array_range2
   GL_NV_vertex_program
   GL_NV_vertex_program1_1
   GL_S3_s3tc
   GL_SGIS_generate_mipmap
   GL_SGIS_multitexture
   GL_SGIS_texture_lod
   GL_SUN_slice_accum

pyglet.gl.glu_info
------------------------------------------------------------------------------
glu_info.get_version(): 1.3
glu_info.get_extensions():
   GLU_EXT_nurbs_tessellator
   GLU_EXT_object_space_tess

pyglet.gl.glx_info
------------------------------------------------------------------------------
context.is_direct(): 1
glx_info.get_server_vendor(): NVIDIA Corporation
glx_info.get_server_version(): 1.3
glx_info.get_server_extensions():
   GLX_EXT_visual_info
   GLX_EXT_visual_rating
   GLX_SGIX_fbconfig
   GLX_SGIX_pbuffer
   GLX_SGI_video_sync
   GLX_SGI_swap_control
   GLX_EXT_texture_from_pixmap
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_NV_video_out
   GLX_SGIX_fbconfig
   GLX_SGIX_pbuffer
   GLX_SGI_swap_control
   GLX_NV_float_buffer
   GLX_ARB_fbconfig_float
   GLX_EXT_fbconfig_packed_float
   GLX_EXT_texture_from_pixmap
glx_info.get_extensions():
   GLX_EXT_visual_info
   GLX_EXT_visual_rating
   GLX_SGIX_fbconfig
   GLX_SGIX_pbuffer
   GLX_SGI_video_sync
   GLX_SGI_swap_control
   GLX_EXT_texture_from_pixmap
   GLX_ARB_get_proc_address

pyglet.media
------------------------------------------------------------------------------
driver: pyglet.media.drivers.openal

pyglet.media.avbin
------------------------------------------------------------------------------
AVbin not available.

pyglet.media.drivers.openal
------------------------------------------------------------------------------
Library: <CDLL 'libopenal.so.0', handle 86a4060 at 86780cc>
Version: (1, 0)
Extensions:

   weird vorbid_get

Original issue reported on code.google.com by leandrom...@gmail.com on 1 Apr 2008 at 8:40

GoogleCodeExporter commented 9 years ago
i'm using pyglet 1-1 alpha2

sorry

Original comment by leandrom...@gmail.com on 1 Apr 2008 at 8:41

GoogleCodeExporter commented 9 years ago
The info dump you've provided is for pyglet 1.0... it looks like there's 
something screwy going on in your python 
path.

Besides that, I suspect your video driver isn't gracefully handling vertex 
buffer objects.  You can disable these 
with the environment variable PYGLET_DEBUG_GRAPHICS_ENABLE_VBO = 0 (in SVN 
trunk, this variable is now 
PYGLET_GRAPHICS_VBO).

Let me know if this helps, I can include the workaround for your video card.

Original comment by Alex.Hol...@gmail.com on 7 Apr 2008 at 12:14

GoogleCodeExporter commented 9 years ago
Issue blocked until submitter confirms workaround.

Original comment by Alex.Hol...@gmail.com on 13 Apr 2008 at 1:32

GoogleCodeExporter commented 9 years ago
I'm using python 2.5 and pyglet 1.1.2 and I have the same issue. I tried the 
workaround:
$ PYGLET_DEBUG_GRAPHICS_ENABLE_VBO=0 python2.5 main.py
failed to create drawable
Traceback (most recent call last):
File "main.py", line 16, in <module>
from pyglet.window import key
File "build/bdist.linux-i686/egg/pyglet/window/__init__.py", line 1682, in 
<module>
File "build/bdist.linux-i686/egg/pyglet/gl/__init__.py", line 491, in 
_create_shadow_window
File "build/bdist.linux-i686/egg/pyglet/window/xlib/__init__.py", line 474, in 
__init__
File "build/bdist.linux-i686/egg/pyglet/window/__init__.py", line 686, in 
__init__
File "build/bdist.linux-i686/egg/pyglet/window/xlib/__init__.py", line 683, in 
_create
File "build/bdist.linux-i686/egg/pyglet/window/xlib/__init__.py", line 781, in 
switch_to
File "build/bdist.linux-i686/egg/pyglet/gl/__init__.py", line 342, in 
set_current
File "build/bdist.linux-i686/egg/pyglet/gl/gl_info.py", line 91, in 
set_active_context
File "build/bdist.linux-i686/egg/pyglet/gl/lib.py", line 105, in errcheck
pyglet.gl.lib.GLException: out of memory

And got the same thing. Any other workarounds I could try?

Original comment by useingub...@gmail.com on 7 Feb 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Looks like the same problem. Linux guest on vmware running on windows 7. If I 
quickly rerun the script then it briefly works before segfaulting. 
PYGLET_DEBUG_GRAPHICS_ENABLE_VBO=0 and PYGLET_GRAPHICS_VBO=0 don't help any.

Since pyglet.gl.glx_info isn't displaying anything, I reran quickly and got 
this::
pyglet.gl.glx_info.get_server_vendor()    SGI
pyglet.gl.glx_info.get_server_version()   1.4
pyglet.gl.glx_info.get_client_vendor()    Mesa Project and SGI
pyglet.gl.glx_info.get_client_version()   1.4

ngozi@chike-virtual:~/temp$ cat pig.py;./pig.py 
#!/usr/bin/python

import pyglet

window = pyglet.window.Window()

pyglet.text.Label('Hello, world!',
                  font_name='Times New Roman',
                  font_size=36,
                  x=window.width//2,
                  y=window.height//2,
                  anchor_x='center',
                  anchor_y='center')

@window.event
def on_draw():
    window.clear()
    label.draw()

pyglet.app.run()

failed to create drawable
failed to create drawable
Traceback (most recent call last):
  File "./pig.py", line 5, in <module>
    window = pyglet.window.Window()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 686, in __init__
    self._create()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 683, in _create
    self.switch_to()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 781, in switch_to
    self._context.set_current()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/__init__.py", line 345, in set_current
    self._info.set_active_context()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/gl_info.py", line 91, in set_active_context
    self.vendor = cast(glGetString(GL_VENDOR), c_char_p).value
  File "/usr/lib/pymodules/python2.7/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: out of memory

ngozi@chike-virtual:~/temp$ python -m pyglet.info
Python
------------------------------------------------------------------------------
sys.version: 2.7.2+ (default, Oct  4 2011, 20:03:08) 
[GCC 4.6.1]
sys.platform: linux2
os.getcwd(): /home/ngozi/temp

pyglet
------------------------------------------------------------------------------
pyglet.version: 1.1.4
pyglet.__file__: /usr/lib/pymodules/python2.7/pyglet/__init__.pyc
pyglet.options['debug_trace_depth'] = 1
pyglet.options['font'] = ('gdiplus', 'win32')
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['audio'] = ('directsound', 'openal', 'alsa', 'silent')
pyglet.options['debug_texture'] = False
pyglet.options['debug_gl_trace_args'] = False

pyglet.window
------------------------------------------------------------------------------
failed to create drawable
platform: <pyglet.window.xlib.XlibPlatform object at 0xb725b86c>
display: <pyglet.window.xlib.XlibDisplayDevice object at 0xb725ba4c>
screens[0]: XlibScreen(screen=0, x=0, y=0, width=1920, height=1080, xinerama=1)
failed to create drawable
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 173, in _try_dump
    func()
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 85, in dump_window
    window = pyglet.window.Window(visible=False)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 686, in __init__
    self._create()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 683, in _create
    self.switch_to()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 781, in switch_to
    self._context.set_current()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/__init__.py", line 345, in set_current
    self._info.set_active_context()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/gl_info.py", line 91, in set_active_context
    self.vendor = cast(glGetString(GL_VENDOR), c_char_p).value
  File "/usr/lib/pymodules/python2.7/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
GLException: out of memory

pyglet.gl.gl_info
------------------------------------------------------------------------------
gl_info.get_version(): 2.1 Mesa 7.11
gl_info.get_vendor(): Mesa Project
gl_info.get_renderer(): Software Rasterizer
gl_info.get_extensions():
   GL_3DFX_texture_compression_FXT1
   GL_APPLE_object_purgeable
   GL_APPLE_packed_pixels
   GL_APPLE_vertex_array_object
   GL_ARB_copy_buffer
   GL_ARB_depth_clamp
   GL_ARB_depth_texture
   GL_ARB_draw_buffers
   GL_ARB_draw_elements_base_vertex
   GL_ARB_draw_instanced
   GL_ARB_explicit_attrib_location
   GL_ARB_fragment_coord_conventions
   GL_ARB_fragment_program
   GL_ARB_fragment_program_shadow
   GL_ARB_fragment_shader
   GL_ARB_framebuffer_object
   GL_ARB_half_float_pixel
   GL_ARB_half_float_vertex
   GL_ARB_map_buffer_range
   GL_ARB_multisample
   GL_ARB_multitexture
   GL_ARB_occlusion_query
   GL_ARB_occlusion_query2
   GL_ARB_pixel_buffer_object
   GL_ARB_point_parameters
   GL_ARB_point_sprite
   GL_ARB_provoking_vertex
   GL_ARB_robustness
   GL_ARB_shader_objects
   GL_ARB_shading_language_100
   GL_ARB_shadow
   GL_ARB_shadow_ambient
   GL_ARB_sync
   GL_ARB_texture_border_clamp
   GL_ARB_texture_compression
   GL_ARB_texture_compression_rgtc
   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_mirrored_repeat
   GL_ARB_texture_non_power_of_two
   GL_ARB_texture_rectangle
   GL_ARB_texture_rg
   GL_ARB_texture_swizzle
   GL_ARB_transpose_matrix
   GL_ARB_vertex_array_bgra
   GL_ARB_vertex_array_object
   GL_ARB_vertex_buffer_object
   GL_ARB_vertex_program
   GL_ARB_vertex_shader
   GL_ARB_window_pos
   GL_ATI_blend_equation_separate
   GL_ATI_draw_buffers
   GL_ATI_envmap_bumpmap
   GL_ATI_fragment_shader
   GL_ATI_separate_stencil
   GL_ATI_texture_compression_3dc
   GL_ATI_texture_env_combine3
   GL_ATI_texture_mirror_once
   GL_EXT_abgr
   GL_EXT_bgra
   GL_EXT_blend_color
   GL_EXT_blend_equation_separate
   GL_EXT_blend_func_separate
   GL_EXT_blend_logic_op
   GL_EXT_blend_minmax
   GL_EXT_blend_subtract
   GL_EXT_compiled_vertex_array
   GL_EXT_copy_texture
   GL_EXT_depth_bounds_test
   GL_EXT_draw_buffers2
   GL_EXT_draw_instanced
   GL_EXT_draw_range_elements
   GL_EXT_fog_coord
   GL_EXT_framebuffer_blit
   GL_EXT_framebuffer_multisample
   GL_EXT_framebuffer_object
   GL_EXT_gpu_program_parameters
   GL_EXT_multi_draw_arrays
   GL_EXT_packed_depth_stencil
   GL_EXT_packed_pixels
   GL_EXT_paletted_texture
   GL_EXT_pixel_buffer_object
   GL_EXT_point_parameters
   GL_EXT_polygon_offset
   GL_EXT_provoking_vertex
   GL_EXT_rescale_normal
   GL_EXT_secondary_color
   GL_EXT_separate_shader_objects
   GL_EXT_separate_specular_color
   GL_EXT_shadow_funcs
   GL_EXT_shared_texture_palette
   GL_EXT_stencil_two_side
   GL_EXT_stencil_wrap
   GL_EXT_subtexture
   GL_EXT_texture
   GL_EXT_texture3D
   GL_EXT_texture_array
   GL_EXT_texture_compression_latc
   GL_EXT_texture_compression_rgtc
   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_sRGB_decode
   GL_EXT_texture_shared_exponent
   GL_EXT_texture_swizzle
   GL_EXT_vertex_array
   GL_EXT_vertex_array_bgra
   GL_IBM_multimode_draw_arrays
   GL_IBM_rasterpos_clip
   GL_IBM_texture_mirrored_repeat
   GL_INGR_blend_func_separate
   GL_MESA_pack_invert
   GL_MESA_resize_buffers
   GL_MESA_texture_array
   GL_MESA_window_pos
   GL_MESA_ycbcr_texture
   GL_NV_blend_square
   GL_NV_conditional_render
   GL_NV_depth_clamp
   GL_NV_fragment_program
   GL_NV_fragment_program_option
   GL_NV_light_max_exponent
   GL_NV_packed_depth_stencil
   GL_NV_point_sprite
   GL_NV_texgen_reflection
   GL_NV_texture_env_combine4
   GL_NV_texture_rectangle
   GL_NV_vertex_program
   GL_NV_vertex_program1_1
   GL_OES_read_format
   GL_SGIS_generate_mipmap
   GL_SGIS_texture_border_clamp
   GL_SGIS_texture_edge_clamp
   GL_SGIS_texture_lod
   GL_SUN_multi_draw_arrays

pyglet.gl.glu_info
------------------------------------------------------------------------------
glu_info.get_version(): 1.3
glu_info.get_extensions():
   GLU_EXT_nurbs_tessellator
   GLU_EXT_object_space_tess

pyglet.gl.glx_info
------------------------------------------------------------------------------
failed to create drawable
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 173, in _try_dump
    func()
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 121, in dump_glx
    window = pyglet.window.Window(visible=False)
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/pyglet/window/__init__.py", line 686, in __init__
    self._create()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 683, in _create
    self.switch_to()
  File "/usr/lib/pymodules/python2.7/pyglet/window/xlib/__init__.py", line 781, in switch_to
    self._context.set_current()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/__init__.py", line 345, in set_current
    self._info.set_active_context()
  File "/usr/lib/pymodules/python2.7/pyglet/gl/gl_info.py", line 91, in set_active_context
    self.vendor = cast(glGetString(GL_VENDOR), c_char_p).value
  File "/usr/lib/pymodules/python2.7/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
GLException: out of memory

pyglet.media
------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 173, in _try_dump
    func()
  File "/usr/lib/pymodules/python2.7/pyglet/info.py", line 144, in dump_media
    import pyglet.media
  File "/usr/lib/pymodules/python2.7/pyglet/media/__init__.py", line 1338, in <module>
    __import__(driver_name)
  File "/usr/lib/pymodules/python2.7/pyglet/media/drivers/openal/__init__.py", line 42, in <module>
    from pyglet.media.drivers.openal import lib_openal as al
  File "/usr/lib/pymodules/python2.7/pyglet/media/drivers/openal/lib_openal.py", line 57, in <module>
    framework='/System/Library/Frameworks/OpenAL.framework')
  File "/usr/lib/pymodules/python2.7/pyglet/lib.py", line 100, in load_library
    libname = ctypes.util.find_library(name)
  File "/usr/lib/python2.7/ctypes/util.py", line 236, in find_library
    return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
  File "/usr/lib/python2.7/ctypes/util.py", line 225, in _findSoname_ldconfig
    f = os.popen('/sbin/ldconfig -p 2>/dev/null')
OSError: [Errno 12] Cannot allocate memory

pyglet.media.avbin
------------------------------------------------------------------------------
AVbin not available.

pyglet.media.drivers.openal
------------------------------------------------------------------------------
OpenAL not available.

Original comment by Fel...@gmail.com on 9 Mar 2012 at 9:24

GoogleCodeExporter commented 9 years ago
More information: If I run python with -O (disabling error checks?), OOM and 
segfaults don't happen as often. Nothing that should be drawn is drawn, though. 
This includes both label and image. The window's contents are just pure black.

Original comment by Fel...@gmail.com on 9 Mar 2012 at 7:54

GoogleCodeExporter commented 9 years ago
For the virtual graphic card I'd create another issue, and retest this one for 
released stable pyglet 1.1.4 and newer NVidia drivers.

Original comment by techtonik@gmail.com on 17 Jul 2012 at 5:38

GoogleCodeExporter commented 9 years ago
Can you reproduce this issue with Python 1.1.4?

Also testing 1.2 alpha1 would be useful: 
http://code.google.com/p/pyglet/downloads/list?q=1.2alpha1

Thanks!

Original comment by useboxnet on 17 Jul 2013 at 5:53

GoogleCodeExporter commented 9 years ago
I'm closing this issue as is too old and not useful any more (new nvidia 
drivers have been released and we're now working on pyglet 1.2).

Id be great if you could test pyglet 1.2 from the repository:

https://pyglet.googlecode.com/archive/c43bc57c954f350e1dceb486032f4c54f6200d69.z
ip

Thanks a lot for your report!

Original comment by useboxnet on 3 Jan 2014 at 8:35