Bug 18489

Summary: system hangs with opengl applications with intel graphics
Product: xorg Reporter: benderamp <benderamp>
Component: Driver/intelAssignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: eich, kent.liu, libv, mat, quanxian.wang, sndirsch
Version: 7.3 (2007.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log log file
none
desktop corrupted with newer driver
none
updated Xorg.0.log none

Description benderamp 2008-11-11 14:00:40 UTC
Hi,

I have hp pavilion dv6000 laptop with 965 GM graphics running OpenSUSE 11 64 bit.

When I run opengl some application, it completely hangs the system after some time
working with it. 

This happens with blender - I can work about 5-10 minutes with it, then the system hangs. But the easiest way to reproduce it is to run VLC video player, set output type to "opengl" in it and to start some video - the system would hang almost at the same moment when try to move the video window from one part of the screen to another.

The symptom is always the same - the system becomes heavy for a second (mouse
moves with yanks), then the screen blinks once (becomes black for a second then
shows desktop again) and the system completely hangs at this moment (mouse does
not move, ctrl+alt+backspace, ctrl+alt+f1, ctrl+alt+del, CapsLock etc keys do
not work). This happens all the times.

I use kde4.1.3, and had desktop effects enabled for some time ago - they worked
just fine all the time. Desktop effects were switched off when follow steps to
reproduce the problem.

Parts from xorg.conf:
Section "Device"
  BoardName    "965 GM"
  BusID        "0:2:0" 
  Driver       "intel" 
  Identifier   "Device[0]"
  Option       "monitor-LVDS" "Monitor[0]"
  Screen       0                          
  VendorName   "Intel"                    
EndSection 


Similar issue is reported here https://bugs.freedesktop.org/show_bug.cgi?id=11847

but currently it is marked as fixed and for those, and it is suggested to open new bug reports for those, who still has similar problem.

This issue also looks much like the one reported in Ubuntu here:
https://bugs.launchpad.net/ubuntu/hardy/+source/mesa/+bug/120834
Comment 1 Kent Liu 2008-11-11 17:09:03 UTC
Did you try OpenSuSE 11.1 Beta 4?
Comment 2 haihao 2008-11-11 18:29:10 UTC
  Could you provide more information, such as Xorg.0.log, the output of glxinfo etc.
Comment 3 benderamp 2008-11-12 01:29:11 UTC
Created attachment 20242 [details]
Xorg.0.log log file
Comment 4 benderamp 2008-11-12 01:29:58 UTC
I can say the exact way to reproduce this issue - blender would work just fine until its window is maximized. But if I just restore its window it is still alive, but when I move it to another part of the screen, the whole thing hangs at the same moment (same steps to hang with VLC).

I did not try OpenSUSE 11.1 beta. Probably I would try to update X.org from the factory repository if this would work.

Attach /var/log/Xorg.0.log after the system restarted after the hang.
Comment 5 benderamp 2008-11-12 01:32:38 UTC
> glxinfo                                                                                                               
name of display: :0.0                                                                                                                           
display: :0  screen: 0                                                                                                                          
direct rendering: Yes                                                                                                                           
server glx vendor string: SGI                                                                                                                   
server glx version string: 1.2                                                                                                                  
server glx extensions:                                                                                                                          
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,                                                                   
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,                                                                       
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,                                                                       
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group                                                                       
client glx vendor string: SGI                                                                                                                   
client glx version string: 1.4                                                                                                                  
client glx extensions:                                                                                                                          
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                                                                      
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,                                                                       
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,                                                                                            
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,                                                                       
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,                                                                        
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                                                                                  
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap                                                                                   
GLX extensions:                                                                                                                                 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                                                                      
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,                                                                       
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,                                                                      
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,                                                                        
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group                                                                       
OpenGL vendor string: Tungsten Graphics, Inc                                                                                                    
OpenGL renderer string: Mesa DRI Intel(R) 965GM 4.1.3002                                                                                        
OpenGL version string: 1.4 Mesa 7.0.3                                                                                                           
OpenGL extensions:                                                                                                                              
    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,                                                                              
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters,                                                                           
    GL_ARB_shadow, 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_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_window_pos, 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_clip_volume_hint, GL_EXT_cull_vertex,                                                                         
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,                                                                      
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_histogram,                                                                             
    GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters,                                                                    
    GL_EXT_polygon_offset, 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_texture, GL_EXT_texture3D,                                                                                        
    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_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,                                                                       
    GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage,                                                                                  
    GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate,                                                                                     
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,                                                                                      
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,                                                                    
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,                                                                           
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_OES_read_format,                                                                       
    GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap,                                                                           
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,                                                                                   
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SUN_multi_draw_arrays                                                                        
glu version: 1.3                                                                                                                                
glu extensions:                                                                                                                                 
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess                                                                                        

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x28 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2b 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2d 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2e 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2f 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x31 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x32 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x57 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon
Comment 6 Stefan Dirsch 2008-11-12 01:51:14 UTC
(In reply to comment #1)
> Did you try OpenSuSE 11.1 Beta 4?

Oh no. This is still openSUSE 11.0. I suggest to upgrade at least the following packages from our buildservice via

  http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.0/

first:

- libdrm
- Mesa
- xorg-x11-server
- xorg-x11-driver-video
- xorg-x11-driver-input
- x11-input-synaptics

so you end up with

- xorg-server 1.5.2
- xf86-video-intel 2.5.0
- libdrm 2.4.1
- Mesa 7.2_intel-2008-q3_46921a5 (Intel-2008-Q3-RC5)


Comment 7 benderamp 2008-11-12 03:07:06 UTC
Created attachment 20252 [details]
desktop corrupted with newer  driver

Updated from XOrg/openSUSE_11.0/ repository, the system does not hang anymore (neither with blender, nor with vlc - great!), but there is still minor problem shown on the attached screenshot - the desktop is currupted when the opengl application is shown in the restored window (if the window is maximized no problems).
Comment 8 benderamp 2008-11-12 03:11:40 UTC
updated

> glxinfo
name of display: :0.0            
display: :0  screen: 0           
direct rendering: Yes            
server glx vendor string: SGI    
server glx version string: 1.2   
server glx extensions:           
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,     
    GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample,          
    GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group                           
client glx vendor string: SGI                                                 
client glx version string: 1.4                                                
client glx extensions:                                                        
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,    
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,     
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,                          
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,     
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,      
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap                 
GLX extensions:                                                               
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,    
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,        
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control,     
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,              
    GLX_SGIX_visual_select_group                                              
OpenGL vendor string: Tungsten Graphics, Inc                                  
OpenGL renderer string: Mesa DRI Intel(R) 965GM 20080716                      
OpenGL version string: 1.4 Mesa 7.2                                           
OpenGL extensions:                                                            
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,       
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,                   
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters,         
    GL_ARB_point_sprite, GL_ARB_shader_objects, GL_ARB_shading_language_100,  
    GL_ARB_shadow, 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_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_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_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, 
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,         
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,                     
    GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,      
    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_texture, GL_EXT_texture3D,                       
    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_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,      
    GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1,                     
    GL_APPLE_client_storage, GL_APPLE_packed_pixels,
    GL_ATI_blend_equation_separate, GL_ATI_separate_stencil,
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
    GL_NV_point_sprite, GL_NV_texture_rectangle, GL_NV_texgen_reflection,
    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_SGIX_depth_texture,
    GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x56 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
Comment 9 benderamp 2008-11-12 03:13:11 UTC
Created attachment 20254 [details]
updated Xorg.0.log

Xorg log with updated drivers
Comment 10 haihao 2008-11-12 18:47:12 UTC
Update  your DRM module, if this (In reply to comment #7)
> Created an attachment (id=20252) [details]
> desktop corrupted with newer  driver
> 
> Updated from XOrg/openSUSE_11.0/ repository, the system does not hang anymore
> (neither with blender, nor with vlc - great!), but there is still minor problem
> shown on the attached screenshot - the desktop is currupted when the opengl
> application is shown in the restored window (if the window is maximized no
> problems).
> 
Maybe you need to update your DRM module.  If this issue still exists, please file a new bug .

The original issue has gone, so I marked this bug as fixed.


Comment 11 benderamp 2008-11-13 07:29:38 UTC
> Maybe you need to update your DRM module.  
I have libdrm 2.4.1 - could not find any newer for OpenSUSE 11


>If this issue still exists, please file a new bug . The original issue has gone, so I marked this bug as fixed.

Ok, created new bug here https://bugs.freedesktop.org/show_bug.cgi?id=18517

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.