Search Issue Tracker

By Design

Votes

2

Found in

2018.3.0f2

Issue ID

1114064

Regression

No

[Roslyn] VBCSCompiler.exe remains running after Unity build has finished when building Unity Player in batch mode

Scripting

-

-

Priority: 5Not yet prioritized for a release

-

Severity: 3Secondary functionality broken

How to reproduce:
1. Create a new Unity project
2. Open PowerShell window
3. Run this command: "('- path to the Editor -\Unity.exe -projectPath "- path to the project -" -batchMode -quit -buildWindows64Player $pwd/Build/MyProject.exe -NoNewWindow -Wait -PassThru).ExitCode"
4. Wait for the build to finish
5. Open the Task Manager
6. Notice that the VBCSCompiler.exe is still running

Expected: VBCSCompiler.exe is shut down after the build finishes
Actual: VBCSCompiler.exe keeps running after the build finished until it times out

Reproducible with: 2018.3.13f1, 2019.1.0f2, 2019.2.0a11

Note: Roslyn Compiler was introduced in Unity 2018.3

Response avatar

Resolution Note:

The C# compiler runs in server mode and may outlive the lifetime of the Unity Editor.

Comments (3)

  1. 28feeb032f61946eb8c62caff5d099ca?d=mm

    calebbbarton

    Jun 17, 2019 12:31

    So this is annoying, as our companies current setup has a batch file open unity in command mode with no GUI, do some asset bundle building in unity, then uploads the files afterwards. However, because the VBCSCompiler doesn't close, the batch command file thinks unity is still open, and wont execute the upload unless force killed.

    Any ideas as to how to get around that?

  2. 70926bd2c8d2127864743dd6ac7c2c53?d=mm

    skullthug

    May 31, 2019 18:35

    I'm having an issue on one of my machines where VBCSCompiler.exe is still running and out of control to the point of locking up the system. Unsure if it's related to this, but this is the closest thing I've been able to Google about it.

  3. 047abea50204b862397781549203004a?d=mm

    scottrmathews

    May 17, 2019 23:15

    This is also happening in 2018.4.0.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.