Had some time to get info together from my laptop- win64 py32 2.7.1
Note: Commenting out the section from previous reply also seems to
prevent the crash on the laptop.
However, I'm getting an actual error on my laptop (integrated
graphics) and I'm not having the screen freeze to black and restart.
Here's the message:
Traceback (most recent call last):
File "C:\Users\Joe Laptop\git\numberoverzero\BatchDrawExample\src
\Example\__init__.py", line 6, in <module>
TestWindow.run()
File "C:\Users\Joe Laptop\git\numberoverzero\BatchDrawExample\src
\Example\Main.py", line 74, in run
self.batch.draw()
File "c:\Python27\lib\site-packages\pyglet\graphics\__init__.py",
line 538, in draw
func()
File "c:\Python27\lib\site-packages\pyglet\graphics\__init__.py",
line 470, in <lambda>
(lambda d, m: lambda: d.draw(m))(domain, mode))
File "c:\Python27\lib\site-packages\pyglet\graphics
\vertexdomain.py", line 681, in draw
self.index_buffer.ptr + starts[0])
WindowsError: exception: access violation reading 0x0810D860
pyglet/info.py:
Python
------------------------------------------------------------------------------
sys.version: 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32
bit (Intel)]
sys.platform: win32
os.getcwd(): C:\Python27\Lib\site-packages\pyglet
pyglet
------------------------------------------------------------------------------
pyglet.version: 1.1.4
pyglet.__file__: C:\Python27\lib\site-packages\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
------------------------------------------------------------------------------
platform: <pyglet.window.win32.Win32Platform object at 0x02D4A170>
display: <pyglet.window.win32.Win32Display object at 0x02D4A1F0>
screens[0]: Win32Screen(x=0, y=0, width=1440, height=900)
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'] = 16
config['accum_green_size'] = 16
config['accum_blue_size'] = 16
config['accum_alpha_size'] = 16
context: Win32Context()
pyglet.gl.gl_info
------------------------------------------------------------------------------
gl_info.get_version(): 2.1.0 - Build 8.15.10.2401
gl_info.get_vendor(): Intel
gl_info.get_renderer(): Intel(R) HD Graphics
gl_info.get_extensions():
GL_3DFX_texture_compression_FXT1
GL_ARB_color_buffer_float
GL_ARB_compatibility
GL_ARB_copy_buffer
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_instanced
GL_ARB_fragment_program
GL_ARB_fragment_shader
GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_map_buffer_range
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_sampler_objects
GL_ARB_seamless_cube_map
GL_ARB_shader_objects
GL_ARB_shading_language_100
GL_ARB_shadow
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_float
GL_ARB_texture_non_power_of_two
GL_ARB_texture_rectangle
GL_ARB_texture_rg
GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object
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_separate_stencil
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_blend_color
GL_EXT_blend_equation_separate
GL_EXT_blend_func_separate
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_clip_volume_hint
GL_EXT_compiled_vertex_array
GL_EXT_draw_buffers2
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_object
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_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shadow_funcs
GL_EXT_stencil_two_side
GL_EXT_stencil_wrap
GL_EXT_texture3D
GL_EXT_texture_array
GL_EXT_texture_compression_s3tc
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add
GL_EXT_texture_env_combine
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_lod_bias
GL_EXT_texture_rectangle
GL_EXT_texture_sRGB
GL_EXT_texture_shared_exponent
GL_EXT_texture_snorm
GL_EXT_texture_swizzle
GL_EXT_transform_feedback
GL_IBM_texture_mirrored_repeat
GL_INTEL_performance_queries
GL_NV_blend_square
GL_NV_conditional_render
GL_NV_primitive_restart
GL_NV_texgen_reflection
GL_SGIS_generate_mipmap
GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod
GL_WIN_swap_hint
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
------------------------------------------------------------------------------
AVbin not available.
pyglet.media.drivers.openal
------------------------------------------------------------------------------
OpenAL not available.
On Dec 20, 12:17 am, Joe Cross <[email protected]> wrote:
> Just tested commenting out code in pyglet/graphics/vertexdomain.py:
>
> #elif primcount == 1:
> # # Common case
> # glDrawElements(mode, sizes[0], self.index_gl_type,
> # self.index_buffer.ptr + starts[0])
>
> this forces it to use glMultiDrawElements, and I'm not able to crash
> the demo on the computer I originally ran into a problem with.
> It happily deletes vertices all day.
>
> does this help at all? Is this suggesting card/driver problem, or
> 32/64 problem? I'm not familiar enough with OpenGL to know what the
> significance of MultiDrawElements vs DrawElements is....
> I'll see what I can find.
>
> Joe
>
> On Dec 20, 12:10 am, Joe Cross <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks! I have properties in there, they're below the get/set
> > methods.
> > This was a quick demo, so I used PyDev's auto naming, and forgot to
> > privatize them. But yes, there's properties in there =)
>
> > On Dec 19, 10:23 pm, Jake b <[email protected]> wrote:
>
> > > There's a property() decorator as of python2.6
> > > :http://docs.python.org/library/functions.html#property
>
> > > On Sun, Dec 4, 2011 at 10:58 AM, Joe Cross <[email protected]> wrote:
> > > > Hello,
>
> > > > Much simpler demo here.
>
> > > >https://github.com/numberoverzero/BatchDrawExample
>
> > > > Simply import Example and click around.
>
> > > > Main runs the window and update, and Shape takes care of rectangle
> > > > updating.
> > > > The reason for getters/setters on each variable is so that when they
> > > > change, verts are updated correctly.
>
> > > > --
>
> > > Jake
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.