Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

13

Found in

Issue ID

1110352

Regression

No

Unity freezes when pressing Debug

Mono

-

Repro steps:

This problem only seems to appear in Unity Editor on Linux. Tested with Ubuntu 18.04 using the VSCode Debugger Extension

1. Download attached files.zip
2. Create an empty project in unity, and attach the GameGO.cs script to an empty gameobject in the scene.
3. Verify that your debugger works by putting a breakpoint in Game.cs line 11 and entering playmode
4. Set a breakpoint in Settings.cs line 12, then attach debugger
5. Enter playmode in unity.

Expected behaviour: Enters playmode with no issues
Actual behaviour: Unity freezes when entering playmode

  1. Response avatar

    Resolution Note (fix version ):

    This issue rarely occurs and will be fixed by a future mono upgrade in Unity.

Comments (2)

  1. 7235883c0e17d85ad807508682564c94?d=mm

    Laurent_Giroud_Nvizzio

    Dec 05, 2019 16:56

    Several *important* points there:
    - This is *not* a rare issue, our team gets it very frequently, they just get used to it and do not report it.
    - This also happens on Windows.
    - This is extensively mentioned by the community (just web search it: https://www.google.com/search?q=unity+freeze+debugger).
    - This is *heavily* associated to the number of breakpoints and the number of subsequent debugging sessions:
    - Reducing the number of breakpoints *usually* reduces the amount of time the Unity Editor gets frozen. But after some time, that ceases working (see next point).
    - Clearing the number of breakpoints *usually* solves the issue when reducing them does not work anymore.
    - Sometimes that is not enough, removing and re-installing the VS Unity extension is necessary.

    For the love of everything that is cute and fun please solve this, this is maddening.
    And do not ask us to repro it, it usually takes hours of debugging without issues to reach that issue.

  2. 3f813687bb3ea7e8bcf7ac9a47a09987?d=mm

    yunify_roger

    Dec 18, 2018 08:04

    I have the same on Windows using Visual Studio 2017. After 2 to 10 minutes it goes into play mode afterall. Attaching debugger while playing already results in a freeze also. This does not happen every time, but very often.

Add comment

Log in to post comment

All about bugs

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