Can't run Oolite on Ubuntu 12.04

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: another_commander, winston, Getafix

Post Reply
Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Can't run Oolite on Ubuntu 12.04

Post by Chrisfs »

Hello,
I am trying to install oolite on my Ubuntu 12.04 machine.
I have tried their latest version 1.75 and 1.76.1 as well.
When I try to run from the icon, nothing happens,
from the command line, I get:
chris@chris-home:~$ oolite -nosplash

It seems that your operating system does not have a valid timezone name
configured and is using an abbreviation instead. By comparing timezone
file data it is has been possible to find the actual timezone used, but
doing that is a slow process.

You can avoid slowness of this time zone detecting approach
by setting the environment variable TZ='posix/America/Los_Angeles'
Or You can override the timezone name by setting the 'Local Time Zone'
NSUserDefault via the 'defaults' command line utility, a Preferences
application, or some other utility.
eg "defaults write NSGlobalDomain 'Local Time Zone' 'posix/America/Los_Angeles'"

oolite: src/SDL/MyOpenGLView.m:220: -[MyOpenGLView init]: Assertion `surface != ((void *)0)' failed.
Aborted (core dumped)

Erk. It looks like Oolite died with an error. When making an error
report, please copy + paste the log above into the report.

I get the timezone part with either version, and with -nosplash as well.
I used defaults and also used
dpkg-reconfigure tzdata
to set my tz to Los_Angeles
(which,since I live near San Francisco, I did with great reluctance)
and the problem still occurs.

The lines seem only to occur on 1.75

Are there any ideas as to what might be going wrong and how to fix it ?

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: Can't run Oolite on Ubuntu 12.04

Post by cim »

1.76.1 is quite old - it might be worth trying installing 1.77.1 instead, as it might be something already fixed.

If that doesn't work, what does ~/.Oolite/Logs/Latest.log contain immediately after the crash? It looks like it's failing to set up the graphics, which might be a driver problem.

Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Re: Can't run Oolite on Ubuntu 12.04

Post by Chrisfs »

Thanks for the response.
1.77.1 still gave the same time zone data message.
Latest.log says
Opening log for Oolite version 1.77.1 (x86-32) under Linux 3.0.0-17-generic at 2014-04-02 22:08:44 -0700.
1 processor detected.
Build options: spoken messages, mass/fuel pricing.

Note that the contents of the log file can be adjusted by editing logcontrol.plist.

22:08:45.984 [dataCache.rebuild]: Data cache version (1.76) does not match Oolite version (1.77.1), rebuilding cache.
22:08:46.773 [display.mode.list.native]: X11 native resolution detected: 1280 x 1024
22:08:46.775 [display.mode.error]: ***** ERROR: Could not create display surface: Couldn't find matching GLX visual

Closing log at 2014-04-02 22:08:46 -0700.
Happens with -nosplash as well.

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: Can't run Oolite on Ubuntu 12.04

Post by cim »

Okay, definitely graphics setup then. What graphics card and driver do you have? We've had a very similar report recently that was from a bug in the open source Nvidia driver - but the closed source driver worked fine on the same system.

What's the output of glxinfo? (long, whatever it is - if you copy/paste into [ code] tags it'll be more readable.)

User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1132
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Can't run Oolite on Ubuntu 12.04

Post by CommRLock78 »

As cim said, there is another thread recently with a similar issue. More information would be quite helpful though; particularly your graphics setup ;).

Run inxi -G, glxinfo and lshw -C video, and post the results. Thanks!
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'

Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Re: Can't run Oolite on Ubuntu 12.04

Post by Chrisfs »

Ok,
I have had trouble with the video drivers in the past, but nothing recently (except this)
The output kinda looks like a video problem....

Code: Select all

chris@chris-home:~$ inxi -G
inxi: command not found
chris@chris-home:~$ glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

chris@chris-home:~$ sudo lshw -C video
[sudo] password for chris: 
  *-display UNCLAIMED     
       description: VGA compatible controller
       product: NV44A [GeForce 6200]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 32 bits
       clock: 66MHz
       capabilities: pm agp agp-3.0 vga_controller cap_list
       configuration: latency=64 maxlatency=1 mingnt=5
       resources: memory:fc000000-fcffffff memory:c0000000-dfffffff memory:fd000000-fdffffff memory:fea00000-fea1ffff

User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1132
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Can't run Oolite on Ubuntu 12.04

Post by CommRLock78 »

Definitely a graphics problem. Here's what I get running glxinfo on my system. This is about a third of the total output. Do you have the non-free Nvidia driver, or the open source Nvidia driver installed?

Code: Select all

glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: ATI
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_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
client glx vendor string: ATI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_swap_control, 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_NV_swap_group, 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_pbuffer, 
    GLX_SGIX_swap_barrier, GLX_SGIX_swap_group, GLX_SGIX_visual_select_group, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_framebuffer_sRGB, 
    GLX_ARB_fbconfig_float, GLX_AMD_gpu_association
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_swap_control, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_MESA_swap_control, GLX_NV_swap_group, 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_pbuffer, 
    GLX_SGIX_swap_barrier, GLX_SGIX_swap_group, GLX_SGIX_visual_select_group, 
    GLX_EXT_texture_from_pixmap
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 5400 Series             
OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012
OpenGL shading language version string: 4.20
OpenGL extensions:
    GL_AMDX_debug_output, GL_AMDX_vertex_shader_tessellator, 
    GL_AMD_conservative_depth, GL_AMD_debug_output, 
    GL_AMD_depth_clamp_separate, GL_AMD_draw_buffers_blend, 
    GL_AMD_multi_draw_indirect, GL_AMD_name_gen_delete, 
    GL_AMD_performance_monitor, GL_AMD_pinned_memory, 
    GL_AMD_query_buffer_object, GL_AMD_sample_positions, 
    GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_stencil_export, 
    GL_AMD_shader_trace, GL_AMD_texture_cube_map_array, 
    GL_AMD_texture_texture4, GL_AMD_transform_feedback3_lines_triangles, 
    GL_AMD_vertex_shader_layer, GL_AMD_vertex_shader_tessellator, 
    GL_AMD_vertex_shader_viewport_index, GL_ARB_ES2_compatibility, 
    GL_ARB_base_instance, GL_ARB_blend_func_extended, 
    GL_ARB_color_buffer_float, GL_ARB_compressed_texture_pixel_storage, 
    GL_ARB_conservative_depth, GL_ARB_copy_buffer, GL_ARB_depth_buffer_float, 
    GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_draw_buffers, 
    GL_ARB_draw_buffers_blend, GL_ARB_draw_elements_base_vertex, 
    GL_ARB_draw_indirect, GL_ARB_draw_instanced, 
    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_gpu_shader5, GL_ARB_gpu_shader_fp64, 
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, GL_ARB_imaging, 
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query, 
    GL_ARB_map_buffer_alignment, 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_sample_shading, GL_ARB_sampler_objects, 
    GL_ARB_seamless_cube_map, GL_ARB_separate_shader_objects........
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'

User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2560
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Can't run Oolite on Ubuntu 12.04

Post by Norby »

Check your /etc/X11/xorg.conf, I think you should a Driver "nvidia" line in the "Device" section and a Load "glx" line in the "Module" section.
You can try also a new nvidia driver.

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Can't run Oolite on Ubuntu 12.04

Post by Diziet Sma »

So far as the timezone error goes, see this thread for a solution:
http://aegidian.org/bb/viewtopic.php?f=9&t=16318
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

Chrisfs
---- E L I T E ----
---- E L I T E ----
Posts: 433
Joined: Sun Sep 20, 2009 10:24 am
Location: California

Re: Can't run Oolite on Ubuntu 12.04

Post by Chrisfs »

Trying to install a new version of Nvidia drivers gave me a bunch of errors, culminated to an error stating that it couldn't find the linux headers. This seems more invovled that I first expected and may take a bit of time to fix.

User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1132
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Can't run Oolite on Ubuntu 12.04

Post by CommRLock78 »

Chrisfs wrote:Trying to install a new version of Nvidia drivers gave me a bunch of errors, culminated to an error stating that it couldn't find the linux headers. This seems more invovled that I first expected and may take a bit of time to fix.
It's pretty annoying when kernel headers are missing - a real PITA.

I've got an idea. That kernel you're running appears to be old anyway, so updating the kernel should bring those new headers in.
Open up a terminal and type

Code: Select all

$ sudo aptitude upgrade --full-resolver
Running that should bring the system to about kernel 3.2.x.

You may have to install aptitude first if it isn't already (IIRC Ubuntu doesn't 'ship' with it anymore):

Code: Select all

$ sudo apt-get install aptitude
.

Once you've done all that, you can try and install the nVidia driver (though you'll want to reboot the computer after the kernel upgrade ;)). You may want to try and roll back a version of the driver as well. Sometimes the latest isn't necessarily the greatest.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'

Post Reply