Search Unity

Bug Since 5.2, any Linux build crashes on startup

Discussion in 'Linux' started by any_user, Nov 30, 2015.

  1. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    I'm not sure if this is is the right forum to post problems with linux export (not the editor), but I hope I can get some help here anyway.

    When I create a new empty project with 5.2.3 and run the build on Ubuntu 12.04, it crashes immediately at startup. Builds made with older versions (4.x, last I know is 5.1.3p3) work without any problem on the same machine.

    Here's the crash log:
    Code (CSharp):
    1.  
    2.  
    3. Selecting FBConfig
    4. GLX_FBCONFIG_ID=39
    5. GLX_BUFFER_SIZE=32
    6. GLX_DOUBLEBUFFER=1
    7. GLX_RED_SIZE=8
    8. GLX_GREEN_SIZE=8
    9. GLX_BLUE_SIZE=8
    10. GLX_ALPHA_SIZE=8
    11. GLX_DEPTH_SIZE=24
    12. GLX_STENCIL_SIZE=8
    13. GLX_SAMPLES_ARB=0
    14. GLX_SAMPLE_BUFFERS_ARB=0
    15. GLX_CONFIG_CAVEAT=NONE
    16.  
    17. Desktop is 1920 x 1080 @ 60 Hz
    18. Initialize engine version: Stacktrace:
    19.  
    20.  
    21. Native stacktrace:
    22.  
    23.    $GAMEPATH$/Game_Data/Mono/x86_64/libmono.so(+0x91772) [0x7f157f6ea772]
    24.    $GAMEPATH$/Game_Data/Mono/x86_64/libmono.so(+0x348e4) [0x7f157f68d8e4]
    25.    /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f1582280cb0]
    26.    /usr/lib/x86_64-linux-gnu/libX11.so.6(XQueryExtension+0x28) [0x7f1581d67ae8]
    27.    /usr/lib/x86_64-linux-gnu/libX11.so.6(XInitExtension+0x25) [0x7f1581d5bb25]
    28.    /usr/lib/x86_64-linux-gnu/libXext.so.6(XextAddDisplay+0x4b) [0x7f1580b4e09b]
    29.    /usr/lib/fglrx/libGL.so.1(+0x412f4) [0x7f15826fe2f4]
    30.    /usr/lib/fglrx/libGL.so.1(+0x421d3) [0x7f15826ff1d3]
    31.    /usr/lib/fglrx/libGL.so.1(glXSwapIntervalSGI+0xff) [0x7f15826f7eff]
    32.    $GAMEPATH$/Game.x86_64() [0x105a607]
    33.    $GAMEPATH$/Game.x86_64() [0x10570b3]
    34.    $GAMEPATH$/Game.x86_64() [0x1059c55]
    35.    $GAMEPATH$/Game.x86_64() [0x10259d3]
    36.    $GAMEPATH$/Game.x86_64() [0x47bcdd]
    37.    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f1580d7376d]
    38.    $GAMEPATH$/Game.x86_64() [0x48640d]
    39.  
    40. Debug info from gdb:
    41.  
    42. Could not attach to process.  If your uid matches the uid of the target
    43. process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
    44. again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
    45. ptrace: Operation not permitted.
    46. No threads.
    47.  
    48. =================================================================
    49. Got a SIGSEGV while executing native code. This usually indicates
    50. a fatal error in the mono runtime or one of the native libraries
    51. used by your application.
    52. =================================================================
    53.  
    54. Preloaded type GtkListStore
    55. Preloaded type GtkWindow
    56. Preloaded type GtkVBox
    57. Preloaded type GtkImage
    58. Preloaded type GtkNotebook
    59. Preloaded type GtkHBox
    60. Preloaded type GtkFrame
    61. Preloaded type GtkAlignment
    62. Preloaded type GtkTreeView
    63. Preloaded type GtkLabel
    64. Preloaded type GtkCheckButton
    65. Preloaded type GtkScrolledWindow
    66. Preloaded type GtkComboBox
    67. B_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array 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_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_snorm GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once 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_copy_buffer GL_EXT_copy_texture 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_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_histogram 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_specular_color GL_EXT_shader_image_load_store GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_bptc 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_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic 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_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_texture_mirrored_repeat GL_KHR_debug GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_copy_image GL_NV_depth_buffer_float GL_NV_explicit_multisample GL_NV_float_buffer GL_NV_half_float GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint
    68. 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 GLX_EXT_buffer_age
    69. Setting maxVSyncInterval to 4
    70. GL: Detected 699 MB VRAM
    71. AudioManager: Using PulseAudio: Default Output Device
    72. Begin MonoManager ReloadAssembly
    73. Platform assembly: $GAMEPATH$/Game_Data/Managed/UnityEngine.dll (this message is harmless)
    74. Loading $GAMEPATH$/Game_Data/Managed/UnityEngine.dll into Unity Child Domain
    75. Platform assembly: $GAMEPATH$/Game_Data/Managed/UnityEngine.UI.dll (this message is harmless)
    76. Loading $GAMEPATH$/Game_Data/Managed/UnityEngine.UI.dll into Unity Child Domain
    77. Platform assembly: $GAMEPATH$/Game_Data/Managed/UnityEngine.Networking.dll (this message is harmless)
    78. Loading $GAMEPATH$/Game_Data/Managed/UnityEngine.Networking.dll into Unity Child Domain
    79. Platform assembly: $GAMEPATH$/Game_Data/Managed/UnityEngine.Networking.dll (this message is harmless)
    80. Loading $GAMEPATH$/Game_Data/Managed/UnityEngine.Networking.dll into Unity Child Domain
    81. Platform assembly: $GAMEPATH$/Game_Data/Managed/UnityEngine.UI.dll (this message is harmless)
    82. Loading $GAMEPATH$/Game_Data/Managed/UnityEngine.UI.dll into Unity Child Domain
    83. Platform assembly: $GAMEPATH$/Game_Data/Managed/System.Core.dll (this message is harmless)
    84. - Completed reload, in  0.049 seconds
    85. Default vsync count 1
    86. requesting resize 1024 x 768
    87.  
    88. Selecting FBConfig
    89. GLX_FBCONFIG_ID=47
    90. GLX_BUFFER_SIZE=32
    91. GLX_DOUBLEBUFFER=1
    92. GLX_RED_SIZE=8
    93. GLX_GREEN_SIZE=8
    94. GLX_BLUE_SIZE=8
    95. GLX_ALPHA_SIZE=8
    96. GLX_DEPTH_SIZE=24
    97. GLX_STENCIL_SIZE=8
    98. GLX_SAMPLES_ARB=2
    99. GLX_SAMPLE_BUFFERS_ARB=1
    100. GLX_CONFIG_CAVEAT=NONE
    101.  
    102. requesting fullscreen 1024 x 768 at 0 Hz
    103. Desktop is 1920 x 1080 @ 60 Hz
    104. GLContext: failed to activate 0x4db7c30
    105. GLContext: failed to activate 0x4db7c30
    106. Using libudev for joystick management
    107.  
    108.  
    109. Importing game controller configs
    110. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowReceiver' - Pass '' has no vertex shader
    111. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowReceiver' - Setting to default shader.
    112. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowCaster' - Pass '' has no vertex shader
    113. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowCaster' - Setting to default shader.
    114. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowBlur' - Pass '' has no vertex shader
    115. WARNING: Shader Unsupported: 'Hidden/InternalSplashShadowBlur' - Setting to default shader.
    116. WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Pass '' has no vertex shader
    117. WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Setting to default shader.
    118. Changing real window size to 1024 x 768
    119. Ignoring window size change to 1024x768 : waiting for fullscreen at 1024x768
    120.  
     
  2. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    Ok, seems like the issue is Antialiasing... which is on by default. When switched on, the game crashes on startup. I remember before AA just didn't work on linux, but it also didn't crash the game.

    Is this a known issue?
     
  3. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    From looking at that, it looks like it re-initializes the graphics hardware twice, with one of the two FBConfigs having anti-aliasing working. (or at least detected) That may be the cause of the crash.

    as for being in the wrong section... this place is more for the experimental Linux build of the editor, so it technically is the wrong section. (As far as I know, you post in the general support section for issues like this, I have no idea otherwise) Still, being that a big happy Linux penguin is one of the most visible things possible, you're forgiven. :) (Hopefully... @hippocoder? Any ideas?)