Search Unity

Can't open a project

Discussion in 'Linux' started by unknown69, May 19, 2017.

  1. unknown69

    unknown69

    Joined:
    May 19, 2017
    Posts:
    1
    Ubuntu 12.04
    Can't open a new created project.

    Here is a log


    mono profile = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/Mono/lib/mono/2.0'
    Initialize mono
    Mono path[0] = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/Managed'
    Mono path[1] = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/Mono/lib/mono/2.0'
    Mono path[2] = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/UnityScript'
    Mono path[3] = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/Mono/lib/mono/2.0'
    Mono config path = '/home/unknown/unity-editor-5.6.1xf1Linux/Editor/Data/Mono/etc'
    Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56686
    Desktop is 1920 x 1080 @ 60 Hz

    LICENSE SYSTEM [2017519 11:52:27] No start/stop license dates set

    LICENSE SYSTEM [2017519 11:52:27] Next license update check is after 2017-05-20T09:37:02


    COMMAND LINE ARGUMENTS:
    /home/unknown/unity-editor-5.6.1xf1Linux/Editor/Unity
    [0519/115227:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
    ATTENTION: default value of option force_s3tc_enable overridden by environment.
    [0519/115227:ERROR:renderer_main.cc(227)] Running without renderer sandbox
    [0519/115227:ERROR:gpu_process_transport_factory.cc(402)] Failed to establish GPU channel.
    IsTimeToCheckForNewEditor: Update time 0 current 1495187578
    /home/unknown/unity_projects/test_game
    UpdateMenuTitleForLanguage: 10
    Loading GUID <-> Path mappings...0.000095 seconds
    Loading Asset Database...0.006335 seconds
    Audio: FMOD Profiler initialized on port 54900
    AudioManager: Using PulseAudio: Default Output Device
    AssetDatabase consistency checks...0.527837 seconds
    Initialize engine version: 5.6.1xf1Linux (6a86e542cf5c)
    Assertion failed on expression: 'context.IsValid()'
    (Filename: /home/builduser/buildslave/unity/build/Runtime/GfxDevice/opengl/GLContext.cpp Line: 70)

    Receiving unhandled NULL exception
    #0 0x007fff36b1b0c0 in _L_unlock_16
    #1 0x007fff36b1b660 in GfxDeviceGLES::~GfxDeviceGLES()
    #2 0x007fff36b1b690 in CreateGLESGfxDevice(GfxDeviceRenderer)
    #3 0x007fff36b1b6f0 in CreateClientGfxDevice(GfxDeviceRenderer, GfxCreateDeviceFlags)
    #4 0x007fff36b1b780 in InitializeGfxDevice(GfxCreateDeviceFlags)
    #5 0x007fff36b1b8b0 in InitializeEngineGraphics(bool)
    #6 0x007fff36b1b8d0 in Application::InitializeProject()
    #7 0x007fff36b1cc80 in InitializeUnity(void*)
    #8 0x007fff36b1cd30 in g_source_get_time
    #9 0x007fff36b1cd50 in g_main_context_dispatch
    #10 0x007fff36b1cdd0 in g_main_context_dispatch
    #11 0x007fff36b1ce20 in g_main_loop_run
    #12 0x007fff36b1ce40 in gtk_main
    #13 0x007fff36b1cea0 in main
    #14 0x007fff36b1d7b0 in __libc_start_main
    #15 0x007fff36b1d870 in _start
    Launching bug reporter


    Any ideas?
     
  2. ollerich

    ollerich

    Joined:
    Sep 9, 2017
    Posts:
    3
    I am having the same issue. This is from Editor.log:

    Desktop is 1366 x 768 @ 60 Hz
    PackageManager Server::Start -- Port 34784 was selected

    LICENSE SYSTEM [201799 20:12:52] No start/stop license dates set

    LICENSE SYSTEM [201799 20:12:52] Next license update check is after 2017-09-10T18:07:02


    COMMAND LINE ARGUMENTS:
    /opt/Unity/Editor/Unity
    [0909/201252:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
    ATTENTION: default value of option force_s3tc_enable overridden by environment.
    [0909/201252:ERROR:renderer_main.cc(227)] Running without renderer sandbox
    [CEF] Uncaught TypeError: Cannot read property 'addEventListener' of undefined in https://api.unity.com/v1/oauth2/aut...ode_modules/unity-editor-home/dist/index.html
    Error loading launcher://unity//home/oliver/.local/share/unity3d/Packages/node_modules/unity-editor-home/dist/index.html?code=VINnmuYoLkns8YmWkizAew006f&locale=en&session_state=e95348466250d87b7d5da503bf4b79219707521cd79c0da1968474145a15ee98.IAq8ePHLyRKVWdenoJxyXA006f


    (Filename: /home/builduser/buildslave/unity/build/Editor/Platform/Interface/NativeWebViewWindow.cpp Line: 51)


    LICENSE SYSTEM [201799 20:12:56] No start/stop license dates set

    LICENSE SYSTEM [201799 20:12:56] Next license update check is after 2017-09-10T18:07:02

    IsTimeToCheckForNewEditor: Update time 0 current 1504980779
    /home/oliver/New Unity Project
    UpdateMenuTitleForLanguage: 10
    Loading GUID <-> Path mappings...0.000063 seconds
    Loading Asset Database...0.005295 seconds
    Audio: FMOD Profiler initialized on port 54900
    AudioManager: Using PulseAudio: Default Output Device
    AssetDatabase consistency checks...0.466682 seconds
    Refreshing native plugins compatible for Editor in 0.01 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.

    ----- PackageManager resolved 3 packages:
    * Package : com.unity.ads@0.0.16
    (location: /home/oliver/.config/unity3d/cache/packages/packages.unity.com/com.unity.ads@0.0.16)
    * Package : com.unity.analytics@0.0.17
    (location: /home/oliver/.config/unity3d/cache/packages/packages.unity.com/com.unity.analytics@0.0.17)
    * Package : com.unity.purchasing@0.0.18
    (location: /home/oliver/.config/unity3d/cache/packages/packages.unity.com/com.unity.purchasing@0.0.18)
    ----- End PackageManager resolve
    Initialize engine version: 2017.2.0xb6Linux (2b451a7da81d)
    Assertion failed on expression: 'context.IsValid()'

    (Filename: /home/builduser/buildslave/unity/build/Runtime/GfxDevice/opengl/GLContext.cpp Line: 70)

    events.js:160
    throw er; // Unhandled 'error' event
    ^

    Error: write EPIPE
    at exports._errnoException (util.js:1022:11)
    at WriteWrap.afterWrite (net.js:801:14)
     
  3. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    In both cases, it looks like Unity has failed to create a valid OpenGL context.
    Do your environments support OpenGL 3.2 core profile?
     
  4. ollerich

    ollerich

    Joined:
    Sep 9, 2017
    Posts:
    3
    Not
    Not at the moment:

    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile
    OpenGL version string: 2.1 Mesa 10.1.3
    OpenGL shading language version string: 1.20
    OpenGL extensions:

    Would it make sense to downgrade Unity to a pre-5.5 version? The release note for 5.5 says "This means that your development environment must support OpenGL core profile 3.2 or later." .. I wonder if that's much more feasible than maybe upgrading my Linux Distro (I am using Ubuntu 14.04) just to find out that it still doesn't work.
     
  5. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    It's up to you, of course.
    I can say that the mesa drivers that come with Ubuntu 16.04+ do support OpenGL 3.3 core profile or later, provided that it believes the hardware is sufficient.
    One consideration is that we're no longer updating Linux editor releases prior to 2017.0...
     
  6. ollerich

    ollerich

    Joined:
    Sep 9, 2017
    Posts:
    3
    I made the upgrade to 16.04, but my GPU just doesn't support OpenGL > 2.1, if I understand the new, extended output from glxinfo right:

    Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) Ironlake Mobile (0x46)
    Version: 17.0.7
    Accelerated: yes
    Video memory: 1536MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0

    But I could finally start the Unity Editor setting LIBGL_ALWAYS_SOFTWARE=1 before running it. Must have to do with the newer Mesa installation since 16.04. I'll see how far I can get with software rendering.