Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Standalone build crashing on load when using Legacy OpenGL2 in 5.3 on OSX

Discussion in 'macOS' started by mr-sambarlow, Dec 17, 2015.

  1. mr-sambarlow

    mr-sambarlow

    Joined:
    Nov 11, 2014
    Posts:
    36
    Hi!

    I'm trying to build my game for OSX, but despite working in editor whenever I try to make a standalone build it crashes on load. The build is using the Legacy OpenGL2 shader rather than the new OpenGLCore. The standalone works fine *if* I build using auto-renderer.

    This crash is happening even if I'm building and launching into a basic scene with a cube in it.

    If I make a brand new clean project and build for OpenGL2, the crash doesn't happen. So clearly there's something about my project that is causing this. What could I be doing that is causing this crash to occur -- what gets dragged into an otherwise empty scene from my project? Where should I look?

    Here's the crash log:

    Initialize engine version: 5.3.0f4 (2524e04062b4)
    GfxDevice: creating device client; threaded=1
    OpenGL:
    Version: OpenGL 2.1 [2.1 INTEL-10.12.13]
    Renderer: Intel HD Graphics 5000 OpenGL Engine
    Vendor: Intel Inc.
    VRAM: 1536 MB
    Extensions: GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays 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_seamless_cube_map GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_compression_rgtc 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_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_blend 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_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float 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_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias GL_EXT_texture_rectangle GL_EXT_texture_shared_exponent GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_APPLE_aux_depth_stencil GL_APPLE_client_storage GL_APPLE_element_array GL_APPLE_fence GL_APPLE_float_pixels GL_APPLE_flush_buffer_range GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_packed_pixels GL_APPLE_pixel_buffer GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_specular_vector GL_APPLE_texture_range GL_APPLE_transform_hint GL_APPLE_vertex_array_object GL_APPLE_vertex_array_range GL_APPLE_vertex_point_size GL_APPLE_vertex_program_evaluators GL_APPLE_ycbcr_422 GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_IBM_rasterpos_clip GL_NV_blend_square GL_NV_conditional_render GL_NV_depth_clamp GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_barrier GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
    GL: Detected 1536 MB VRAM
    Receiving unhandled NULL exception
    Obtained 34 stack frames.
    #0 0x007fff989b2103 in objc_release
    #1 0x00000101067730 in GfxDisplayGL_Init(dynamic_array<GfxDisplayGL, 8ul>&)
    #2 0x000001010a3c87 in CreateGLGfxDevice()
    #3 0x000001009eb720 in CreateRealGfxDevice(GfxDeviceRenderer, bool)
    #4 0x000001010ea719 in GfxDeviceWorker::Startup(GfxDeviceRenderer, bool, bool)
    #5 0x000001010dbb83 in CreateClientGfxDevice(GfxDeviceRenderer, unsigned int)
    #6 0x000001009ebe50 in InitializeGfxDevice(unsigned int)
    #7 0x00000100ac0e63 in InitializeEngineGraphics(bool)
    #8 0x00000100aa4402 in PlayerInitEngineGraphics(bool)
    #9 0x00000101068172 in SetupUnityPlayer(bool, int, char**)
    #10 0x0000010106b29d in -[PlayerAppDelegate applicationDidFinishLaunching:]
    #11 0x007fff8c48770c in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
    #12 0x007fff8c48767f in ___CFXRegistrationPost_block_invoke
    #13 0x007fff8c486d47 in _CFXRegistrationPost
    #14 0x007fff8c486ab2 in ___CFXNotificationPost_block_invoke
    #15 0x007fff8c480d42 in -[_CFXNotificationRegistrar find:eek:bject:eek:bserver:enumerator:]
    #16 0x007fff8c36f145 in _CFXNotificationPost
    #17 0x007fff9bc37921 in -[NSNotificationCenter postNotificationName:eek:bject:userInfo:]
    #18 0x007fff9f02365d in -[NSApplication _postDidFinishNotification]
    #19 0x007fff9f0233d3 in -[NSApplication _sendFinishLaunchingNotification]
    #20 0x007fff9f02088d in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
    #21 0x007fff9f020337 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
    #22 0x007fff9bc69861 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
    #23 0x007fff9bc696db in _NSAppleEventManagerGenericHandler
    #24 0x007fff9993a231 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*)
    #25 0x007fff99939fb8 in dispatchEventAndSendReply(AEDesc const*, AEDesc*)
    #26 0x007fff99939ed4 in aeProcessAppleEvent
    #27 0x007fff9a8dfaf9 in AEProcessAppleEvent
    #28 0x007fff9f01a588 in _DPSNextEvent
    #29 0x007fff9f3e6943 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    #30 0x007fff9f00ffc8 in -[NSApplication run]
    #31 0x007fff9ef92520 in NSApplicationMain
    #32 0x00000101068fc7 in PlayerMain(int, char const**)
    #33 0x00000100001e34 in start
    Stacktrace:


    Native stacktrace:

    0 libsystem_kernel.dylib 0x00007fff93024002 __pthread_kill + 10
    1 libsystem_c.dylib 0x00007fff98d6b6e7 abort + 129
    2 HerStoryTest 0x0000000100b054e4 _Z12HandleSignaliP9__siginfoPv + 36
    3 libmono.0.dylib 0x0000000101caf6f9 mono_chain_signal + 75
    4 libmono.0.dylib 0x0000000101bf4491 mono_sigsegv_signal_handler + 210
    5 libsystem_platform.dylib 0x00007fffa0730eaa _sigtramp + 26
    6 HerStoryTest 0x00000001016c46d1 gDeviceIndex + 16865
    7 HerStoryTest 0x0000000101067730 _Z17GfxDisplayGL_InitR13dynamic_arrayI12GfxDisplayGLLm8EE + 240
    8 HerStoryTest 0x00000001010a3c87 _Z17CreateGLGfxDevicev + 135
    9 HerStoryTest 0x00000001009eb720 _Z19CreateRealGfxDevice17GfxDeviceRendererb + 48
    10 HerStoryTest 0x00000001010ea719 _ZN15GfxDeviceWorker7StartupE17GfxDeviceRendererbb + 25
    11 HerStoryTest 0x00000001010dbb83 _Z21CreateClientGfxDevice17GfxDeviceRendererj + 163
    12 HerStoryTest 0x00000001009ebe50 _Z19InitializeGfxDevicej + 320
    13 HerStoryTest 0x0000000100ac0e63 _Z24InitializeEngineGraphicsb + 67
    14 HerStoryTest 0x0000000100aa4402 _Z24PlayerInitEngineGraphicsb + 18
    15 HerStoryTest 0x0000000101068172 _Z16SetupUnityPlayerbiPPc + 722
    16 HerStoryTest 0x000000010106b29d -[PlayerAppDelegate applicationDidFinishLaunching:] + 765
    17 CoreFoundation 0x00007fff8c48770c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    18 CoreFoundation 0x00007fff8c48767f ___CFXRegistrationPost_block_invoke + 63
    19 CoreFoundation 0x00007fff8c486d47 _CFXRegistrationPost + 407
    20 CoreFoundation 0x00007fff8c486ab2 ___CFXNotificationPost_block_invoke + 50
    21 CoreFoundation 0x00007fff8c480d42 -[_CFXNotificationRegistrar find:eek:bject:eek:bserver:enumerator:] + 1922
    22 CoreFoundation 0x00007fff8c36f145 _CFXNotificationPost + 693
    23 Foundation 0x00007fff9bc37921 -[NSNotificationCenter postNotificationName:eek:bject:userInfo:] + 66
    24 AppKit 0x00007fff9f02365d -[NSApplication _postDidFinishNotification] + 297
    25 AppKit 0x00007fff9f0233d3 -[NSApplication _sendFinishLaunchingNotification] + 203
    26 AppKit 0x00007fff9f02088d -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 557
    27 AppKit 0x00007fff9f020337 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 250
    28 Foundation 0x00007fff9bc69861 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
    29 Foundation 0x00007fff9bc696db _NSAppleEventManagerGenericHandler + 102
    30 AE 0x00007fff9993a231 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 531
    31 AE 0x00007fff99939fb8 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 31
    32 AE 0x00007fff99939ed4 aeProcessAppleEvent + 288
    33 HIToolbox 0x00007fff9a8dfaf9 AEProcessAppleEvent + 55
    34 AppKit 0x00007fff9f01a588 _DPSNextEvent + 2245
    35 AppKit 0x00007fff9f3e6943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
    36 AppKit 0x00007fff9f00ffc8 -[NSApplication run] + 682
    37 AppKit 0x00007fff9ef92520 NSApplicationMain + 1176
    38 HerStoryTest 0x0000000101068fc7 _Z10PlayerMainiPPKc + 631
    39 HerStoryTest 0x0000000100001e34 start + 52

    Debug info from gdb:


    =================================================================
    Got a SIGABRT while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

     
  2. KEMBL

    KEMBL

    Joined:
    Apr 16, 2009
    Posts:
    181
    Try to set up graphics API like on my screen.
     

    Attached Files: