Search Unity

Cannot launch Unity in Linux

Discussion in 'Editor & General Support' started by goblinknightstudios, Feb 11, 2020.

  1. goblinknightstudios

    goblinknightstudios

    Joined:
    Feb 11, 2017
    Posts:
    2
    I am trying to run the Unity editor in OpenSUSE but it conks out after the splash screen. I am launching Unity from the UnityHub AppImage.


    The error seems to stem from GTK: `(Unity:3024): Gtk-CRITICAL **: 15:49:22.741: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed`. I am searching online but haven’t found anything. Does anyone have any ideas as how to solve this? Thanks in advance.


    This the environment I am working in:


    OS: openSUSE Tumbleweed x86_64

    Host: 20AQCTO1WW ThinkPad T440s

    Kernel: 5.5.1-1-default

    Shell: bash 5.0.11

    Resolution: 1920x1080

    WM: bspwm

    CPU: Intel i7-4600U (4) @ 3.300GHz

    GPU: Intel Haswell-ULT

    GPU: NVIDIA GeForce GT 730M

    Memory: 12GB


    The following is the error log from the editor:

    ```

    [LicensingClient] ERROR Failed to connect to local IPC

    [Licensing::Module] Failed to connect to channel: LicenseClient-myuser

    [Licensing::Module] Successfully launched the LicensingClient

    [LicensingClient] Timed-out attempting to connect to the Licensing Client on pipe: LicenseClient-myuser.

    [LicensingClient] ERROR Failed to connect to local IPC

    [Licensing::Module] Failed to connect to channel: LicenseClient-myuser

    IPC channel to LicensingClient doesn't exist; falling back to Legacy licensing

    [LicensingClient] ERROR Failed to disconnect local IPC connection

    Desktop is 1920 x 1080 @ 60 Hz


    LICENSE SYSTEM [2020211 15:49:20] Next license update check is after 2020-02-12T05:50:40


    [Package Manager] Server::Start -- Port 57204 was selected


    COMMAND LINE ARGUMENTS:

    /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Unity

    -createproject

    /home/myuser/.local/share/unity3d/Asset Store-5.x/Unity Technologies/Project/creator-kit-fps.unitypackage

    -projectTemplate

    0

    -temporary

    -cloudEnvironment

    production

    -useHub

    -hubIPC

    -skipUpgradeDialogs

    -hubSessionId

    9a011c20-4c9a-11ea-ae37-7bec64ec7708

    -accessToken

    4xab0_Tecm-3Ob6qIJTZy_Fgy_OvdkPnmmGVEU_KSoU00ef

    /tmp/b3b83e2d7054a059e855d3904f92e1e0

    Using Asset Import Pipeline V2.

    Adding genesis user token Adding genesis user token [Package Manager] Done resolving packages in 1.11s seconds

    [Package Manager] Done checking package constraints in 0.02s seconds


    (Unity:3024): Gtk-CRITICAL **: 15:49:22.741: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

    [Package Manager]

    Registered 40 packages:

    Packages from [https://packages.unity.com]:

    com.unity.collab-proxy@1.2.16 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.collab-proxy@1.2.16)

    com.unity.ide.rider@1.1.4 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.ide.rider@1.1.4)

    com.unity.ide.vscode@1.1.4 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.ide.vscode@1.1.4)

    com.unity.test-framework@1.1.9 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.test-framework@1.1.9)

    com.unity.textmeshpro@2.0.1 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.textmeshpro@2.0.1)

    com.unity.timeline@1.2.10 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.timeline@1.2.10)

    com.unity.ext.nunit@1.0.0 (location: /tmp/b3b83e2d7054a059e855d3904f92e1e0/Library/PackageCache/com.unity.ext.nunit@1.0.0)

    Built-in packages:

    com.unity.ugui@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui)

    com.unity.modules.ai@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.ai)

    com.unity.modules.androidjni@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.androidjni)

    com.unity.modules.animation@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.animation)

    com.unity.modules.assetbundle@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.assetbundle)

    com.unity.modules.audio@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.audio)

    com.unity.modules.cloth@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.cloth)

    com.unity.modules.director@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.director)

    com.unity.modules.imageconversion@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.imageconversion)

    com.unity.modules.imgui@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.imgui)

    com.unity.modules.jsonserialize@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.jsonserialize)

    com.unity.modules.particlesystem@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.particlesystem)

    com.unity.modules.physics@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.physics)

    com.unity.modules.physics2d@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.physics2d)

    com.unity.modules.screencapture@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.screencapture)

    com.unity.modules.terrain@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.terrain)

    com.unity.modules.terrainphysics@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.terrainphysics)

    com.unity.modules.tilemap@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.tilemap)

    com.unity.modules.ui@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.ui)

    com.unity.modules.uielements@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.uielements)

    com.unity.modules.umbra@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.umbra)

    com.unity.modules.unityanalytics@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unityanalytics)

    com.unity.modules.unitywebrequest@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unitywebrequest)

    com.unity.modules.unitywebrequestassetbundle@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unitywebrequestassetbundle)

    com.unity.modules.unitywebrequestaudio@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unitywebrequestaudio)

    com.unity.modules.unitywebrequesttexture@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unitywebrequesttexture)

    com.unity.modules.unitywebrequestwww@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.unitywebrequestwww)

    com.unity.modules.vehicles@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.vehicles)

    com.unity.modules.video@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.video)

    com.unity.modules.vr@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.vr)

    com.unity.modules.wind@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.wind)

    com.unity.modules.xr@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.xr)

    com.unity.modules.subsystems@1.0.0 (location: /home/myuser/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.modules.subsystems)


    [Subsystems] No new subsystems found in resolved package list.

    [Package Manager] Done registering packages in 0.00s seconds

    [Unity Package Manager (Upm)]

    Parent process [3024] was terminated

    ```
     
  2. huulong

    huulong

    Joined:
    Jul 1, 2013
    Posts:
    224
    Try my solution on https://answers.unity.com/questions...get-s.html?childToView=1803464#answer-1803464

    Copy-pasted here:

    Try this:

    1. In your project, delete the Library folder. I found that CurrentLayout-default.dwlt in particular must be deleted, so you can try that first if your project is big and want to avoid long rebuilding times.

    2. In ~/.config/unity3d/Preferences/Editor-5.x, delete the Layouts folder

    3. In ~/.config/unity3d, delete the Browser folder

    4. In ~/.config/unity3d, delete the Editor folder (there is one sub-folder per editor version but the serial number cannot be trivially matched with a human-readable version, so maybe just delete the whole folder)

    5. Restart the project
    I found 1, 2 & 3 to work in my case, and only 1+2 or 2+3 not to work. At least it should work when installing a new editor / re-installing an editor version. I also did 4 at some point so it may be needed for editor versions already installed. I did 2 at the beginning so not sure if required.
     
    crekri likes this.