![]() |
|
Segmentation fault on svn 2858 - ubuntu 10.04 - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: Segmentation fault on svn 2858 - ubuntu 10.04 (/showthread.php?tid=1343) Pages:
1
2
|
- skankerror - 09-22-2010 This was for GLEW_EXT in texture.cpp For GLEW_ARB here's gdb output : Code: ERROR: OpenGL error "invalid operation" during: 0- NaN - 09-22-2010 Lets check SetupScene: http://www.pasteall.org/15776 - skankerror - 09-22-2010 Code: OpenGL error "invalid operation" during: after setup- NaN - 09-22-2010 It happens during shadow camera setup graphics.cpp line 804-820. Do you mind to insert opengl error checks there to see which gl call is causing problems. You could also try to comment out the shadow camera setup loop. Shadows need shaders anyway. - skankerror - 09-22-2010 Thanks for help NaN. After commenting out camera setup loop game is working (very slow with a lot of ERROR: OpenGL error "invalid operation" during: render finish). I don't have time to go further now, but as soon as possible I'll insert some opengl error checks, I think I understand how it works. - skankerror - 09-23-2010 Code: // create cameras for shadow passesHere's where I inserted some opengl errors checks, and here's output : OpenGL error "invalid operation" during: 8 OpenGL error "invalid operation" during: 8 OpenGL error "invalid operation" during: after setup ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish ERROR: OpenGL error "invalid operation" during: render finish OpenGL error "invalid operation" during: 8 OpenGL error "invalid operation" during: 8 OpenGL error "invalid operation" during: after setup ... I hope this can help. - NaN - 09-24-2010 The interesting part is: Code: glGetFloatv( GL_PROJECTION_MATRIX, mp );- joevenzon - 09-24-2010 NaN Wrote:It could be that we are trying to access texture units beyond GL_MAX_TEXTURE_UNITS. Good call! That's got to be it. There's no reason to be doing the shadow set up with shaders off, so I added code to not do that bit in R2862. See if that fixes it for you. - skankerror - 09-25-2010 My glxinfo : name of display: :0.0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corporation server glx version string: 1.4 server glx 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 client glx vendor string: NVIDIA Corporation client glx version string: 1.4 client glx 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 version: 1.3 GLX 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 OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce4 MX 440 with AGP8X/AGP/SSE2 OpenGL version string: 1.5.8 NVIDIA 96.43.18 OpenGL 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_S3_s3tc, GL_EXT_texture_env_add, 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_Cg_shader, 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_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_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SGIS_texture_lod, GL_SUN_slice_accum 48 GLX Visuals 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 0 4 24 8 16 16 16 16 0 0 None 0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x24 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x25 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x26 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x27 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x28 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x29 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x2a 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x2b 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x2c 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x2d 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x2e 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x2f 24 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x30 24 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x31 24 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x32 24 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x33 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x34 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x35 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x36 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x37 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x38 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x39 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x3a 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x3b 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x3c 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x3d 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x3e 24 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x3f 24 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x40 24 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x41 24 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x23 32 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x42 32 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x43 32 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x44 32 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x45 32 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x46 32 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x47 32 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x48 32 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x49 32 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x4a 32 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x4b 32 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x4c 32 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x4d 32 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x4e 32 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x4f 32 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x50 32 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 55 GLXFBConfigs: 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 ---------------------------------------------------------------------- 0x51 0 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x52 0 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x53 0 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x54 0 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x55 0 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x56 0 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x57 0 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x58 0 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x59 0 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x5a 0 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x5b 0 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x5c 0 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x5d 0 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x5e 0 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x5f 0 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x60 0 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x61 0 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x62 0 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x63 0 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x64 0 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x65 0 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x66 0 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x67 0 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x68 0 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x69 0 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x6a 0 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x6b 0 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x6c 0 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x6d 0 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x6e 0 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x6f 0 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x70 0 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x71 0 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x72 0 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x73 0 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None 0x74 0 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None 0x75 0 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x76 0 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x77 0 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None 0x78 0 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None 0x79 0 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x7a 0 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x7b 0 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None 0x7c 0 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None 0x7d 0 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x7e 0 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x7f 0 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None 0x80 0 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None 0x81 0 sg 0 16 0 r y . 5 6 5 0 4 16 0 16 16 16 16 0 0 None 0x82 0 sg 0 16 0 r . . 5 6 5 0 4 16 0 16 16 16 16 0 0 None 0x83 0 sg 0 16 0 r y . 5 6 5 0 4 0 0 16 16 16 16 0 0 None 0x84 0 sg 0 16 0 r . . 5 6 5 0 4 0 0 16 16 16 16 0 0 None 0x85 0 sg 0 0 0 r . . 0 0 0 0 4 16 0 16 16 16 16 0 0 None 0x86 0 sg 0 0 0 r . . 0 0 0 0 4 24 0 16 16 16 16 0 0 None 0x87 0 sg 0 0 0 r . . 0 0 0 0 4 24 8 16 16 16 16 0 0 None In R2862 I have a seg fault too. By replacing GL_EXT_framebuffer_object by GLEW_EXT_framebuffer_object in texture.cpp, game is working. I inserted this in graphics.cpp : Code: // go through and extract the clip matrix, storing it in a texture matrixBut the only output remains : ERROR: OpenGL error "invalid operation" during: render finish
- NaN - 09-25-2010 @joe RENDER_INPUT_SCENE::Render is using PushShadowMatrices/PopShadowMatrices I guess it needs a shadows enabled bit too. @skankerror Can you look for PushShadowMatrices()/PopShadowMatrices() calls and comment them out. - skankerror - 09-26-2010 PushShadowMatrices()/PopShadowMatrices() calls commented out : No more openGL error (with GLEW_EXT and GLEW_ARB). Original texture.cpp still causes seg fault. - joevenzon - 09-28-2010 NaN Wrote:@joe Done, R2864. |