Search Unity

Can't open or start any projects without crash

Discussion in 'Linux' started by blackchakram, Jun 1, 2021.

  1. blackchakram

    blackchakram

    Joined:
    May 27, 2018
    Posts:
    4
    Like the title says. I'm running Linux Mint 20. I've been working on a project using 2021.1 for the last several months with no problem. However, suddenly a few days ago, I get a crash after the splash screen but before the editor comes up. The error just says "
    Unity has stopped working.
    We will now try to find a fix for the crash. please wait...
    Status: There is no fix available. Please report a bug."

    This happens even if I create a brand new project. I've already tried completely uninstalling and re-installing the Hub and Unity (several versions) and get the same thing each time. I've tried restarting the computer, logging off my Unity account... no change.

    I don't even seem to have an Editor.Log file, but I do have a upm.log and it shows the following:

    [2021-06-01T17:13:49.724Z][INFO] Command-line: /home/blackchakram/Unity/2021.1.9f1/Editor/Data/Resources/PackageManager/Server/UnityPackageManager -s 1946 -p 55319 -l 2
    [2021-06-01T17:13:49.735Z][INFO] Creating server instance
    [2021-06-01T17:13:49.835Z][INFO] Starting server
    [2021-06-01T17:13:49.841Z][INFO] Server started on port [55319]
    [2021-06-01T17:13:51.887Z][INFO] GET '/health' <-- Request received
    [2021-06-01T17:13:51.889Z][INFO] GET '/health' --> 200 (2 ms)
    [2021-06-01T17:13:51.999Z][INFO] PATCH '/project/dependencies' <-- Request received
    [2021-06-01T17:13:52.038Z][INFO] PATCH '/project/dependencies' --> 200 (38 ms)
    [2021-06-01T17:13:52.148Z][INFO] POST '/project/dependencies' <-- Request received
    [2021-06-01T17:13:52.191Z][INFO] Resolving dependencies using SAT solver
    [2021-06-01T17:14:02.874Z][INFO] POST '/project/dependencies' --> 200 (10726 ms)
    [2021-06-01T17:14:06.931Z][INFO] GET '/project/dependencies' <-- Request received
    [2021-06-01T17:14:06.935Z][INFO] GET '/project/registries' <-- Request received
    [2021-06-01T17:14:06.978Z][INFO] GET '/project/registries' --> 200 (43 ms)
    [2021-06-01T17:14:06.989Z][INFO] Resolving dependencies using SAT solver
    [2021-06-01T17:14:07.376Z][INFO] GET '/project/dependencies' --> 200 (445 ms)
    [2021-06-01T17:14:47.581Z][INFO] GET '/project/dependencies' <-- Request received
    [2021-06-01T17:14:47.584Z][INFO] GET '/project/registries' <-- Request received
    [2021-06-01T17:14:47.627Z][INFO] GET '/project/registries' --> 200 (43 ms)
    [2021-06-01T17:14:47.636Z][INFO] Resolving dependencies using SAT solver
    [2021-06-01T17:14:47.888Z][INFO] GET '/project/dependencies' --> 200 (306 ms)
    [2021-06-01T17:27:47.693Z][ERROR] [Unity Package Manager (Upm)]
    Parent process [1946] was terminated

    I've searched all over the web but can't find what's doing this. The only change to my machine was that it was shut down incorrectly (due to something unrelated) the afternoon before I started seeing this error. I assume some sort of preference got corrupted? One that doesn't erase on uninstall?
     
  2. ryanjo

    ryanjo

    Unity Technologies

    Joined:
    Dec 14, 2018
    Posts:
    17
    You could try deleting the ~/.config/unity3d folder as that is where Linux stores preferences for Unity, and uninstalling *might* not clear everything out there. That's where your Editor.log should be: ~/config/unity3d/Editor.log

    If it's not there, could you try launching Unity from the command line? You can specify a specific project to load with -projectPath or a project to be created with -createProject.

    Example:
    ~/Unity/Hub/Editor/<EditorVersion>/Editor/Unity -createProject ~/uprojects/test1

    The command line might spit out more information about what's wrong. If Editor.log doesn't exist it seems like it may be crashing really early on in the launch process.
     
  3. javisarias

    javisarias

    Joined:
    Jan 21, 2017
    Posts:
    9
    Hi! happened the same under Fedora. worked alright for months and one day suddenly stopped working. removing all Unity related folders didn't help. It happens will any project I try to open
     
  4. baharebakranii

    baharebakranii

    Joined:
    Mar 26, 2022
    Posts:
    1
    I had the same problem. The problem was with nvidia. If you're using linux mint and nvidia and have this problem make sure your setting is on nvidia-driver-390. For this search drive manager on your computer search bar and change the nvidia setting on recommended option. Then restart.
     
    casms_pc1 likes this.
  5. casms_pc1

    casms_pc1

    Joined:
    May 19, 2021
    Posts:
    4
    THANK YOU - This at least allows Unity to start and makes Unity waaay more stable in Ubuntu.

    UPDATE: I've tried driver 450, which has the latest CUDA, and it seems to work - At some point i'll try the (latest) 510 driver..

    My symptoms were:

    -----

    Unity could not be started from command line (would show splash then terminate)

    (Unity:8904): Gdk-CRITICAL **: 16:13:17.813: gdk_window_get_cursor: assertion 'GDK_IS_WINDOW (window)' failed

    -----

    Unity Editor would only run in 1080p not my native 4k
    (It would run if the window was small, on a 4k desktop - maybe related)

    "SOLVED - BUT UNRELATED ("Expanse" Volumetric Cloud Asset causing it, pushing my card too hard!)"

    -----

    When in 1080p play mode, clicking on the Scene tab causes instant exit

    "SOLVED - BUT UNRELATED ("Expanse" Volumetric Cloud Asset causing it, pushing my card too hard!)"
     
    Last edited: Apr 7, 2022