Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Resolved Multiple Unity processes in the task manager

Discussion in '2021.2 Beta' started by Deleted User, May 22, 2021.

  1. Deleted User

    Deleted User

    Guest

    So, I'm running 2021.2 in Linux Mint. It works quite well, I don't have to complain, except that there are countless extra processes for Unity in the task manager, for now 195 and still counting.

    The current process tree is as follow:
    Code (CSharp):
    1. user@MSI-GE62-6QF:~$  pstree 7843
    2. Unity─┬─125*[Unity]
    3.       ├─Unity.Licensing───15*[{Unity.Licensing}]
    4.       ├─125*[UnityAutoQuitte]
    5.       ├─UnityPackageMan───9*[{UnityPackageMan}]
    6.       ├─UnityShaderComp───7*[{UnityShaderComp}]
    7.       └─70*[{Unity}]
    where:
    • "125*[Unity]" represent 125 processes named Unity,
    • "125*[UnityAutoQuitte]" represent 125 processes named UnityAutoQuitter (for some reason the "r" was scrapped),
    • 70*[{Unity}] seem to represent 70 processes named {Unity} but I don't see them in the task manager.
    Just before posting this, I launched the command again and it now reads:
    Code (CSharp):
    1. user@MSI-GE62-6QF:~$  pstree 7843
    2. Unity─┬─154*[Unity]
    3.       ├─Unity.Licensing───15*[{Unity.Licensing}]
    4.       ├─154*[UnityAutoQuitte]
    5.       ├─UnityPackageMan───9*[{UnityPackageMan}]
    6.       ├─UnityShaderComp───7*[{UnityShaderComp}]
    7.       └─70*[{Unity}]
     
  2. jdrewsen

    jdrewsen

    Unity Technologies

    Joined:
    Mar 28, 2011
    Posts:
    204
  3. Deleted User

    Deleted User

    Guest

    I certainly could do that, except that one of my bug report just got rejected because I'm not using the "right" Linux distribution.

    I guess anyone can create a project in Ubuntu with the current 2021.2 or 1 and use it, do anything in it( just creating the project won't do). Then take a look in the task manager to see if this happens or not. Then create a bug report that will not be rejected. :)
     
  4. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Doesn't pstree show the number of threads, not number of processes? If so, the result seems to be about as expected to me. You have two Unity processes; one is the main editor, another is the "background asset import" process that currently does asset preview generation & search indexing, and in the future might do parallel/background asset imports.
     
  5. Deleted User

    Deleted User

    Guest

    Well, processes or threads? :)

    Capture d’écran_2021-05-28_09-20-49.jpg
    The assets import worker process also generates countless logs in my project directory, all containing roughly the same info:

    These logs are created at an average pace of two per minute even if I do nothing in the editor.

    I don't know how all this is related.
     
    Last edited by a moderator: May 28, 2021
  6. Deleted User

    Deleted User

    Guest

    Okay, I've narrowed down the problem to the creation of tile palettes, which is something I've done a lot lately, and generally speaking, to working on sprites import settings.

    The AssetImportWorker popped up in the task manager as soon as I selected a sprite in the project view and is creating the extra processes.

    Killing the AssetImportWorker is of no use, it restarts automatically.

    Now, I'm using a script that overrides the PSD Importer so that it can import (real) psd files (instead of psb files), but I remember this happening before I used this override script.
     
  7. Deleted User

    Deleted User

    Guest

    For now, I can say that this is fixed in 0a19. :)
     
  8. Deleted User

    Deleted User

    Guest

    Definitely fixed in 0a19! :D
     
    LeonhardP and NotaNaN like this.