Jump to content

Shank 2 Fedora 17, crash on launch


pholklore
 Share

Recommended Posts

Trying out update2 of Shank 2 on a Fedora 17 laptop, I get:

$ ./shank2-bin

ERROR: Missing required OpenGL extensions.

ERROR: Missing required OpenGL extensions.

ERROR: Missing required OpenGL extensions.

ERROR: Missing required OpenGL extensions.

Segmentation fault

I get the same with both the 32 and the 64-bit binaries.

This is on a ThinkPad T520, i7-2620M @ 2.70GHz, with an intel integrated graphics. lspci says:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Which extensions could be missing? Of course, I've no clue whether the segfault is related.

Link to comment
Share on other sites

  • Developer

The latest update should now log OpenGL extensions.

Can we ask you to please download it and send in the <username>/Library/Klei/Shank2/rendering.log file?

It will hopefully help us to track down what the issue is.

Thanks!

Link to comment
Share on other sites

Thanks for the update. Here it is:

$ cat ~/.klei/shank2/rendering.log

[14:22.50] (0x7f72b4faa880) Trying to set video mode 1024x768 fullscreen

[14:22.51] (0x7f72b4faa880) mode set success

[14:22.51] (0x7f72b4faa880) OpenGL vendor: "Tungsten Graphics, Inc"

[14:22.51] (0x7f72b4faa880) OpenGL renderer: "Mesa DRI IntelĀ® Sandybridge Mobile "

[14:22.51] (0x7f72b4faa880) OpenGL version: "2.1 Mesa 8.0.4"

[14:22.51] (0x7f72b4faa880) OpenGL shading language version: "1.30"

[14:22.51] (0x7f72b4faa880) OpenGL extensions: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IN

[14:22.51] (0x7f72b4faa880) EXT_texture_compression_s3tc required

[14:22.51] (0x7f72b4faa880) Trying to set video mode 1920x1080 fullscreen

[14:22.54] (0x7f72b4faa880) mode set success

[14:22.54] (0x7f72b4faa880) OpenGL vendor: "Tungsten Graphics, Inc"

[14:22.54] (0x7f72b4faa880) OpenGL renderer: "Mesa DRI IntelĀ® Sandybridge Mobile "

[14:22.54] (0x7f72b4faa880) OpenGL version: "2.1 Mesa 8.0.4"

[14:22.54] (0x7f72b4faa880) OpenGL shading language version: "1.30"

[14:22.54] (0x7f72b4faa880) OpenGL extensions: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IN

[14:22.54] (0x7f72b4faa880) EXT_texture_compression_s3tc required

[14:22.54] (0x7f72b4faa880) Trying to set video mode 320x180 windowed

[14:22.56] (0x7f72b4faa880) mode set success

[14:22.56] (0x7f72b4faa880) OpenGL vendor: "Tungsten Graphics, Inc"

[14:22.56] (0x7f72b4faa880) OpenGL renderer: "Mesa DRI IntelĀ® Sandybridge Mobile "

[14:22.56] (0x7f72b4faa880) OpenGL version: "2.1 Mesa 8.0.4"

[14:22.56] (0x7f72b4faa880) OpenGL shading language version: "1.30"

[14:22.56] (0x7f72b4faa880) OpenGL extensions: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IN

[14:22.56] (0x7f72b4faa880) EXT_texture_compression_s3tc required

BTW, I have an external monitor (and I was hoping to play the game on it), and after all those mode switches, and the games crashes, I end up with the external monitor disabled, which makes me suspect that even if the game loaded, it'd be running on the wrong monitor... Anyway, one issue at a time.

Here's the gdb backtrace when the game segfaults:

...

Program received signal SIGSEGV, Segmentation fault.

0x00000000007007a0 in ?? ()

(gdb) bt

#0 0x00000000007007a0 in ?? ()

#1 0x00000000006bbf3b in ?? ()

#2 0x00000000006bc252 in ?? ()

#3 0x0000003d25e21735 in __libc_start_main (main=0x6bc220, argc=1, ubp_av=0x7fffffffdc68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,

stack_end=0x7fffffffdc58) at libc-start.c:226

#4 0x0000000000409a59 in ?? ()

#5 0x00007fffffffdc58 in ?? ()

#6 0x000000000000001c in ?? ()

#7 0x0000000000000001 in ?? ()

#8 0x00007fffffffe020 in ?? ()

#9 0x0000000000000000 in ?? ()

From a non-stripped binary, you should be able to figure out what lines 0x7007a0, 0x6bbf3b, 0x6bc252 are

(w/ addr2line, or "info line" in gdb).

Link to comment
Share on other sites

  • Developer

Hmm...it looks as if your drivers might need to be updated.

There is a "EXT_texture_compression_s3tc required" error that is being reported in the start-up.

From what I understand, this video driver is not always included in the libraries. It may be that you need to install the 32-bit drivers for your card.

Link to comment
Share on other sites

Okay, got it. I needed to install the s3tc libraries, which are not installed or distributed by default by Fedora, because the s3tc compression method is patented... I'm actually a bit shocked to learn this, having bought the game through humble bundle, and in the process having contributed to the EFF, to ... hopefully get rid of software patents.

Anyway, after installing them the game does now launch. However, it's not completely successful.

I went to configure the resolution, and the screen went black (after selecting the desired resolution). Waiting the 15 seconds doesn't fix it.

Only way out is to switch to another VT and kill the process. Even if I don't change the resolution,

sometime the screen goes all black on launch, other times it won't. So it seems there's something wrong

with mode/resolution switching.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...