Hi Robert,

I have test it with the cvs version and I have the same crash...


On 10/23/06, Robert Osfield < [EMAIL PROTECTED]> wrote:
Hi Betrand,

There is known NVidia driver bug related to extensions, there has been
plenty of discussion about it over the last six weeks and a workaround
for it checked into CVS, so try the CVS version.

It might not be the NVidia driver bug of course... but you should at
least try the CVS version to see if things are fixed.

Robert.

On 10/23/06, bertrand greslier <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>  I get fatal error on basic graphics cards
>  I have the same problem on linux and mingw targets with all gui
> (sdl,qt,producer,java).
>  I use OSG1.2 (Rev2)
>
>
>  Nvidia Geforce 4 MX400 is an example.
>  it is not a good card and it doesn't support all extentions.
>
>
>  with the osgDepthShadow example
>
>  the error messages are :
>
>  FRAGMENT glCompileShader "" FAILED
>  glLinkProgram "" FAILED
>  GraphicsContextImplementation::realize
>
>
>  it seems be a normal message because the card has bad performances.
>  but when the program is going to draw, I have a segfault in OpenThreads
> library
>
>
>  the stack trace :
>
>  #  SIGSEGV (0xb) at pc=0x478c5ecb, pid=8220, tid=1180928944
>
>  C  [libOpenThreads.so+0x3ecb]
> _ZN11OpenThreads5Mutex6unlockEv+0x15
>  C  [libosg.so+0x23adc2]
> osg::GraphicsContext::releaseContext()
>
>  C  [libosgUtil.so+0x21c1d7]
> osgUtil::RenderStage::draw(osg::State&,
> osgUtil::RenderLeaf*&)
>  C  [libosgUtil.so+0x21805a]
> osgUtil::RenderStage::draw(osg::State&,
> osgUtil::RenderLeaf*&)
>  C  [libosgUtil.so+0x22fb27]
> osgUtil::RenderStage::drawPreRenderStages(osg::State&,
> osgUtil::RenderLeaf*&)
>  C  [libCooki3d.so+0xdad5f]  osgUtil::SceneView::draw()
>  C  [libJavaMoteur.so+0x1832]
> Java_editeur_canvas_jogl_GearRenderer_display+0x42
>
>
>  if I enable INFO mode for the osg trace, I have this informations before
> segfault :
>
>  Opened DynamicLibrary osgdb_rgb.so
>  image read ok 256  256
>  CullSettings::readEnvironmentalVariables()
>  Uniform Adding parent
>  Uniform Adding parent
>  Uniform Adding parent
>  CullSettings::readEnvironmentalVariables()
>  CullSettings::readEnvironmentalVariables()
>  CullSettings::readEnvironmentalVariables()
>  Uniform Adding parent
>  Uniform Adding parent
>  Uniform Adding parent
>  Uniform Adding parent
>  Uniform Adding parent
>  OpenGL extensions supported by installed OpenGL drivers are:
>      GL_ARB_imaging
>      GL_ARB_multitexture
>      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_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
>  OpenGL extension 'GL_EXT_texture_filter_anisotropic' is
> supported.
>  OpenGL extension 'GL_EXT_texture_compression_s3tc' is
> supported.
>  OpenGL extension 'GL_ARB_shadow' is not supported.
>  OpenGL extension 'GL_ARB_shadow_ambient' is not supported.
>  OpenGL extension 'GL_APPLE_client_storage' is not supported.
>  OpenGL extension 'GL_ARB_texture_non_power_of_two' is not
> supported.
>  OpenGL extension 'GL_ARB_shader_objects' is supported.
>  OpenGL extension 'GL_ARB_vertex_shader' is supported.
>  OpenGL extension 'GL_ARB_fragment_shader' is not supported.
>  OpenGL extension 'GL_ARB_shading_language_100' is supported.
>  glVersion=1.5, isGlslSupported=NO, glslLanguageVersion=0
>
>  Compiling FRAGMENT source:
>  uniform sampler2D baseTexture;
>  uniform sampler2DShadow shadowTexture;
>  uniform vec2 ambientBias;
>  void main(void)
>  {
>      vec4 color = gl_Color * texture2D( baseTexture, gl_TexCoord[0].xy );
>      gl_FragColor = color * (ambientBias.x + shadow2DProj( shadowTexture,
> gl_TexCoord[1] ) * ambientBias.y);
>  }
>  FRAGMENT glCompileShader "" FAILED
>  Linking osg::Program "" id=1 contextID=0
>  glLinkProgram "" FAILED
>  OpenGL extension 'GL_EXT_framebuffer_object' is not supported.
>  OpenGL extension 'GL_ARB_vertex_program' is supported.
>  OpenGL extension 'GL_EXT_secondary_color' is supported.
>  OpenGL extension 'GL_EXT_fog_coord' is supported.
>  OpenGL extension 'GL_ARB_multitexture' is supported.
>  OpenGL extension 'GL_NV_occlusion_query' is not supported.
>  OpenGL extension 'GL_ARB_occlusion_query' is not supported.
>  OpenGL extension 'GL_ARB_vertex_program' is supported.
>  OpenGL extension 'GL_ARB_fragment_program' is not supported.
>  OpenGL extension 'WGL_ARB_render_texture' is not supported.
>  GraphicsContext::createNewContextID() creating contextID=0
>  GraphicsContextImplementation::realize
>  RenderStage::runCameraSetUp(State&) Context has been
> realized
>  RenderStage::runCameraSetUp(State&) Assigning texture to
> RenderStage so that it does the copy
>
>
>
>  I have exactly the same error (segfault) with the osgPrerender example
> except this three lines.
>
>  FRAGMENT glCompileShader "" FAILED
>  glLinkProgram "" FAILED
>  GraphicsContextImplementation::realize
>
>  witch doen't appear in this example.
>
>  My question is : What is the best solution to avoid a segfault in all case
> ...?
>  Thanks in advance.
>
>  Regards,
>  Bertrand.
>   www.cooki3d.org
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--
Bertrand Greslier
http://www.cooki3d.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to