Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Message
Author
Gatonegro
Space Krill
Posts: 5
Joined: Fri Feb 12, 2010 2:09 pm

Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#1 Post by Gatonegro »

I'm having the same issue, but this time in Ubuntu Karmic (9.10), on an iMac from mid 2005 (Radeon card, free drivers). I get a segmentation fault right at program launch both with revisions 3111 and 3323.

Please tell me what other information can I provide to help fix this issue.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#2 Post by Geoff the Medio »

Gatonegro wrote:I'm having the same issue, but this time in Ubuntu Karmic (9.10), on an iMac from mid 2005 (Radeon card, free drivers). I get a segmentation fault right at program launch both with revisions 3111 and 3323.

Please tell me what other information can I provide to help fix this issue.
The OpenGL version that your computer supports would be helpful. Apparently "glxinfo" can tell you this, from what I've heard. If the version is less than 1.5, it might not be possible to run FreeOrion on that system.

Gatonegro
Space Krill
Posts: 5
Joined: Fri Feb 12, 2010 2:09 pm

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#3 Post by Gatonegro »

Well, I have just done a glxinfo dump, and it says that:

Code: Select all

 
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 version: 1.2
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: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL
OpenGL version string: 1.5 Mesa 7.6
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program, 
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_occlusion_query, GL_ARB_point_parameters, 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_rectangle, GL_ARB_transpose_matrix, 
    GL_ARB_vertex_array_bgra, 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_compiled_vertex_array, GL_EXT_convolution, 
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, 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_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_two_side, 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_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_light_max_exponent, GL_NV_texture_rectangle, 
    GL_NV_texgen_reflection, 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

8 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  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
0x65 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x66 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x67 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x68 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x69 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x5c 32 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 Ncon

8 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
----------------------------------------------------------------------
0x5d  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x5e  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x5f  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x60  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x61  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x62  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x63  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x64  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
Could it be that the GLX version is 1.2? If so, is that a matter of software or hardware? Can I fix it somehow?

Thanks for your help, by the way.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#4 Post by Geoff the Medio »

Gatonegro wrote:

Code: Select all

OpenGL version string: 1.5 Mesa 7.6
Could it be that the GLX version is 1.2? If so, is that a matter of software or hardware? Can I fix it somehow?
GLX is different from the OpenGL version. The relevant part is the version string that starts with 1.5, which should be enough to get the game started, although it might cause problems if certain options aren't disabled when trying to start a game, but you're not at the point yet. So that's probably not the cause of your crashes.

Since you're on Ubuntu, and there have been a bunch of crashes on Ubuntu, it might be this bug: http://sourceforge.net/tracker/?func=de ... tid=544942

What does your segmentation fault say? If it's that problem, then I don't know of anything that can fix it now.

Gatonegro
Space Krill
Posts: 5
Joined: Fri Feb 12, 2010 2:09 pm

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#5 Post by Gatonegro »

Hello again. The segfault isn't quite the same as in the bug you point to. Mine outputs, with FreeOrion 0.3.13 rev3111:

Code: Select all

./freeorion 
Following into my basedir
CWD: /home/denis/xogos/freeorion/application
python2.5 found. Using it.
Segmentation fault
And with FreeOrion 0.3.13 rev3323:

Code: Select all

./freeorion 
Following into my basedir
CWD: /home/denis/xogos/freeorion_test/application
python2.5 found. Using it.
BuildDesignatorWnd::BuildSelector::Refresh()
Segmentation fault
Update: These are the contents of freeorion.log for each revision.

rev3323:

Code: Select all

cat freeorion3323.log 
2010-02-20 19:46:34,589 DEBUG Client : OpenAL initialized. Version 1.1Renderer OpenAL SoftVendor OpenAL Community
Extensions: AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic

2010-02-20 19:46:34,948 DEBUG Client : BuildDesignatorWnd::BuildSelector::PopulateList() : Adding Buildings 
2010-02-20 19:46:35,343 DEBUG Client : BuildDesignatorWnd::BuildSelector::PopulateList() : Adding ship designs
2010-02-20 19:46:35,343 DEBUG Client : Selecting Row
2010-02-20 19:46:35,343 DEBUG Client : Done
2010-02-20 19:46:35,414 DEBUG Client : Limited FPS to 60
2010-02-20 19:46:35,539 DEBUG Client : OpenGL version string: 1.5 Mesa 7.6
2010-02-20 19:46:35,540 DEBUG Client : ...extracted version number: 1.5
2010-02-20 19:46:35,544 DEBUG Client : (HumanClientFSM) IntroMenu
2010-02-20 19:46:35,544 DEBUG Client : (HumanClientFSM) IntroMenuIdle
rev3111:

Code: Select all

cat freeorion3111.log 
2010-02-20 19:48:45,908 DEBUG Client : OpenAL initialized. Version 1.1Renderer OpenAL SoftVendor OpenAL Community
Extensions: AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic

2010-02-20 19:48:46,374 DEBUG Client : Limited FPS to 60
2010-02-20 19:48:46,502 DEBUG Client : (HumanClientFSM) IntroMenu
2010-02-20 19:48:46,503 DEBUG Client : (HumanClientFSM) IntroMenuIdle

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#6 Post by Geoff the Medio »

To clarify, it's crashing immediately when you start the program, or only after you try to start a game?

If you're able to run 3323, then what 3111 doesn't look like it's important for this issue.

Regardless, I don't have much to go on here... It's probably some sort of library, driver or distribution incompatibility issue with OGRE... Unless you can compile yourself and add some debug output or trace through execution, I don't think I'll be able to isolate the problem.

Gatonegro
Space Krill
Posts: 5
Joined: Fri Feb 12, 2010 2:09 pm

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#7 Post by Gatonegro »

Both 3323 and 3111 segfault right after launching the program: it gets to display a black window centered in the screen, with the title of the window showing the running version of FreeOrion, and then segfaults (and the window disappears). It's perhaps a matter of two seconds or so.

I'm not able to run neither 3323 nor 3111, for the record. Both segfault in the same manner.

I could compile and add the flags you tell me to, if you tell me how. :) I've compiled software before, but I'm in no way a programmer.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#8 Post by Geoff the Medio »

Do you hear any sound before the crash? Making sure your audio drivers are up to date might help. That's really just a guess, though.

I suppose it's worth trying running "freeorion -f" to run in fullscreen... maybe that'll magically fix things? Also a shot in the dark.

Compiling FreeOrion is a bit complicated. I can't give you instructions, but others have written them on the wiki: http://freeorion.org/index.php/Compile

Gatonegro
Space Krill
Posts: 5
Joined: Fri Feb 12, 2010 2:09 pm

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#9 Post by Gatonegro »

I believe I hear some slight 'pop' from the speakers when the window pops up, but I'm not quite sure -- it could be my imagination. Also, fullscreen segfaults the same.

I'll try compilation as soon as I can.

Perpetuum_Mobile
Space Krill
Posts: 6
Joined: Wed Nov 24, 2010 5:36 am
Location: Ukraine

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#10 Post by Perpetuum_Mobile »

Confirm the same situation in debian testing (32-bit), nvidia (gf6200) graphic card -
# ./freeorion
Following into my basedir
CWD: /home/mobil/games/freeorion/application
python2.5 found. Using it.
Segmentation fault

or after python-2.5 was removed from system

# ./freeorion
Following into my basedir
CWD: /home/mobil/games/freeorion/application
libpython2.5.so.1.0 => not found
python2.5 missing. Using shipped version.
PYTHONHOME=python2.5
Segmentation fault

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#11 Post by OndrejR »

Please compile FreeOrion from svn.

Perpetuum_Mobile
Space Krill
Posts: 6
Joined: Wed Nov 24, 2010 5:36 am
Location: Ukraine

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#12 Post by Perpetuum_Mobile »

compiled the game, using manual for linux:

Code: Select all

# installed dependencies
sudo apt-get install build-essential subversion pkg-config libltdl3-dev cmake python2.6-dev libfreetype6-dev libsdl1.2-dev graphviz graphviz-dev libalut-dev libvorbis-dev libois-dev libtiff4-dev libopenal-dev libogre-dev
sudo apt-get install libboost-dev libboost1.42-all-dev --install-recommends
# downloaded sources
cd /tmp
svn co https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk freeorion
# compiled library GiGi
cd freeorion/FreeOrion/GG
cmake -DBUILD_TUTORIALS=off .
make
sudo make install
sudo ldconfig
sudo echo '/usr/local/lib' >> /etc/ld.so.conf
# installed library bullet
sudo echo 'deb http://www.cazfi.net/deb/squeeze /' >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libbullet libbullet-dev
# configured ogre3d
cd ..
cat ogre_plugins.cfg | sed s'/PluginFolder=./PluginFolder=\/usr\/lib\/OGRE/g' >> ogre_plugins.tmp && mv ogre_plugins.tmp ogre_plugins.cfg
# patched graphiz
cd ..
wget http://www.freeorion.org/forum/download/file.php?id=647&sid=2978c8c598a847a4ea9fdc17b863cd15
patch -p0 <graphviz.patch
# compiled freeorion
cd FreeOrion
cmake .
make
then launched ./freeorion and got next:
mobil% ./freeorion
zsh: segmentation fault ./freeorion
what should i do next?
maybe, my nvidia gf6200 does not support shader model 3, as had been said in compile manual in part 'Runtime Errors'?
Segmentation Fault
If after compiling everything, you run freeorion and get a segmentation fault:
$ ./freeorion
Segmentation fault
...
* You have graphic card which doesn't support shader model 3 or above(Nvidia 6600 and above have, some AMD HD series also). There are known problems with AMD drivers on Linux. In future there will be functional Gallium driver(r300g or r600g) in Mesa. These new drivers will be available probably in Ubuntu 11.04.
if so, can i compile freeorion without need of that support?

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#13 Post by OndrejR »

Please delete your config.xml from /.freeorion and try again.

I had Nvidia 6600 GT and had no problem with FreeOrion. Please post your logs. But I don't know what is difference between 6600 and 6200. Do you have proprietary drivers from Nvidia?

And post your ogre_plugins.cfg after freeorion compilation if is correct.

Perpetuum_Mobile
Space Krill
Posts: 6
Joined: Wed Nov 24, 2010 5:36 am
Location: Ukraine

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#14 Post by Perpetuum_Mobile »

ok, so:
# moved away .freeorion folder
mv ~/.freeorion ~/.freeorion_bkup
# ran freeorion
mobil% ./freeorion
zsh: segmentation fault ./freeorion
here is ~/.freeorion/ogre.log and ./ogre_plugins.cfg -
mobil% cat ./ogre_plugins.cfg
# Ogre 3D engine plugins to load

# Plugin folder
PluginFolder=/usr/lib/OGRE

# Plugins
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager
and, yes, i have proprietary drivers from nvidia
Attachments
ogre.log
(9.33 KiB) Downloaded 159 times

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation Fault / Ubuntu 9.10 / 2005 Radeon Card

#15 Post by OndrejR »

Loading Cg is not necessary
Loading library /usr/lib/OGRE/Plugin_CgProgramManager
04:31:12: Installing plugin: Cg Program Manager
04:31:12: Plugin successfully installed
and there is missing revision number. Something is wrong. You should debug. Howto is on wiki linux compile howto.

Post Reply