Search Issue Tracker

By Design

Votes

0

Found in

2019.3

2020.1

2020.1.0a23

Issue ID

1221382

Regression

No

Editor is stuck on Application.Messages when entering Play Mode after a recompile

Scene Management

-

Reproduction steps:
1. Open attached project "case_1221366-Basic_Multiplayer_2D"
2. From the Scripts folder, edit a script, save changes and make sure it recompiles
3. Enter Play Mode

Expected result: Game runs after a few seconds
Actual result: The editor is stuck on Application.Messages

Reproducible with: 2019.3.3f1, 2020.1.0a25
Could not test with: 2017.4.37f1, 2018.4.18f1 (errors)

Note:
Usually takes 10 to 20 tries to reproduce the issue for the first time. After that, the issue is reproducible every time.
Application.Messages can be stuck anywhere between 20 seconds to a few minutes.

Workarounds:
If the editor window Minimize/Resize buttons are interactable, pressing them could unfreeze the editor.

  1. Resolution Note:

    Seems to be project scripts "leaking" objects with DontDestroyOnLoad, coupled with enterPlayMode callback logic, that makes each enter of play mode double the object count. After a while it gets very slow.

Comments (8)

  1. NotQuiteSmith

    Aug 24, 2021 07:44

    Suffering the same problem here too - currently 3 MINUTES each time this happens (which is EVERY time I "Save Project")

  2. GamesEngineer

    Aug 18, 2021 20:38

    Unity, please re-open this issue. Having to wait one minute every time I click play is a productivity killer. How can this possibly be "By Design?"

  3. DavidJares

    Aug 01, 2021 22:50

    Lol. What a big pile of big piece of Shit. LTS 2020.3f14. Still happening.
    Spend so much money and time on unity, and still they give so much shit about their actual customers.

  4. as87dgs6asg0a

    Apr 27, 2021 18:55

    By Design is like Unity saying: This is not a bug, it's a feature! Sadly, very on-brand for unity

  5. absurdnoize

    Mar 03, 2021 21:16

    Getting this very annoying problem after upgrading to 2020.2.6f1. Whenever I hit play or stop or recompile the scripts the editor enters into long loading. Before, it used to play almost instantly. RESOLUTION NOTE doesn't help. What shall we do?

  6. upendraakki329

    Dec 27, 2020 04:48

    Please help i am suffering with this problem I am not able to enter to play mode from three days , I edited some scripts and make every thing to recompile but my problem dint solved ,please help me to solve it

  7. Oddruud

    Dec 17, 2020 09:50

    This is still a problem in Unity 2020.1.8f and Unity 2020.2.0f. When I try to open a scene file by doube clicking it, the progress dialog im stuck on reads "Application.Message", when I try to additively load it through the right click menu the progress dialog that I'm stuck on reads "Application.ExecuteMenuItem".

  8. sfernandez131

    Aug 21, 2020 00:44

    This is still very much a problem. I can't run play mode. Every time it hangs on the window that's loading Application.EnterPlayMode.

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.