Issue 35: Crash on opengl - Intel G965 Graphics (with last driver opengl 2 supported)
Status:  Fixed
Owner:
Closed:  Aug 2009

Blocked on:
issue 30
Reported by fabrice....@gmail.com, Mar 13, 2009
What steps will reproduce the problem?
1. when i use 3Dviewer with Intel G965 Graphics
2. last driver with opengl 2 supported
3. i can use launch.py but when i select a apps, crash opengl

Link to intel that support opengl 2.0 on G965
http://downloadmirror.intel.com/17291/eng/relnotes_2k_xp_gfx.htm

i use PYMT 0.1 with python2.6 - pyglet and numpy on Windows XP

C:\Python\pymt-0.1\examples\3Dviewer>python 3Dviewer.py
Traceback (most recent call last):
  File "3Dviewer.py", line 125, in <module> pymt_plugin_activate(w, ctx)
  File "3Dviewer.py", line 116, in pymt_plugin_activate ctx.mv =
ModelViewer(size=(root.width,root.height))
  File "3Dviewer.py", line 72, in __init__ GLWindow.__init__(self, **kargs)
  File "3Dviewer.py", line 18, in __init__ self.fbo = Fbo(self.size)
  File "c:\python\Lib\site-packages\pymt\graphx.py", line 194, in __init__
glGenRenderbuffersEXT(1, byref(self.depthbuffer));
  File "c:\python\lib\site-packages\pyglet\gl\lib_wgl.py", line 94, in
__call__ result = self.func(*args, **kwargs)
  File "c:\python\lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
raise GLException(msg) pyglet.gl.lib.GLException: None
Exception pyglet.gl.lib.GLException: GLException(None,) in <bound method
Fbo.__del__ of <pymt.graphx.Fbo instance at 0x0A5E2F08>> ignored 


Mar 13, 2009
Project Member #1 txprog
This is an issue related with Fbo. All the Fbo test will be unavailable for your
hardware on this version :/
Status: Accepted
Mar 13, 2009
Project Member #2 txprog
(No comment was entered for this change.)
Labels: Component-Core
Mar 13, 2009
Project Member #3 txprog
(No comment was entered for this change.)
Blockedon: 30
Mar 13, 2009
Project Member #4 thomas.h...@gmail.com
Can you run the following code and paste the output?

import pyglet
print pyglet.gl.gl_info.get_extensions()

not sure 2.0 means it automatically supports FBO extension (its still an EXT function 
in 2.0).  The output of the above should help us figure out whether your card 
supports FBO's.  I'll look into using the output to fail gracefully or fallback on 
something else like glCopyPixels (although that would be painfully slow i think)
Status: Started
Mar 13, 2009
Project Member #5 thomas.h...@gmail.com
(No comment was entered for this change.)
Owner: thomas.hansen
Mar 14, 2009
#6 fabrice....@gmail.com
Hello and many thanks for quick reply.
here, the result of test.py that you ask :

set(['GL_ARB_texture_compression', 'GL_EXT_texture_rectangle', 'GL_EXT_multi_dra
w_arrays', 'GL_EXT_stencil_two_side', 'GL_EXT_blend_color', 'GL_EXT_blend_subtra
ct', 'GL_NV_texgen_reflection', 'GL_EXT_stencil_wrap', 'GL_IBM_texture_mirrored_
repeat', 'GL_EXT_clip_volume_hint', 'GL_EXT_compiled_vertex_array', 'GL_ARB_shad
ow', 'GL_ARB_vertex_program', 'GL_EXT_texture_compression_s3tc', 'GL_ATI_separat
e_stencil', 'GL_ARB_texture_env_dot3', 'GL_3DFX_texture_compression_FXT1', 'GL_E
XT_bgra', 'GL_SGIS_texture_edge_clamp', 'GL_ARB_vertex_shader', 'GL_ARB_depth_te
xture', 'GL_ARB_texture_env_combine', 'GL_ARB_fragment_shader', 'GL_EXT_abgr', '
GL_ARB_vertex_buffer_object', 'GL_ARB_point_sprite', 'GL_EXT_shadow_funcs', 'GL_
ARB_pixel_buffer_object', 'GL_EXT_framebuffer_object', 'GL_ARB_fragment_program'
, 'GL_EXT_separate_specular_color', 'GL_WIN_swap_hint', 'GL_EXT_texture_env_add'
, 'GL_EXT_texture3D', 'GL_ARB_window_pos', 'GL_ARB_multitexture', 'GL_NV_blend_s
quare', 'GL_EXT_blend_func_separate', 'GL_EXT_secondary_color', 'GL_ARB_texture_
non_power_of_two', 'GL_EXT_texture_env_combine', 'GL_ARB_occlusion_query', 'GL_A
RB_texture_env_crossbar', 'GL_ARB_texture_rectangle', 'GL_EXT_texture_lod_bias',
 'GL_ARB_transpose_matrix', 'GL_EXT_draw_range_elements', 'GL_ARB_shading_langua
ge_100', 'GL_ARB_texture_env_add', 'GL_SGIS_generate_mipmap', 'GL_ARB_texture_bo
rder_clamp', 'GL_EXT_fog_coord', 'GL_EXT_texture_filter_anisotropic', 'GL_EXT_bl
end_minmax', 'GL_ARB_texture_cube_map', 'GL_ARB_draw_buffers', 'GL_EXT_packed_pi
xels', 'GL_SGIS_texture_lod', 'GL_EXT_rescale_normal', 'GL_ARB_shader_objects',
'GL_EXT_blend_equation_separate', 'GL_ARB_point_parameters'])

i send you a file and picture of my result of gpu caps viewer

many thanks.

Fabrice Mounin



gpu_caps_viewer_report.xml
5.1 KB   View   Download
gpucaps.jpg
75.7 KB   View   Download
Mar 15, 2009
Project Member #7 thomas.h...@gmail.com
mhh, according to that you have : 'GL_EXT_framebuffer_object
might be the render buffer thing for attaching the depth buffer.  ill keep looking at 
this, although at the moment i dont really know whats wrong :(
Mar 23, 2009
Project Member #8 txprog
From overload_mts on irc : 

Traceback (most recent call last):
  File "paint.py", line 178, in <module>
    pymt_plugin_activate(w, ctx)
  File "paint.py", line 149, in pymt_plugin_activate
    ctx.canvas = Canvas(pos=(40,40),size=(root.width,root.height))
  File "paint.py", line 99, in __init__
    self.fbo = Fbo((self.width, self.height), push_viewport=False)
  File "/usr/lib/python2.5/site-packages/pymt/graphx.py", line 344, in __init__
    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, self.framebuffer)
  File "/usr/lib/python2.5/site-packages/pyglet/gl/lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: invalid operation

Mar 24, 2009
Project Member #9 txprog
Well, it's not the same bug :
set(['GL_ARB_texture_compression', 'GL_EXT_cull_vertex', 'GL_IBM_rasterpos_clip',
'GL_EXT_blend_logic_op', 'GL_SGIX_depth_texture', 'GL_MESA_window_pos',
'GL_OES_read_format', 'GL_EXT_blend_color', 'GL_EXT_blend_subtract',
'GL_EXT_subtexture', 'GL_NV_texgen_reflection', 'GL_EXT_stencil_wrap',
'GL_EXT_texture_edge_clamp', 'GL_EXT_texture_rectangle',
'GL_IBM_texture_mirrored_repeat', 'GL_ARB_window_pos', 'GL_APPLE_packed_pixels',
'GL_EXT_compiled_vertex_array', 'GL_ARB_shadow', 'GL_ARB_texture_mirrored_repeat',
'GL_ARB_vertex_program', 'GL_EXT_point_parameters', 'GL_ARB_texture_env_dot3',
'GL_3DFX_texture_compression_FXT1', 'GL_EXT_bgra', 'GL_SGIS_texture_edge_clamp',
'GL_ARB_depth_texture', 'GL_EXT_copy_texture', 'GL_ARB_texture_env_combine',
'GL_NV_vertex_program1_1', 'GL_ARB_vertex_buffer_object', 'GL_EXT_rescale_normal',
'GL_SGIS_texture_border_clamp', 'GL_EXT_shadow_funcs', 'GL_ATI_separate_stencil',
'GL_SUN_multi_draw_arrays', 'GL_NV_texture_rectangle', 'GL_APPLE_client_storage',
'GL_ARB_fragment_program', 'GL_EXT_separate_specular_color', 'GL_NV_point_sprite',
'GL_EXT_texture_env_add', 'GL_EXT_packed_depth_stencil', 'GL_EXT_packed_pixels',
'GL_ARB_multitexture', 'GL_NV_blend_square', 'GL_EXT_secondary_color',
'GL_EXT_blend_func_separate', 'GL_ARB_texture_non_power_of_two', 'GL_EXT_texture',
'GL_EXT_texture_env_combine', 'GL_EXT_blend_equation_separate',
'GL_EXT_texture_object', 'GL_ARB_texture_rectangle', 'GL_EXT_texture_lod_bias',
'GL_EXT_vertex_array', 'GL_MESA_pack_invert', 'GL_ARB_transpose_matrix',
'GL_EXT_abgr', 'GL_MESA_ycbcr_texture', 'GL_EXT_multi_draw_arrays',
'GL_ARB_texture_env_add', 'GL_NV_vertex_program', 'GL_ARB_multisample',
'GL_SGIS_generate_mipmap', 'GL_ARB_texture_border_clamp', 'GL_EXT_fog_coord',
'GL_EXT_polygon_offset', 'GL_EXT_texture_filter_anisotropic',
'GL_NV_light_max_exponent', 'GL_EXT_blend_minmax', 'GL_EXT_clip_volume_hint',
'GL_ARB_texture_cube_map', 'GL_INGR_blend_func_separate',
'GL_ATI_blend_equation_separate', 'GL_ARB_texture_env_crossbar',
'GL_SGIS_texture_lod', 'GL_EXT_draw_range_elements', 'GL_EXT_texture3D',
'GL_ARB_point_parameters', 'GL_EXT_texture_env_dot3'])
Mar 26, 2009
#10 oli4444@gmail.com
Hello I've got the same kind of problem here with Mobile Intel(R) 945GM Express Chipset 

Here is the printout:

set(['GL_ARB_texture_compression', 'GL_EXT_cull_vertex', 'GL_EXT_clip_volume_hint',
'GL_EXT_stencil_two_side', 'GL_EXT_blend_color', 'GL_EXT_blend_subtract',
'GL_NV_texgen_reflection', 'GL_EXT_stencil_wrap', 'GL_IBM_texture_mirrored_repeat',
'GL_ARB_window_pos', 'GL_EXT_compiled_vertex_array', 'GL_ARB_shadow',
'GL_ARB_vertex_program', 'GL_EXT_texture_compression_s3tc',
'GL_ARB_texture_env_dot3', 'GL_3DFX_texture_compression_FXT1', 'GL_EXT_bgra',
'GL_SGIS_texture_edge_clamp', 'GL_ARB_depth_texture', 'GL_ARB_texture_env_combine',
'GL_ARB_vertex_buffer_object', 'GL_EXT_rescale_normal', 'GL_EXT_shadow_funcs',
'GL_ARB_fragment_program', 'GL_EXT_separate_specular_color', 'GL_WIN_swap_hint',
'GL_EXT_texture_env_add', 'GL_EXT_texture3D', 'GL_ARB_multitexture',
'GL_NV_blend_square', 'GL_EXT_secondary_color', 'GL_EXT_blend_func_separate',
'GL_EXT_texture_env_combine', 'GL_EXT_packed_pixels', 'GL_EXT_texture_lod_bias',
'GL_ARB_transpose_matrix', 'GL_EXT_abgr', 'GL_EXT_multi_draw_arrays',
'GL_ARB_texture_env_add', 'GL_SGIS_generate_mipmap', 'GL_ARB_texture_border_clamp',
'GL_EXT_fog_coord', 'GL_EXT_texture_filter_anisotropic', 'GL_EXT_blend_minmax',
'GL_ARB_texture_cube_map', 'GL_ARB_texture_env_crossbar', 'GL_SGIS_texture_lod',
'GL_EXT_draw_range_elements', 'GL_ARB_point_parameters'])

++
Olivier Heinry


Mar 26, 2009
#11 oli4444@gmail.com
Here is a snapshot of the cygwin window, sorry, couldnt get a filetext, i'm a windows
newbie! It crashed after launching 3Ddrawing example from the command line, pyglet
1.1.3, python 2.5.4, pymt 0.1
crash_3Dpaint_py.JPG
108 KB   View   Download
Apr 9, 2009
#14 nicholas...@gmail.com
I believe I have a similar problem, but with ATI 1900xtx graphics,
>>> print pyglet.gl.gl_info.get_extensions()
set(['GL_ARB_texture_compression', 'GL_EXT_blend_color', 'GL_EXT_blend_subtract'
, 'GL_EXT_stencil_wrap', 'GL_EXT_vertex_array', 'GL_EXT_texture_compression_s3tc
', 'GL_ATI_separate_stencil', 'GL_ARB_depth_texture', 'GL_ATI_texture_compressio
n_3dc', 'GL_EXT_texture_object', 'GL_EXT_blend_func_separate', 'GL_EXT_texture_c
ube_map', 'GL_ARB_occlusion_query', 'GL_ARB_transpose_matrix', 'GL_ARB_texture_b
order_clamp', 'GL_EXT_fog_coord', 'GL_ARB_texture_cube_map', 'GL_ARB_half_float_
vertex', 'GL_EXT_blend_equation_separate', 'GL_ARB_point_parameters', 'GL_EXT_te
xture_env_dot3', 'GL_ATI_texture_env_combine3', 'GL_EXT_multi_draw_arrays', 'GL_
ARB_shader_texture_lod', 'GL_EXT_texture_env_combine', 'GL_ARB_vertex_program',
'GL_ARB_texture_env_dot3', 'GL_EXT_bgra', 'GL_SGIS_texture_edge_clamp', 'GL_ATI_
fragment_shader', 'GL_ARB_vertex_array_object', 'GL_ARB_texture_env_combine', 'G
L_ARB_vertex_buffer_object', 'GL_ARB_map_buffer_range', 'GL_EXT_shadow_funcs', '
GL_EXT_separate_specular_color', 'GL_WIN_swap_hint', 'GL_EXT_texture_env_add', '
GL_EXT_packed_depth_stencil', 'GL_EXT_texture_mirror_clamp', 'GL_ARB_point_sprit
e', 'GL_EXT_framebuffer_object', 'GL_ARB_vertex_shader', 'GL_ARB_half_float_pixe
l', 'GL_KTX_buffer_region', 'GL_ARB_draw_buffers', 'GL_ARB_fragment_program_shad
ow', 'GL_EXT_texture_sRGB', 'GL_NV_texgen_reflection', 'GL_EXT_compiled_vertex_a
rray', 'GL_EXT_point_parameters', 'GL_EXT_texture_swizzle', 'GL_ARB_texture_floa
t', 'GL_ARB_fragment_shader', 'GL_ATI_texture_float', 'GL_ARB_fragment_program',
 'GL_ARB_shader_objects', 'GL_ARB_framebuffer_object', 'GL_ARB_shading_language_
100', 'GL_NV_blend_square', 'GL_ATI_envmap_bumpmap', 'GL_ARB_texture_non_power_o
f_two', 'GL_EXT_texgen_reflection', 'GL_EXT_texture_lod_bias', 'GL_ARB_shadow_am
bient', 'GL_ATI_meminfo', 'GL_EXT_abgr', 'GL_ARB_texture_rectangle', 'GL_ARB_mul
tisample', 'GL_SGIS_generate_mipmap', 'GL_EXT_texture_filter_anisotropic', 'GL_E
XT_blend_minmax', 'GL_EXT_framebuffer_blit', 'GL_ARB_texture_env_crossbar', 'GL_
SGIS_texture_lod', 'WGL_EXT_swap_control', 'GL_EXT_texture_rectangle', 'GL_EXT_s
ubtexture', 'GL_EXT_texture_edge_clamp', 'GL_ARB_window_pos', 'GL_ARB_shadow', '
GL_ARB_texture_mirrored_repeat', 'GL_EXT_gpu_program_parameters', 'GL_EXT_copy_t
exture', 'GL_EXT_framebuffer_multisample', 'GL_EXT_texture3D', 'GL_ARB_multitext
ure', 'GL_EXT_secondary_color', 'GL_ATI_draw_buffers', 'GL_EXT_draw_range_elemen
ts', 'GL_ARB_texture_env_add', 'GL_AMD_performance_monitor', 'GL_EXT_packed_pixe
ls', 'GL_EXT_rescale_normal', 'GL_ARB_pixel_buffer_object'])
Aug 29, 2009
Project Member #15 txprog
(No comment was entered for this change.)
Labels: Milestone-1.0
Aug 31, 2009
Project Member #16 txprog
This have been resolved by adding an SOFTWARE of FBO.
Check the configuration variable [graphics] fbo=software, or use the pymt-config
software in tools to change on software mode.
Status: Fixed