Multiple Unity processes in the task manager

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:

user@MSI-GE62-6QF:~$  pstree 7843
Unity─┬─125*[Unity]
      ├─Unity.Licensing───15*[{Unity.Licensing}]
      ├─125*[UnityAutoQuitte]
      ├─UnityPackageMan───9*[{UnityPackageMan}]
      ├─UnityShaderComp───7*[{UnityShaderComp}]
      └─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:

user@MSI-GE62-6QF:~$  pstree 7843
Unity─┬─154*[Unity]
      ├─Unity.Licensing───15*[{Unity.Licensing}]
      ├─154*[UnityAutoQuitte]
      ├─UnityPackageMan───9*[{UnityPackageMan}]
      ├─UnityShaderComp───7*[{UnityShaderComp}]
      └─70*[{Unity}]

If possible could you create a bug case with reproduction steps and paste the bug number here?

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. :slight_smile:

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.

Well, processes or threads? :slight_smile:

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.

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.

For now, I can say that this is fixed in 0a19. :slight_smile:

Definitely fixed in 0a19! :smile:

2 Likes