[SOLVED][ubuntu][2010-06-30] Segmentation Fault - ancoron - 07-23-2010
Hi *,
I just get a segfault every time I try to start the game:
Code: INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Version: exported, O/S: Unix-like
INFO: Home directory: /home/chaoslayer
INFO: Settings file: /home/chaoslayer/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Log file: /home/chaoslayer/.vdrift/log.txt
INFO: The last VDrift startup was unsuccessful.
Settings have been set to failsafe defaults.
Your original VDrift.config file was backed up to VDrift.config.backup
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 16z fullscreen=0
ERROR: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Video card information:
Vendor: Advanced Micro Devices, Inc.
Renderer: Mesa DRI R600 (RV740 94B3) 20090101 TCL DRI2
Version: 2.0 Mesa 7.9-devel
Maximum texture size: 4096
Maximum varying floats: 64
Using GLEW 1.5.2
INFO: Your video card doesn't support framebuffer objects. Disabling shaders.
Segmentation fault
I just downloaded the 2010-06-30 release sources, compiled and installed without problems and now this.
Here's a gdb backtrace:
Code: #0 0x0000000000000000 in ?? ()
#1 0x00000000005fef96 in TEXTURE::LoadCubeVerticalCross (this=0x7fffffff4660, info=..., error=...) at src/texture.cpp:281
#2 0x00000000005ff0d4 in TEXTURE::LoadCube (this=0x7fffffff4660, info=..., error=...) at src/texture.cpp:296
#3 0x0000000000600701 in TEXTURE::Load (this=0x7fffffff4660, info=..., error=...) at src/texture.cpp:518
#4 0x00000000004fe5e2 in GRAPHICS_SDLGL::Init (this=0x7fffffff4588, shaderpath=..., windowcaption=..., resx=800, resy=600, bpp=16, depthbpp=16, fullscreen=false, shaders=false, antialiasing=0,
enableshadows=false, new_shadow_distance=1, new_shadow_quality=1, reflection_type=1, static_reflectionmap_file=..., static_ambientmap_file=..., anisotropy=0, texturesize=..., lighting_quality=0,
newbloom=false, newnormalmaps=false, renderconfig=..., info_output=..., error_output=...) at src/graphics.cpp:237
#5 0x00000000004bfb85 in GAME::InitializeCoreSubsystems (this=0x7fffffff3cf0) at src/game.cpp:213
#6 0x00000000004be3b2 in GAME::Start (this=0x7fffffff3cf0, args=...) at src/game.cpp:84
#7 0x00000000005acd3b in main (argc=1, argv=0x7fffffffe2b8) at src/main.cpp:73
I'm on Kubuntu 10.04 with a custom kernel (2.6.35-rc5 with Radeon PM patches) and I'm using the very latest X from xorg-edgers PPA (and of course I use the open source driver):
Code: libgl1-mesa-dri 7.9.0+git20100722.ca3238f3-0ubuntu0sarvatt~lucid
libgl1-mesa-glx 7.9.0+git20100722.ca3238f3-0ubuntu0sarvatt~lucid
libglu1-mesa 7.9.0+git20100722.ca3238f3-0ubuntu0sarvatt~lucid
xserver-xorg 1:7.5+6ubuntu1~xorgedgers3~lucid
xserver-xorg-core 2:1.8.2+git20100705+server-1.8-branch.665aa7ce-0ubuntu0sarvatt2~lucid
xserver-xorg-video-radeon 1:6.13.99+git20100722.cd9351b0-0ubuntu0sarvatt~lucid
DRI/DRM/KMS is fine:
Code: [ 1.422097] [drm] Initialized drm 1.1.0 20060810
[ 2.176571] [drm] radeon kernel modesetting enabled.
[ 2.180630] [drm] initializing kernel modesetting (RV740 0x1002:0x94B3).
[ 2.180898] [drm] register mmio base: 0xFDFE0000
[ 2.180904] [drm] register mmio size: 65536
[ 2.181445] [drm] Clocks initialized !
[ 2.185965] [drm] Detected VRAM RAM=512M, BAR=256M
[ 2.185973] [drm] RAM width 128bits DDR
[ 2.186166] [drm] radeon: 512M of VRAM memory ready
[ 2.186170] [drm] radeon: 512M of GTT memory ready.
[ 2.186266] [drm] radeon: using MSI.
[ 2.186313] [drm] radeon: irq initialized.
[ 2.186319] [drm] GART: num cpu pages 131072, num gpu pages 131072
[ 2.187967] [drm] Loading RV730 Microcode
[ 2.241980] [drm] ring test succeeded in 1 usecs
[ 2.242076] [drm] radeon: ib pool ready.
[ 2.242133] [drm] ib test succeeded in 0 usecs
[ 2.242134] [drm] Enabling audio support
[ 2.242153] [drm] Default TV standard: NTSC
[ 2.242219] [drm] Default TV standard: NTSC
[ 2.242232] [drm] Default TV standard: NTSC
[ 2.242268] [drm] Radeon Display Connectors
[ 2.242269] [drm] Connector 0:
[ 2.242270] [drm] DVI-I
[ 2.242270] [drm] HPD2
[ 2.242272] [drm] DDC: 0x7f10 0x7f10 0x7f14 0x7f14 0x7f18 0x7f18 0x7f1c 0x7f1c
[ 2.242273] [drm] Encoders:
[ 2.242274] [drm] CRT2: INTERNAL_KLDSCP_DAC2
[ 2.242275] [drm] DFP2: INTERNAL_UNIPHY1
[ 2.242276] [drm] Connector 1:
[ 2.242276] [drm] DIN
[ 2.242277] [drm] Encoders:
[ 2.242278] [drm] TV1: INTERNAL_KLDSCP_DAC2
[ 2.242279] [drm] Connector 2:
[ 2.242280] [drm] DVI-I
[ 2.242280] [drm] HPD1
[ 2.242282] [drm] DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 0x7e2c
[ 2.242285] [drm] Encoders:
[ 2.242285] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[ 2.242285] [drm] DFP1: INTERNAL_UNIPHY
[ 2.297821] [drm] Internal thermal controller with fan control
[ 2.297854] [drm] radeon: power management initialized
[ 2.402480] [drm] fb mappable at 0xD0141000
[ 2.402482] [drm] vram apper at 0xD0000000
[ 2.402483] [drm] size 16384000
[ 2.402484] [drm] fb depth is 24
[ 2.402485] [drm] pitch is 10240
[ 2.402520] fb0: radeondrmfb frame buffer device
[ 2.402521] drm: registered panic notifier
[ 2.402638] [drm] Initialized radeon 2.5.0 20080528 for 0000:01:00.0 on minor 0
^^ noticed the framebuffer? It's here:
Code: crw-rw---- 1 root video 29, 0 2010-07-23 11:26 /dev/fb0
...and GLX is happy too:
Code: $ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
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_pbuffer,
GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and 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_copy_sub_buffer,
GLX_MESA_swap_control, 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_INTEL_swap_event
GLX version: 1.4
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_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_INTEL_swap_event
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV740 94B3) 20090101 TCL DRI2
OpenGL version string: 2.0 Mesa 7.9-devel
OpenGL shading language version string: 1.10
OpenGL extensions:
GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_draw_buffers,
GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_provoking_vertex,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_shadow_ambient, 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_MESAX_texture_float, GL_ARB_texture_mirrored_repeat,
GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra,
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_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, GL_EXT_fog_coord,
GL_EXT_gpu_program_parameters, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels,
GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap,
GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
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_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, GL_APPLE_packed_pixels,
GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3,
GL_ATI_texture_mirror_once, GL_ATI_separate_stencil,
GL_IBM_multimode_draw_arrays, 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_depth_clamp, GL_NV_light_max_exponent,
GL_NV_packed_depth_stencil, GL_NV_texgen_reflection,
GL_NV_texture_rectangle, GL_NV_vertex_program, 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_SUN_multi_draw_arrays
Other OpenGL applications like glxgears, various OpenGL screensavers and others are working like a charm.
Thanx for any help.
- NaN - 07-23-2010
Change glGenerateMipmap(GL_TEXTURE_CUBE_MAP) to glGenerateMipmapEXT(GL_TEXTURE_CUBE_MAP) in texture.cpp. Report if it fixes the issue.
- ancoron - 07-24-2010
Ah, that fixes it.
Thanx for the hint. :-)
- Jane - 02-26-2011
where is this blasted texture.cpp file so i can edit it! Please get back soon
- Timo 6 - 02-26-2011
its in ~/vdrift/src
- Jane - 02-26-2011
I installed on ubuntu 10.10 64 bit with the playdeb package.
is this why i have nothing in my /usr/share/games/vdrift ?
how would I fix it?
your ~ was unintelligible to me
- joevenzon - 02-26-2011
You will need to recompile VDrift to make the fix. The texture.cpp is a source file. Information about compiling from source:
http://wiki.vdrift.net/Compiling_on_Linux
- Jane - 02-26-2011
I changed the texture.cpp file, built and it still does not work!! I get this:
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: 2011-02-26-full, Version: , O/S: Unix-like
INFO: Home directory: /home/jerome
INFO: Settings file: /home/jerome/.vdrift/VDrift.config
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Log file: /home/jerome/.vdrift/log.txt
INFO: The last VDrift startup was unsuccessful.
Settings have been set to failsafe defaults.
Your original VDrift.config file was backed up to VDrift.config.backup
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 16z fullscreen=0
INFO: Video card information:
Vendor: NVIDIA Corporation
Renderer: GeForce 8600 GT/PCI/SSE2
Version: 2.1.2 NVIDIA 173.14.28
Maximum texture size: 8192
Maximum varying floats: 60
Using GLEW 1.5.2
INFO: Your video card doesn't support framebuffer objects. Disabling shaders.
ERROR: Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
ERROR: Error loading non-shader render configuration file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
vdrift: src/graphics.cpp:697: void GRAPHICS_SDLGL:isableShaders(const std:tring&, std::ostream&): Assertion `0' failed.
SIGABRT detected, releasing the mouse
Aborted
- NaN - 02-26-2011
Checking out the data: http://wiki.vdrift.net/Getting_the_development_version
Make sure that vdrift data is found in /usr/local/share/games/vdrift/data
- Jane - 02-26-2011
i created dir /usr/local/share/games/vdrift/data and moved the data there from where it was.
then the game started BUT as soon as I tried to enter a practice game, it quit and gave me this:
`INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: 2011-02-26-full, Version: , O/S: Unix-like
INFO: Home directory: /home/jerome
INFO: Settings file: /home/jerome/.vdrift/VDrift.config
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Log file: /home/jerome/.vdrift/log.txt
INFO: SDL initialization successful
INFO: SDL video query was successful
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 24z fullscreen=0
INFO: Video card information:
Vendor: NVIDIA Corporation
Renderer: GeForce 8600 GT/PCI/SSE2
Version: 2.1.2 NVIDIA 173.14.28
Maximum texture size: 8192
Maximum varying floats: 60
Using GLEW 1.5.2
INFO: Your video card doesn't support framebuffer objects. Disabling shaders.
INFO: Maximum anisotropy: 16
INFO: 0 joysticks found.
INFO: Loading car controls from: /home/jerome/.vdrift/controls.config
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 1024
Size: 4096
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully
INFO: Loading track from path: /usr/local/share/games/vdrift/data/tracks/paulricard88
INFO: Can't find surfaces configfile: /usr/local/share/games/vdrift/data/tracks/paulricard88/surfaces.txt
INFO: No Surfaces File. Continuing with standard surfaces
INFO: Track timing sectors: 2
INFO: Track object list has 16 params per object, expected 17, this is fine, continuing
INFO: Collision objects: 1
INFO: Car loading was successful: XS
vdrift: include/cartelemetry.h:63: void CARTELEMETRY::Update(double): Assertion `file' failed.
SIGABRT detected, releasing the mouse
Aborted
this is getting redundant
- joevenzon - 02-26-2011
Try running vdrift from a directory that you can write to. For example, do "cd /home/jerome" before running vdrift.
|