ayoub05 / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Ubuntu 10.10 Segmentation fault #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install from PPA or build/install from Mercurial 
2.run ./stuntrally 
3. Segmentation fault

What is the expected output? What do you see instead?

venn@venn-M61PME-S2P:/media/storage/linuxgamecast/video/stuntrally/build$ 
./stuntrally
INFO: Home directory: /home/venn
INFO: Config defaults directory: 
/media/storage/linuxgamecast/video/stuntrally/config
INFO: User config directory: /home/venn/.config/stuntrally
INFO: Data directory: /media/storage/linuxgamecast/video/stuntrally/data
INFO: User data directory: /home/venn/.local/share/games/stuntrally
INFO: Cache directory: /home/venn/.cache/stuntrally
INFO: Log directory: /home/venn/.config/stuntrally
INFO: Starting VDrift-Ogre: 2010-05-01, O/S: Unix-like
INFO: 0 joysticks found.
INFO: Loading car controls from: /home/venn/.config/stuntrally/controls.cfg
INFO: Sound initialization information:
INFO: Obtained audio device:
      Frequency: 44100
      Format: 32784
      Bits per sample: 16
      Channels: 2
      Silence: 0
      Samples: 2048
      Size: 8192
      Sound initialization successful
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
DDS codec registering
FreeImage version: 3.14.1
This program uses FreeImage, a free, open source image library supporting all 
common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: 
bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm
,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,
jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos
,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti
,drf,dsc,ptx,cap,iiq,rwz
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/lib/OGRE/RenderSystem_GL
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_ParticleFX
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_CgProgramManager
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.7.2 (Cthugha)
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/fonts' of type 'FileSystem' 
to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/gui' of type 'FileSystem' 
to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/hud' of type 'FileSystem' 
to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/compositor/bloom' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/compositor/hdr' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/compositor/motionblur' of 
type 'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/compositor' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/materials' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/skys' of type 'FileSystem' 
to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/terrain' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/trees' of type 'FileSystem' 
to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/particles' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/tracks/_previews' of type 
'FileSystem' to resource group 'General'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/cars/_previews' of type 
'FileSystem' to resource group 'General'
Creating resource group Loading
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/loading' of type 
'FileSystem' to resource group 'Loading'
Added resource location 
'/media/storage/linuxgamecast/video/stuntrally/data/hud/Loading.zip' of type 
'Zip' to resource group 'Loading'
CPU Identifier & Features
-------------------------
 *   CPU ID: AuthenticAMD: AMD Athlon(tm) X2 240 Processor
 *      SSE: yes
 *     SSE2: yes
 *     SSE3: yes
 *      MMX: yes
 *   MMXEXT: yes
 *    3DNOW: yes
 * 3DNOWEXT: yes
 *     CMOV: yes
 *      TSC: yes
 *      FPU: yes
 *      PRO: yes
 *       HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::_createRenderWindow "Stunt Rally", 1280x720 windowed  
miscParams: FSAA=0 title=Stunt Rally vsync=false 
GLXWindow::create used FBConfigID = 117
GL_VERSION = 3.3.0 NVIDIA 270.29
GL_VENDOR = NVIDIA Corporation
GL_RENDERER = GeForce 9500 GT/PCI/SSE2/3DNOW!
GL_EXTENSIONS = GL_ARB_blend_func_extended 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_ES2_compatibility 
GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions 
GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader 
GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 
GL_ARB_get_program_binary GL_ARB_half_float_pixel GL_ARB_half_float_vertex 
GL_ARB_imaging GL_ARB_instanced_arrays GL_ARB_map_buffer_range 
GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query 
GL_ARB_occlusion_query2 GL_ARB_pixel_buffer_object GL_ARB_point_parameters 
GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_robustness 
GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_separate_shader_objects 
GL_ARB_shader_bit_encoding GL_ARB_shader_objects GL_ARB_shading_language_100 
GL_ARB_shading_language_include GL_ARB_shadow GL_ARB_sync 
GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object 
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_mirrored_repeat GL_ARB_texture_multisample 
GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg 
GL_ARB_texture_rgb10_a2ui GL_ARB_texture_swizzle GL_ARB_timer_query 
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_vertex_type_2_10_10_10_rev GL_ARB_viewport_array 
GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float 
GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr 
GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color 
GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax 
GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader 
GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 
GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord 
GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample 
GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_object 
GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters 
GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil 
GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object 
GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal 
GL_EXT_secondary_color GL_EXT_separate_shader_objects 
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_buffer_object GL_EXT_texture_compression_dxt1 
GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc 
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_format_BGRA8888 
GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias 
GL_EXT_texture_mirror_clamp GL_EXT_texture_object 
GL_EXT_texture_shared_exponent GL_EXT_texture_sRGB GL_EXT_texture_swizzle 
GL_EXT_texture_type_2_10_10_10_REV GL_EXT_timer_query GL_EXT_vertex_array 
GL_EXT_vertex_array_bgra GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat 
GL_KTX_buffer_region GL_NV_alpha_test GL_NV_blend_minmax GL_NV_blend_square 
GL_NV_complex_primitives GL_NV_conditional_render GL_NV_copy_depth_to_color 
GL_NV_copy_image GL_NV_depth_buffer_float GL_NV_depth_clamp 
GL_NV_explicit_multisample GL_NV_fbo_color_attachments GL_NV_fence 
GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragdepth GL_NV_fragment_program 
GL_NV_fragment_program_option GL_NV_fragment_program2 
GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 
GL_NV_gpu_program4 GL_NV_half_float GL_NV_light_max_exponent 
GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query 
GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object 
GL_NV_parameter_buffer_object2 GL_NV_pixel_data_range GL_NV_point_sprite 
GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 
GL_NV_shader_buffer_load GL_NV_texgen_reflection GL_NV_texture_barrier 
GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 
GL_NV_texture_expand_normal GL_NV_texture_lod_clamp GL_NV_texture_multisample 
GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 
GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_vdpau_interop 
GL_NV_vertex_array_range GL_NV_vertex_array_range2 
GL_NV_vertex_buffer_unified_memory GL_NV_vertex_program GL_NV_vertex_program1_1 
GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 
GL_NVX_conditional_render GL_NVX_gpu_memory_info GL_OES_depth24 GL_OES_depth32 
GL_OES_depth_texture GL_OES_element_index_uint GL_OES_fbo_render_mipmap 
GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil 
GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D 
GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float 
GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object 
GL_OES_vertex_half_float GL_SGIS_generate_mipmap GL_SGIS_texture_lod 
GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum 
Supported 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_swap_control GLX_EXT_texture_from_pixmap GLX_ARB_create_context 
GLX_ARB_create_context_profile GLX_EXT_create_context_es2_profile 
GLX_ARB_create_context_robustness GLX_ARB_multisample GLX_NV_float_buffer 
GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB GLX_ARB_get_proc_address 
***************************
*** GL Renderer Started ***
***************************
Segmentation fault

What version are you using? On what operating system?
Latest Mercurial / Ubuntu 10.10

Please pick any relevant labels like Component or OpSys related to problem.
* If game crashed please inculde files: _game.cfg, _log.txt, _ogre.log,
_ogreset.cfg right after crash, found in the same folder where exe.

Please provide any additional information below.

Original issue reported on code.google.com by anotherr...@gmail.com on 3 Apr 2011 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
Could you provide a backtrace with gdb from the mercurial build? Like this:

gdb ./stuntrally
run
(Wait for crash)
thread apply all bt
(Press enter to view the backtrace)

Original comment by scrawl...@gmail.com on 3 Apr 2011 at 3:51

GoogleCodeExporter commented 9 years ago

Original comment by scrawl...@gmail.com on 3 Apr 2011 at 3:54

GoogleCodeExporter commented 9 years ago
No problem. 

Program received signal SIGSEGV, Segmentation fault.
0x00aab495 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) () from 
/usr/lib/libstdc++.so.6
(gdb) thread apply all bt

Thread 4 (Thread 0xa8325b70 (LWP 4072)):
#0  0x0012e416 in __kernel_vsyscall ()
#1  0x00c0bdf6 in poll () from /lib/libc.so.6
#2  0x012b2285 in ?? () from /usr/lib/libasound.so.2
#3  0x012b245b in snd_pcm_wait () from /usr/lib/libasound.so.2
#4  0x012b2540 in ?? () from /usr/lib/libasound.so.2
#5  0x012f6daa in ?? () from /usr/lib/libasound.so.2
#6  0x012acd84 in snd_pcm_writei () from /usr/lib/libasound.so.2
#7  0x0099ce93 in ?? () from /usr/lib/libSDL-1.2.so.0
#8  0x0096ebb5 in ?? () from /usr/lib/libSDL-1.2.so.0
#9  0x0097695e in ?? () from /usr/lib/libSDL-1.2.so.0
#10 0x009becbd in ?? () from /usr/lib/libSDL-1.2.so.0
#11 0x009f8cc9 in start_thread () from /lib/libpthread.so.0
#12 0x00c1a69e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa8b26b70 (LWP 4071)):
#0  0x0012e416 in __kernel_vsyscall ()
#1  0x00c0bdf6 in poll () from /lib/libc.so.6
#2  0x013d7562 in ?? () from /usr/lib/libpulse.so.0
#3  0x013c3ab9 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#4  0x013c5a73 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#5  0x013c5b44 in pa_mainloop_run () from /usr/lib/libpulse.so.0
---Type <return> to continue, or q <return> to quit---
#6  0x013d7303 in ?? () from /usr/lib/libpulse.so.0
#7  0x01432bd5 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#8  0x009f8cc9 in start_thread () from /lib/libpthread.so.0
#9  0x00c1a69e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7fd3710 (LWP 4067)):
#0  0x00aab495 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) () from 
/usr/lib/libstdc++.so.6
#1  0x01733fa9 in 
Ogre::GLRenderSystem::initialiseFromRenderSystemCapabilities(Ogre::RenderSystemC
apabilities*, Ogre::RenderTarget*) ()
   from /usr/lib/OGRE/RenderSystem_GL.so
#2  0x01737a80 in 
Ogre::GLRenderSystem::_createRenderWindow(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned 
int, bool, std::map<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
Ogre::STLAllocator<std::pair<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> 
> > const*) () from /usr/lib/OGRE/RenderSystem_GL.so
#3  0x004779e3 in Ogre::Root::createRenderWindow(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned 
int, bool---Type <return> to continue, or q <return> to quit---
, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> >, Ogre::STLAllocator<std::pair<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) () from 
/usr/local/lib/libOgreMain.so.1.7.2
#4  0x081ce193 in BaseApp::configure (this=0x837d770)
    at /media/storage/linuxgamecast/video/stuntrally/source/ogre/BaseApp_Create.cpp:289
#5  0x081ce48d in BaseApp::setup (this=0x837d770)
    at /media/storage/linuxgamecast/video/stuntrally/source/ogre/BaseApp_Create.cpp:316
#6  0x081d0958 in BaseApp::Run (this=0x837d770, showDialolg=true)
    at /media/storage/linuxgamecast/video/stuntrally/source/ogre/BaseApp_Create.cpp:197
#7  0x081b230f in main (argc=1, argv=0xbffff424)
    at /media/storage/linuxgamecast/video/stuntrally/source/ogre/main.cpp:82

Original comment by anotherr...@gmail.com on 3 Apr 2011 at 4:08

GoogleCodeExporter commented 9 years ago
It appears you have compiled Ogre from source (there is a reference to 
/usr/local/lib/libOgreMain.so.1.7.2) and then the ppa package installed new 
ogre libs to /usr/lib and they don't play well together.

Try either 1) removing the stuntrally package (which should also remove ogre 
packages, but make sure it does) and then running your self-compiled version 
(you might need to change the plugin path in config/plugins_*.cfg), or 2) 
removing the local Ogre installation and testing the package (or recompiling 
Mercurial with dev packages from the ogre ppa).

Original comment by tapiovie...@gmail.com on 3 Apr 2011 at 4:28

GoogleCodeExporter commented 9 years ago
To me it seems the problem is you have OGRE self-compiled (/usr/local) but it 
uses the render system from PPA (/usr/lib/OGRE).

Try this:

open plugins.nix.cfg and set PluginFolder to /usr/local/lib/OGRE !

Original comment by scrawl...@gmail.com on 3 Apr 2011 at 4:35

GoogleCodeExporter commented 9 years ago
I forgot about my Ogre source install. Let me mix that critter and have another 
go. Will post the results. 

Original comment by anotherr...@gmail.com on 3 Apr 2011 at 4:55

GoogleCodeExporter commented 9 years ago
Indeed, it was the source install of Ogre causing the problem. Removed that 
install and compiled /w/ the dev packages from the PPA. 

Thanks for the help, 
Venn

Original comment by anotherr...@gmail.com on 3 Apr 2011 at 5:55

GoogleCodeExporter commented 9 years ago
Closing.

Original comment by tapiovie...@gmail.com on 3 Apr 2011 at 6:13

GoogleCodeExporter commented 9 years ago

Original comment by Cry...@gmail.com on 8 May 2011 at 1:45